
Pasted text(20261115-052434).txt
Document
I found the issue in your actual single-memo.php. The PHP markup is correct: Threads, Instagram, TikTok, and Email are all present in the navigation. We don't need to rebuild that section.

The problem is in the CSS selectors.

Your template uses .memo-single-page and .memo-article, but our previous CSS targeted .memo-single. As a result, the icon sizing rules never applied. That's why Instagram and TikTok are rendering at enormous sizes.

Step 5 — Correct the CSS selector and icon sizing
First, remove the previous sharing CSS blocks we added, including the .memo-single .memo-share rules.

Then add this complete replacement to site.css:


/*========================================================
  SINGLE MEMO — SOCIAL SHARING
========================================================*/

.memo-single-page .memo-author-share .memo-share {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.memo-single-page .memo-share-label {
    margin-right: 4px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Individual sharing controls */

.memo-single-page .memo-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 4px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--theme-text);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* CRITICAL: Constrain SVG image dimensions */

.memo-single-page .memo-share-link img {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
    min-width: 0;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Hover */

.memo-single-page .memo-share-link:hover {
    transform: translateY(-2px);
}

/* Keyboard accessibility */

.memo-single-page .memo-share-link:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* Remove default button appearance */

.memo-single-page button.memo-share-link {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

/* Feedback message */

.memo-single-page .memo-share-feedback {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 10px 0 0 auto;
    padding: 9px 13px;
    border-left: 3px solid var(--memo-red);
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.memo-single-page .memo-share-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile */

@media screen and (max-width: 767px) {

    .memo-single-page .memo-author-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .memo-single-page .memo-share {
        justify-content: flex-start;
        gap: 12px;
    }

    .memo-single-page .memo-share-feedback {
        margin-left: 0;
    }

}

What this should correct
Instagram and TikTok will be constrained to 21 × 21 pixels.

Threads will remain in the navigation.

All five icons will share consistent alignment and spacing.

The Instagram and TikTok buttons will lose their default browser borders.

The feedback message will be styled consistently.

One step at a time: Save the CSS, clear any site/cache plugin cache, and refresh the memo page.

Send me a screenshot of the result before we change the JavaScript again.


Pasted text(20261115-052540).txt
Document
scan css and add corrections

Worked for 13s
I scanned your full site.css, including the original Single Memo styles, responsive overrides, and the later redesign additions.

I found the cause of the problem. There are three CSS issues:

The original icon styling targets .memo-share a, but Instagram and TikTok are <button> elements.

The original SVG styling targets inline <svg> elements, but your icons are external SVG files loaded through <img>.

The button reset uses .memo-single button.memo-share-link, but your actual page wrapper is .memo-single-page, so that selector doesn't match.

There are also later responsive rules that modify .memo-share, which is why I recommend one final, properly scoped override rather than moving existing CSS around.

Correction — Add this at the very end of site.css
Do not delete your existing responsive styles. This block will take precedence over them.


/*========================================================
  FINAL SINGLE MEMO — SOCIAL SHARING CORRECTIONS
  Fixes:
  - External SVG icon sizing
  - Anchor and button alignment
  - Instagram and TikTok button appearance
  - Threads visibility
  - Hover and keyboard states
  - Share feedback styling
========================================================*/

/* SHARE NAVIGATION */

.memo-single-page .memo-author-share .memo-share {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* SHARE LABEL */

.memo-single-page .memo-share .memo-share-label {
    display: inline-block;
    flex: 0 0 auto;
    margin-right: 3px;

    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* ALL SHARE LINKS AND BUTTONS */

.memo-single-page .memo-share .memo-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;

    margin: 0;
    padding: 4px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    color: var(--theme-text);
    text-decoration: none;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

/* EXTERNAL SVG FILES LOADED THROUGH IMG */

.memo-single-page .memo-share .memo-share-link img {
    display: block !important;

    width: 21px !important;
    min-width: 21px !important;
    max-width: 21px !important;

    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;
    object-position: center;
}

/* INSTAGRAM AND TIKTOK BUTTON RESET */

.memo-single-page .memo-share button.memo-share-link {
    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;

    color: var(--theme-text);
}

/* HOVER STATES */

.memo-single-page .memo-share .memo-share-link:hover {
    color: var(--memo-red);
    transform: translateY(-2px);
}

.memo-single-page .memo-share .memo-share-link:hover img {
    opacity: 0.8;
}

/* KEYBOARD ACCESSIBILITY */

.memo-single-page .memo-share .memo-share-link:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* SHARE FEEDBACK */

.memo-single-page .memo-share-feedback {
    display: block;
    width: fit-content;
    max-width: 100%;

    margin: 10px 0 0 auto;
    padding: 9px 13px;

    border-left: 3px solid var(--memo-red);

    background: var(--theme-surface);
    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-4px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.memo-single-page .memo-share-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* DARK MODE */

body.dark-mode .memo-single-page .memo-share .memo-share-link {
    color: var(--theme-text);
}

body.dark-mode .memo-single-page .memo-share .memo-share-link:hover {
    color: var(--memo-red);
}

body.dark-mode .memo-single-page .memo-share-feedback {
    background: var(--theme-surface);
    color: var(--theme-text);
}

/* MOBILE */

@media screen and (max-width: 767px) {

    .memo-single-page .memo-author-share .memo-share {
        justify-content: center;
        gap: 12px;
    }

    .memo-single-page .memo-share-feedback {
        margin: 10px auto 0;
        text-align: center;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .memo-single-page .memo-share .memo-share-link,
    .memo-single-page .memo-share-feedback {
        transition: none;
    }

}

What I verified in your PHP
Your current single-memo.php already includes all five sharing options:

Platform

Markup

Status

Facebook

Anchor

Present

Threads

Anchor

Present

Instagram

Button

Present

TikTok

Button

Present

Email

Mailto anchor

Present

Threads is not missing from the PHP. Its CSS visibility and icon sizing need to be corrected.

Next
Add the CSS block at the very end of the stylesheet.

Save the file.

Clear your Hostinger/site cache.

Hard-refresh the memo page with Ctrl + F5.

Pasted text(20261115-052540).txt
Once the icons display correctly, we'll return to the JavaScript and finish the Instagram/TikTok sharing behavior and branded feedback.





/* =========================================================
   THE MESSENGER — SITE STYLESHEET
   SAFE ORGANIZATION PASS
   This version preserves every existing CSS rule and its order.
   Only navigation comments are added; no selectors or values changed.

   SECTION GUIDE
   01. Reset, tokens, global foundation, accessibility .......... lines ~1–145
   02. Shared header + mobile navigation ....................... ~146–341
   03. Homepage: hero, featured memo, latest, categories ........ ~342–782
   04. Homepage: subscription + footer base .................... ~783–1100
   05. Homepage responsive refinements (tablet/desktop) ........ ~1102–2008
   06. Homepage card/grid refinements .......................... ~2010–2086
   07. Memo archive + category archive ........................ ~2090–2452
   08. Single Memo page ........................................ ~2456–2884
   09. Shared header search + late header adjustments .......... ~2913–3395
   10. Shared footer refinements ............................... ~3397–3593
   11. About page .............................................. ~3600–4008
   12. Final search panel visibility/mobile overrides .......... ~4010–end

   IMPORTANT:
   - Keep this cascade order for now. Several shared components are
     refined later in the file, so moving blocks can change behavior.
   - This is an organization/audit copy, not a visual redesign.
   ========================================================= */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/*--------------------------------------------------------*/
/* Custom CSS Variables and Styles */
:root {
    /* Color Palette */
    --memo-black: #171614;
    --memo-cream: #f4efe5;
    --memo-red: #b92727;
    --paper-gray: #e5e0d7;

    --theme-bg: #ffffff;
    --theme-surface: var(--memo-cream);
    --theme-text: var(--memo-black);
    --theme-muted: #77736d;
    --theme-border: var(--paper-gray);
    --theme-input-bg: #ffffff;

    /* Subscription paper always retains its original colors */
    --paper-text: #171614;

    /* Typography */
    --font-editorial: "Libre Baskerville", serif;
    --font-memo: "Courier Prime", monospace;
    --font-ui: Arial, Helvetica, sans-serif;
        /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
}

body.dark-mode {
  --theme-bg: #171614;
  --theme-surface: #24221f;
  --theme-text: #f4efe5;
  --theme-muted: #aaa49a;
  --theme-border: #393633;
  --theme-input-bg: #24221f;
  --memo-red: #d45a5a;
  --paper-gray: #393633;
}

/* Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

header, main, footer {
  display: block;
}

body {
  font-family: var(--font-editorial);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
/*--------------------------------------------------------*/
/* Skip-link Styles */
#skip-link {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translate(-35%, -50%) rotate(-90deg);
    transform-origin: top left;
    padding: 5px 25px;
    z-index: 99999;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 10px 0;
    border: 2px solid #000000;
    transition: transform 0.3s ease;
}

#skip-link:focus {
    transform: translate(0, -50%) rotate(-90deg);
}
/*--------------------------------------------------------*/
/* Screen Reader Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/*--------------------------------------------------------*/
/* =========================================================
   02. SHARED HEADER & MOBILE NAVIGATION — MOBILE BASE
   ========================================================= */
/* Mobile-First Styles */

/* Header Styles */
header {
  background-color: var(--theme-surface);
  color: var(--theme-text);
  display: flex;      
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: sticky;
  z-index: 1000;
  top: 0;
}

h1 {
  display: none;
}

h2 {
  font-family: var(--font-editorial);
  font-weight: var(--weight-bold);
  font-size: 24px;
}

.logo {
    display: block;
    width: 150px;
    max-width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    order: 1;
    margin: 0 auto;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    order: 0;
}

.menu-icon {
    display: block;
    width: 32px;
    cursor: pointer;
    z-index: 1000;
}

#menu-toggle {
    display: none;        
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--theme-input-bg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav > ul {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav > ul > li {
    position: relative;
    padding: 15px 0;
}

.mobile-nav li {
    list-style: none;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: var(--theme-text);
    font-family: var(--font-ui);
}

.mobile-nav a:hover, .mobile-nav a:focus-visible {
    color: var(--memo-red);
}

.mobile-nav > ul > li:hover > a {
    background-color: transparent;
}

/* Category and collection dropdowns */
.category-dropdown, .collection-dropdown {
    display: none;
    position: static;
    padding: 5px 0;
    margin: 0;
    background-color: var(--theme-surface);
}

.category-dropdown li, .collection-dropdown li {
    padding: 5px 0;
}

.category-dropdown a, .collection-dropdown a {
    font-size: 14px;
    padding: 5px 10px;
}

/* Reveal nested menus */
.mobile-nav > ul > li:hover > .category-dropdown, .mobile-nav > ul > li:focus-within > .category-dropdown, .mobile-nav > ul > li:hover > .collection-dropdown,
.mobile-nav > ul > li:focus-within > .collection-dropdown {
    display: block;
}

#menu-toggle:checked ~ .mobile-nav {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 15px;
    order: 2;
    flex: 0 0 auto;
}

.search-link, .profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    position: static;
}

.search-link img {
    width: 22px;
    height: 22px;
}

.profile-link img {
    width: 28px;
    height: 28px;
}

#theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

#theme-toggle img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#theme-toggle:focus-visible {
    outline: 2px solid #F4EFE5;
    outline-offset: 3px;
}
/*----------------------End of Header Styles----------------------------------*/
/* =========================================================
   03. HOMEPAGE — MOBILE BASE
   ========================================================= */
/* Hero Section Styles */
.hero {
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}
/*----------------------End of Hero Section Styles-----------------------------*/

/* Featured Memo Section Styles */
.featured-memo-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.featured-memo-header {
    margin-bottom: 20px;
}

.featured-memo-header .section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--memo-red);
    font-family: "Courier Prime", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.featured-memo-header h2 {
    margin: 0;
    color: var(--theme-text);
    font-family: "Libre Baskerville", serif;
    font-size: clamp(22px, 3vw, 30px);
}

/* FEATURED CARD */

.featured-memo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
}

/* FEATURED IMAGE */

.featured-memo-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-memo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-memo-image:hover img {
    transform: scale(1.025);
}

/* FEATURED CONTENT */

.featured-memo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 20px 30px;
    gap: 2px;
}

.featured-memo-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    background-color: var(--memo-red);
    color: #ffffff;
    font-family: "Courier Prime", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-memo-number {
    margin-bottom: 5px;
    color: var(--theme-muted);
    font-family: "Courier Prime", monospace;
    font-size: 11px;
}

.featured-memo-category {
    margin-bottom: 10px;
    color: var(--memo-red);
    font-family: "Courier Prime", monospace;
    font-size: 11px;
    text-transform: uppercase;
}

.featured-memo-content h3 {
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: "Libre Baskerville", serif;
    font-size: clamp(23px, 4vw, 34px);
    line-height: 1.3;
}

.featured-memo-content h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-memo-excerpt {
    max-width: 560px;
    margin: 4px 0 18px 0;
    color: var(--theme-text);
    font-family: "Libre Baskerville", serif;
    font-size: 14px;
    line-height: 1.85;
}

.featured-memo-meta {
    margin-bottom: 22px;
    color: var(--theme-muted);
    font-family: "Courier Prime", monospace;
    font-size: 11px;
}

.featured-memo-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--memo-red);
    color: var(--theme-text);
    font-family: "Courier Prime", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 4px;
}

.featured-memo-link:hover {
    color: var(--memo-red);
}

/* KEYBOARD ACCESSIBILITY */

.featured-memo-section a:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

/* DARK MODE */

body.dark-mode .featured-memo-card {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .featured-memo-content h3 a {
    color: var(--theme-text);
}
/*----------------------End of Featured Memo Section Styles---------------------*/
/* Latest Memos Section Styles */
.latest-memos {
    padding: 20px;
}

#latest-memos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.view-all-link {
    text-decoration: none;
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    font-family: var(--font-ui);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}



#latest-memos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.memo-card {
    display: grid;
    grid-template-columns: clamp(100px, 30%, 150px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    border-bottom: 1px solid var(--theme-border);
    padding: 12px 0;
}

.memo-card:last-child {
    border-bottom: none;
}

.memo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.memo-card-content {
    min-width: 0;
}

.memo-card-content h3 {
    font-family: var(--font-editorial);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    margin: 0;
}

.memo-card-content h3 a {
    color: var(--theme-text);
    text-decoration: none;
}

.memo-card-content h3 a:hover, .memo-card-content h3 a:focus-visible {
    color: var(--memo-red);
}

.memo-category {
    text-transform: uppercase;
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    font-size: clamp(10px, 1.2vw, 12px);
}

.memo-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
}

.memo-meta time, .memo-meta span {
    font-size: clamp(10px, 1.2vw, 12px);
}

.divider {
    height: 1px;
    background-color: var(--theme-border);
    margin: 20px 0;
}
/*----------------------End of Latest Memos Section Styles---------------------*/

/* Explore Categories Section Styles */
.explore-categories-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 48px 20px 64px;
    background-color: var(--theme-surface);
}

.explore-categories-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.explore-categories-header .section-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--memo-red);
    font-family: "Courier Prime", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.explore-categories-header h2 {
    margin: 0 0 8px;
    color: var(--theme-text);
    font-family: "Libre Baskerville", serif;
    font-size: clamp(22px, 3vw, 30px);
}

.explore-categories-header p {
    margin: 0;
    color: var(--theme-muted);
    font-family: "Libre Baskerville", serif;
    font-size: 12px;
    line-height: 1.7;
}

.explore-categories-header .view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--memo-red);
    font-size: 12px;
    text-decoration: none;
}

.explore-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--theme-border);
}

.category-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--theme-border);
    background: transparent;
}

.category-card-image {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--theme-border);
}

.category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-image:hover img {
    transform: scale(1.05);
}

.category-card-count {
    color: var(--theme-muted);
    font-family: "Courier Prime", monospace;
    font-size: 9px;
    white-space: nowrap;
}

.category-card-content {
    min-width: 0;
}

.category-card-content h3 {
    margin: 0 0 5px;
    font-family: "Libre Baskerville", serif;
    font-size: 14px;
    line-height: 1.4;
}

.category-card-content h3 a {
    color: var(--theme-text);
    text-decoration: none;
}

.category-card-content p {
    margin: 0;
    color: var(--theme-muted);
    font-family: "Libre Baskerville", serif;
    font-size: 11px;
    line-height: 1.6;
}

.category-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.category-card-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--memo-red);
    text-decoration: none;
}

.category-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.category-card-action a:hover .category-arrow {
    transform: translateX(3px);
}

.explore-categories-section a:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

body.dark-mode .category-card {
    background: transparent;
}

body.dark-mode .category-card-content h3 a {
    color: var(--theme-text);
}
/*----------------------End of Explore Categories Section Styles----------------*/

/* =========================================================
   04. HOMEPAGE — SUBSCRIPTION SECTION
   ========================================================= */
/* Email Subscribe Section Styles */
.subscribe-paper {
    position: relative;
    padding: 5.5rem 16px 2rem;
    background-image: url("../images/homepage/aged-paper-stamp-mobile.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    background-color: transparent;
    clip-path: none;
    filter: none;
}

/* MAIN CONTENT */

.subscribe-content {
    position: relative;
    padding: 0 15px 0 15px;
}

.subscribe-content h2 {
    max-width: 650px;
    margin: 10px;
    color: var(--black, #171614);
    font-family: Georgia, serif;
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.subscribe-underline {
    width: 75%;
    max-width: 380px;
    height: 5px;
    margin: 10px;
    background: var(--memo-red, #B92727);
    border-radius: 50%;
    transform: rotate(-1deg);
}

.subscribe-tagline {
    margin: 10px;
    color: var(--memo-red, #B92727);
    font-family: Georgia, serif;
    font-size: clamp(24px, 5vw, 40px);
    font-style: italic;
    line-height: 1.2;
}

.subscribe-description {
    max-width: 650px;
    margin: 10px;
    color: #38342F;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.subscribe-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 58px;
    padding: 0 16px;
    background: #FFFCF5;
    border: 1.5px solid var(--black, #171614);
    border-radius: 5px;
}

.subscribe-envelope {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    color: var(--black, #171614);
}

.subscribe-input-wrapper input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--black, #171614);
    font-family: inherit;
    font-size: 0.9rem;
}

.subscribe-input-wrapper:focus-within {
    outline: 3px solid var(--memo-red, #B92727);
    outline-offset: 3px;
}

.subscribe-input-wrapper input::placeholder {
    color: #77716A;
    opacity: 1;
}

.subscribe-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    min-height: 58px;
    background: var(--memo-red, #B92727);
    border: 1px solid var(--memo-red, #B92727);
    border-radius: 5px;
    color: #FFFFFF;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.subscribe-button:hover {
    background: #941E1E;
    border-color: #941E1E;
}

.subscribe-button:active {
    transform: scale(0.99);
}

.subscribe-button:focus-visible {
    outline: 3px solid var(--black, #171614);
    outline-offset: 4px;
}

.subscribe-disclaimer {
 margin-top: 16px;
}

.disclaimer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border: 1.5px solid var(--memo-red, #B92727);
    border-radius: 50%;
    color: var(--memo-red, #B92727);
    font-size: 0.75rem;
    font-weight: 700;
}

.subscribe-disclaimer p {
    margin: 0;
    color: #514B43;
    font-family: Georgia, serif;
    font-size: 0.8rem;
    font-style: italic;
}

.subscribe-footer {
    margin: 16px 0 0;
    padding-bottom: 24px;
    color: var(--black);
    font-family: Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
}

.subscribe-footer::after {
    content: "";
    display: block;
    width: 55%;
    height: 3px;
    margin: 0.45rem auto 0;
    background: var(--memo-red);
    border-radius: 50%;
    transform: rotate(-1deg);
}

body.dark-mode .subscribe-paper {
    background-color: transparent;
}

/* Preserve original paper typography */
body.dark-mode .subscribe-content h2 {
    color: var(--paper-text);
}

body.dark-mode .subscribe-tagline {
    color: #A83232;
}

body.dark-mode .subscribe-description {
    color: #38342F;
}

/* Subscription input */
body.dark-mode .subscribe-input-wrapper {
    background-color: #FFFCF5;
    border-color: #171614;
}

body.dark-mode .subscribe-input-wrapper input {
    color: #171614;
}

body.dark-mode .subscribe-envelope {
    color: #171614;
}

/* Subscription button */
body.dark-mode .subscribe-button {
    background-color: #A83232;
    border-color: #A83232;
    color: #FFFFFF;
}

body.dark-mode .subscribe-button:hover {
    background-color: #872626;
    border-color: #872626;
}

/* Subscription footer */
body.dark-mode .subscribe-footer {
    color: #171614;
}

body.dark-mode .subscribe-footer::after {
    background-color: #A83232;
}

/* Accessible keyboard focus */
body.dark-mode .subscribe-button:focus-visible {
    outline: 3px solid #171614;
    outline-offset: 4px;
}
/*----------------------End of Email Subscribe Section Styles------------------*/

/* =========================================================
   04B. SHARED FOOTER — MOBILE BASE
   ========================================================= */
/* Footer Styles */
.site-footer {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    padding: 20px;
    text-align: center;
}

.footer-container {
    display: none;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
}

.footer-signoff {
    display: block;
    order: -1;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer Styles for Dark Mode */

body.dark-mode .site-footer {
    background-color: var(--theme-surface);
    color: var(--theme-text);
}

body.dark-mode .footer-column a {
    color: var(--theme-text);
}

body.dark-mode .footer-column a:hover,
body.dark-mode .footer-column a:focus-visible {
    color: var(--memo-red);
}

body.dark-mode .social-links a {
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode .social-links a:hover,
body.dark-mode .social-links a:focus-visible {
    background-color: var(--memo-red);
    border-color: var(--memo-red);
    color: #ffffff;
}

body.dark-mode .footer-bottom {
    border-color: var(--theme-border);
}
/*----------------------End of Footer Styles-----------------------------------*/

/* =========================================================
   05. HOMEPAGE / SHARED COMPONENTS — TABLET REFINEMENTS
   NOTE: This block currently mixes header, homepage, subscribe and footer.
   ========================================================= */
/* Tablet Styles: 768px–1023px */
@media screen and (min-width: 768px) {

    header {
        position: relative;
        min-height: 100px;
        padding: 10px 25px;
    }

    .hamburger-menu {
    z-index: 2;
    }

    .logo-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .header-actions {
        margin-left: auto;
        gap: 20px;
    }

    .profile-link img {
        display: block;
        width: 32px;
        height: 32px;
    }

    /* Tablet Navigation */

    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: var(--theme-surface);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
        z-index: 1100;
    }

    .category-dropdown,
    .collection-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    .featured-memo-card {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        align-items: stretch;
    }

    .featured-memo-image {
        width: 100%;
        height: 100%;
        min-height: 340px;
        aspect-ratio: auto;
    }

    .featured-memo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .featured-memo-content {
        justify-content: center;
        padding: clamp(24px, 3vw, 42px);
    }

    /* Latest Memos Grid */

    #latest-memos-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(18px, 2vw, 30px);
    }

    .memo-card {
        display: flex;
        flex-direction: column;
        padding: 0;
        border-bottom: none;
    }

    .memo-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .memo-card-content h3 {
        font-size: clamp(16px, 1.25vw, 19px);
    }

    .explore-categories-section {
        padding: 20px;
    }

    .explore-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
    }

    .category-card {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .category-card-image {
        width: 60px;
        height: 60px;
    }

    /* Email Subscription */

    .subscribe-container {
        max-width: 900px;
        border-radius: 12px;
    }

    .subscribe-header {
        padding-bottom: 16px;
    }

    .subscribe-brand {
        font-size: 0.9rem;
    }

    .subscribe-header-label {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .subscribe-paper {
        margin-top: 16px;
        background-position: center;
        background-size: 100% 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .subscribe-content {
        max-width: 100%;
    }

    .subscribe-content h2 {
        max-width: 600px;
        line-height: 1.05;
        margin: 10px 0 10px 30px;
    }

    .subscribe-underline {
        max-width: 350px;
        width: 75%;
        height: 5px;
        margin-left: 30px;
    }

    .subscribe-tagline {
        font-size: 32px;
        margin: 20px 0 10px 30px;
    }

    .subscribe-description {
        max-width: 650px;
        font-size: 18px;
        line-height: 1.65;
        margin-left: 30px;
    }

    .subscribe-input-wrapper {
        min-height: 62px;
        padding: 0 1.25rem;
    }

    .subscribe-input-wrapper input {
        min-height: 58px;
        font-size: 16px;
    }

    .subscribe-envelope {
        width: 25px;
        height: 25px;
    }

    .subscribe-button {
        font-size: 16px;
    }

    .subscribe-disclaimer {
        margin-top: 1.25rem;
    }

    .subscribe-disclaimer p {
        font-size: 0.9rem;
    }

    .subscribe-footer {
        margin-top: 24px;
        font-size: 15px;
        padding-bottom: 44px;
    }

    .site-footer {
        padding: 45px 30px 20px;
        text-align: left;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 30px;
        width: 100%;
        max-width: 1200px;
        margin-inline: auto;
    }

    /* BRAND */

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        display: block;
        width: 155px;
        max-width: 100%;
        height: auto;
    }

    .footer-tagline {
        margin-top: 12px;
        font-family: var(--font-editorial);
        font-size: 18px;
        font-weight: var(--weight-bold);
        line-height: 1.4;
    }

    .footer-description {
        max-width: 350px;
        margin-top: 8px;
        color: var(--theme-muted);
        font-size: 14px;
        line-height: 1.7;
    }

    /* FOOTER COLUMNS */

    .footer-column h3 {
        width: 100%;
        margin-bottom: 14px;
        color: var(--memo-red);
        font-family: var(--font-memo);
        font-size: 11px;
        font-weight: var(--weight-bold);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: center;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-column li {
        list-style: none;
    }

    .footer-column a {
        color: var(--theme-text);
        font-family: var(--font-ui);
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-column a:hover, .footer-column a:focus-visible {
        color: var(--memo-red);
    }

    .footer-social {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px 25px;
    }

    .footer-social h3 {
        margin-bottom: 0;
    }

    .social-description {
        margin-top: 0;
    }

    /* SOCIAL MEDIA */

    .social-links {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        border: 1px solid var(--theme-border);
        border-radius: 50%;

        color: var(--theme-text);

        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;
    }

    .social-links a:hover,
    .social-links a:focus-visible {
        background-color: var(--memo-red);
        border-color: var(--memo-red);
        color: #ffffff;
    }

    .social-links svg {
        display: block;
        width: 19px;
        height: 19px;
    }

    .social-description {
        margin-top: 14px;
        color: var(--theme-muted);
        font-family: var(--font-memo);
        font-size: 12px;
    }

    /* FOOTER BOTTOM */

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;

        max-width: 1200px;
        margin: 40px auto 0;
        padding-top: 20px;

        border-top: 1px solid var(--theme-border);
        text-align: center;
    }

    .footer-signoff {
        display: block;
        color: var(--memo-red);
        font-family: var(--font-memo);
        font-size: 12px;
        font-weight: var(--weight-bold);
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}
/*----------------------End of Tablet Styles----------------------------*/

/* =========================================================
   05B. HOMEPAGE / SHARED COMPONENTS — DESKTOP REFINEMENTS
   ========================================================= */
/* Desktop Styles: 1024px and above */
@media screen and (min-width: 1024px) {
    header {
        justify-content: space-between;
    }
    
    /* Hide hamburger control on desktop */
    .hamburger-menu > label.menu-icon {
        display: none;
    }

    /* Show the navigation menu on desktop */
    .mobile-nav {
        display: block;
        position: static;
        max-height: none;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        overflow: visible;
    }

    /* Main navigation only */
    .mobile-nav > ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(8px, 1.2vw, 20px);
    }

    /* Navigation list items */
    .mobile-nav > ul > li {
        position: relative;
        padding: 0;
    }

    /* Navigation links */
    .mobile-nav a {
        font-weight: 600;
        padding: 5px 8px;
    }

    /* Navigation link hover and focus styles */
    .mobile-nav li:hover > a {
        background-color: transparent;
        color: var(--memo-red);
    }

    /* Desktop dropdown positioning */
    .category-dropdown, .collection-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        padding: 10px 0;
        background-color: var(--theme-surface);
        border: 1px solid var(--theme-border);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
        z-index: 1100;
    }

    /* Dropdown list items and links */
    .category-dropdown li, .collection-dropdown li {
        padding: 0;
    }

    /* Dropdown links styling */
    .category-dropdown a, .collection-dropdown a {
        display: block;
        padding: 8px 15px;
        white-space: normal;
        font-weight: 400;
        color: var(--theme-text);
    }

    /* Dropdown link hover and focus styles */
    .category-dropdown a:hover, .category-dropdown a:focus-visible, .collection-dropdown a:hover, .collection-dropdown a:focus-visible {
        background-color: var(--theme-border);
        color: var(--memo-red);
    }

    /* Header Layout */
    .hamburger-menu {
        order: 1;
    }

    .logo-link {
        position: static;
        transform: none;
        margin: 0;
        order: 0;
    }

    .header-actions {
        margin-left: 30px;
        gap: clamp(20px, 3vw, 40px);
    }

    .profile-link {
        order: 2;
    }

    /* Skip Link */
    #skip-link {
        top: 0;
        left: 50%;
        transform: translate(-50%, -120%);
        border-radius: 0 0 10px 10px;
    }

    #skip-link:focus {
        transform: translate(-50%, 0);
    }

    .featured-memo-section {
        width: min(calc(100% - 80px), 1500px);
        max-width: none;
        padding: 35px 0;
    }

    .featured-memo-card {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .featured-memo-image {
        min-height: 400px;
    }

    /* Latest Memos Grid */
    #latest-memos-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(18px, 2vw, 30px);
    }

    .latest-memos {
        width: min(calc(100% - 80px), 1500px);
        margin-inline: auto;
        padding: 35px 0;
    }

    .memo-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border-bottom: none;
        padding: 0;
        gap: 12px;
    }

    .memo-card img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .memo-card-content h3 {
        font-size: clamp(16px, 1.25vw, 19px);
    }

    .explore-categories-section {
        padding: 40px clamp(40px, 4vw, 80px) 60px;
    }

    .explore-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .explore-categories-header,
    .explore-categories-grid {
        width: 100%;
        max-width: 1500px;
        margin-inline: auto;
    }

    .category-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
        border: 1px solid var(--theme-border);
        background-color: var(--theme-surface);
    }

    .category-card-image {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 3;
        border-radius: 0;
    }

    .category-card-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 16px;
    }

    .category-card-content h3 {
        min-height: 1.4em;
        margin-bottom: 8px;
        font-size: 15px;
    }

    .category-card-content p {
        flex: 1;
        margin-bottom: 18px;
    }

    .category-card-action {
        justify-content: flex-start;
    }

    .category-card-link {
        align-self: flex-start;
        margin-top: auto;
    }

    .subscribe-container {
        max-width: none;
        padding: 40px 8%;
        margin-inline: auto;
        width: min(calc(100% - 80px), 1500px);
    }

    .subscribe-paper {
        margin-top: 16px;
        padding: 80px 48px 40px;
        min-height: 520px;
        background-image: url("../images/homepage/aged-paper-stamp.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        max-width: 1100px;
    }

    .subscribe-content {
        max-width: 75%;
        padding: 16px 0 16px;
    }

    .subscribe-content h2 {
        max-width: 700px;
        font-size: clamp(40px, 5vw, 72px);
        line-height: 1.02;
        margin: 50px 0 0 50px;
    }

    .subscribe-underline {
        max-width: 420px;
        width: 65%;
        margin: 16px 0 0 50px;
    }

    .subscribe-tagline {
        font-size: 40px;
        margin: 13px 0 0 50px;
    }

    .subscribe-description {
        max-width: 700px;
        font-size: 17.6px;
        line-height: 1.6;
        margin: 20px 0 0 50px;
    }

    .subscribe-input-wrapper {
        min-height: 64px;
        padding: 0 16px;
    }

    .subscribe-input-wrapper input {
        min-height: 60px;
        font-size: 16px;
    }

    .subscribe-button {
        min-height: 64px;
        width: 100%;
    }

    .subscribe-disclaimer {
        margin-top: 16px;
    }

    .subscribe-footer {
        margin-bottom: 24px;
        font-size: 15px;
    }

    .site-footer {
        padding: 55px 45px 25px;
    }

    .footer-container,
    .footer-bottom {
        max-width: 1500px;
    }

    .footer-container {
        grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logo {
        width: 170px;
    }

    .footer-social {
        grid-column: auto;
        display: block;
    }

    .footer-social h3 {
        margin-bottom: 18px;
    }

    .social-description {
        margin-top: 14px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
/*----------------------End of Desktop Styles----------------------------*/

/*--------------------------------------------------------*/
/* =========================================================
   05C. HOMEPAGE / SHARED COMPONENTS — LARGE DESKTOP
   ========================================================= */
/* EXTRA LARGE DESKTOP: 1440px and above */

@media screen and (min-width: 1440px) {

    /* HEADER */
    header {
        padding: 12px clamp(32px, 4vw, 72px);
    }

    /* LATEST MEMOS */
    .latest-memos {
        width: min(calc(100% - 80px), 1500px);
        margin-inline: auto;
        padding: 35px 0;
    }

    #latest-memos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 35px;
    }

    .memo-card {
        gap: 16px;
    }

    .memo-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .memo-card-content h3 {
        font-size: 19px;
    }

    .explore-categories-grid {
        gap: 26px;
    }

    /* SUBSCRIPTION SECTION */
    .subscribe-section {
        padding-bottom: 20px;
    }

    .subscribe-container {
        width: min(calc(100% - 80px), 1200px);
        max-width: none;
        padding: 40px 0;
        margin-inline: auto;
    }

    .subscribe-paper {
        width: 100%;
        max-width: 1000px;
        min-height: 520px;
        margin: 16px auto 0;
    }

    .subscribe-content {
        max-width: 75%;
    }

    .footer-container,
    .footer-bottom {
        max-width: 1440px;
    }

    .site-footer {
        padding-top: 65px;
    }
}

/*--------------------------------------------------------*/
/* ULTRA-WIDE DESKTOP: 1920px and above */

@media screen and (min-width: 1920px) {

    .featured-memo-section,
    .latest-memos {
        width: min(calc(100% - 120px), 1600px);
    }

    /* LATEST MEMOS */
    .latest-memos {
        padding: 40px 0 25px 0;
    }

    #latest-memos-grid {
        gap: 40px;
    }

    .memo-card {
        gap: 20px;
    }

    .memo-card-content h3 {
        font-size: 20px;
    }

    .explore-categories-header,
    .explore-categories-grid {
        max-width: 1600px;
    }

    .footer-container,
    .footer-bottom {
        max-width: 1600px;
    }

    /* SUBSCRIPTION SECTION */
    .subscribe-container {
        width: min(calc(100% - 120px), 1300px);
    }

    .subscribe-paper {
        max-width: 1050px;
    }
}
/*--------------------------------------------------------*/

/* =========================================================
   06. HOMEPAGE CARD / GRID REFINEMENTS
   ========================================================= */
/*========================================================
  EXPLORE CATEGORIES - FINAL REFINEMENTS
========================================================*/

/* CONSISTENT GRID AND CARD HEIGHTS */

/* Mobile and tablet retain the compact directory layout.
   Desktop switches to image-led category cards. */

/* CONSISTENT IMAGE PROPORTIONS */

/* CONSISTENT CONTENT ALIGNMENT */

/* VIEW ALL ARROW - BOTH SECTIONS */

#latest-memos-header .view-all-link img.arrow-icon,
.explore-categories-header .view-all-link img.arrow-icon {
    display: block;
    width: 14px;
    height: 14px;
    max-width: 14px;
    object-fit: contain;
    flex: 0 0 14px;
}

/* HOVER AND KEYBOARD ACCESSIBILITY */

.category-card a:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

.category-card-content h3 a:hover {
    color: var(--memo-red);
}

/* TABLET */

@media screen and (min-width: 768px) {

    .explore-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

}

/* DESKTOP */

@media screen and (min-width: 1024px) {

    .explore-categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }


}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-social a {
        transition: none;
    }

    .mobile-nav-social a:hover {
        transform: none;
    }
}


/*========================================================
  MEMO ARCHIVE - EDITORIAL CARD LAYOUT
========================================================*/

/* =========================================================
   07. MEMO ARCHIVE & CATEGORY ARCHIVE
   ========================================================= */
/* ARCHIVE PAGE */
.memo-archive-page {
    width: 100%;
    padding: 0 20px 50px;
    color: var(--theme-text);
}

/* ARCHIVE HEADER */
.memo-archive-header {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0 24px;
}

.memo-archive-header .section-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
}

.memo-archive-header h1 {
    display: block;
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.15;
}

.memo-archive-header p {
    max-width: 650px;
    margin: 0;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   MEMO ARCHIVE — HERO
========================================================= */

.memo-archive-header {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 28px;
    overflow: hidden;
}

.memo-archive-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* CATEGORY FILTER NAVIGATION */
.memo-archive-categories {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 28px;
    padding: 0 0 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-border) transparent;
    -webkit-overflow-scrolling: touch;
}

.category-filter-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    color: var(--theme-text);
    background-color: var(--theme-surface);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease;
}

.category-filter-link:hover,
.category-filter-link:focus-visible {
    border-color: var(--memo-red);
    color: var(--memo-red);
}

.category-filter-link.active {
    border-color: var(--memo-red);
    background-color: var(--memo-red);
    color: #ffffff;
}

/* ARCHIVE CONTENT */
.memo-archive-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.memo-archive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

/* EDITORIAL MEMO CARDS */
.memo-archive-page .memo-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    background-color: var(--theme-surface);
}

.memo-archive-page .memo-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--theme-border);
}

.memo-archive-page .memo-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.memo-archive-page .memo-card-image:hover img {
    transform: scale(1.04);
}

.memo-archive-page .memo-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 18px;
}

.memo-archive-page .memo-number {
    margin-bottom: 7px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
}

.memo-archive-page .memo-category {
    margin-bottom: 9px;
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.8px;
}

.memo-archive-page .memo-card-content h2 {
    margin: 0 0 10px;
    font-family: var(--font-editorial);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.memo-archive-page .memo-card-content h2 a {
    color: var(--theme-text);
    text-decoration: none;
}

.memo-archive-page .memo-card-content h2 a:hover,
.memo-archive-page .memo-card-content h2 a:focus-visible {
    color: var(--memo-red);
}

.memo-archive-page .memo-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.memo-archive-page .memo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 11px;
}

.memo-archive-page .memo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    margin-top: 16px;
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.7px;
    text-decoration: none;
}

.memo-archive-page .memo-card-link:hover,
.memo-archive-page .memo-card-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* EMPTY ARCHIVE */
.memo-archive-page .no-memos-found {
    grid-column: 1 / -1;
    padding: 50px 20px;
    text-align: center;
}

.memo-archive-page .no-memos-found h2 {
    font-family: var(--font-editorial);
    font-size: 24px;
}

.memo-archive-page .no-memos-found p {
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
}

/* PAGINATION */
.memo-archive-page .memo-pagination {
    display: flex;
    justify-content: center;
    margin: 45px 0 20px;
}

.memo-archive-page .memo-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.memo-archive-page .memo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    background-color: var(--theme-surface);
    font-family: var(--font-ui);
    font-size: 12px;
    text-decoration: none;
}

.memo-archive-page .memo-pagination .page-numbers.current {
    border-color: var(--memo-red);
    background-color: var(--memo-red);
    color: #ffffff;
}

.memo-archive-page .memo-pagination a.page-numbers:hover,
.memo-archive-page .memo-pagination a.page-numbers:focus-visible {
    border-color: var(--memo-red);
    color: var(--memo-red);
}

.memo-archive-page a:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

/* TABLET */
@media screen and (min-width: 768px) {

    .memo-archive-page {
        padding: 0 30px 65px;
    }

    .memo-archive-categories {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 24px;
    }
    
    .category-filter-link {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 12px;
    }

    .memo-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .memo-archive-page .memo-card-content {
        padding: 20px;
    }
}

/* DESKTOP */
@media screen and (min-width: 1024px) {

    .memo-archive-page {
        padding: 0 40px 80px;
    }

    .memo-archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .memo-archive-page .memo-card-content {
        padding: 22px;
    }
}

/* LARGE DESKTOP */
@media screen and (min-width: 1440px) {

    .memo-archive-grid {
        gap: 36px;
    }

    .memo-archive-page .memo-card-content {
        padding: 24px;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

    .memo-archive-page .memo-card-image img {
        transition: none;
    }
}


/* =========================================================
   MEMO ARCHIVE — MOBILE HORIZONTAL CARDS
   Below 768px
========================================================= */

@media screen and (max-width: 767px) {

    /* ARCHIVE GRID */

    .memo-archive-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    /* HORIZONTAL CARD */

    .memo-archive-page .memo-card {
        display: grid;
        grid-template-columns: clamp(105px, 30%, 130px) minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        padding: 16px 0;
        border: 0;
        border-bottom: 1px solid var(--theme-border);
        background: transparent;
        overflow: visible;
    }

    .memo-archive-page .memo-card:last-child {
        border-bottom: none;
    }

    /* CARD IMAGE */

    .memo-archive-page .memo-card-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .memo-archive-page .memo-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* CARD CONTENT */

    .memo-archive-page .memo-card-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        padding: 0;
    }

    .memo-archive-page .memo-number {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .memo-archive-page .memo-category {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .memo-archive-page .memo-card-content h2 {
        margin: 0 0 7px;
        font-size: 15px;
        line-height: 1.35;
    }

    .memo-archive-page .memo-card-excerpt {
        margin: 0 0 9px;
        font-size: 11px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }

    .memo-archive-page .memo-meta {
        margin-top: 0;
        gap: 5px;
        font-size: 9px;
    }

    .memo-archive-page .memo-card-link {
        min-height: 32px;
        margin-top: 7px;
        font-size: 10px;
    }

}


/* =========================================================
   07B. CATEGORIES DIRECTORY PAGE
   Mobile-first foundation
========================================================= */

/* ---------------------------------------------------------
   PAGE FOUNDATION
--------------------------------------------------------- */

.categories-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    color: var(--theme-text);
}

/* ---------------------------------------------------------
   CATEGORIES HERO
--------------------------------------------------------- */

.categories-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
}

.categories-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.categories-hero {
        margin-bottom: 36px;
}
/* =========================================================
   CATEGORIES DIRECTORY — CONTENT WIDTH
========================================================= */

.categories-directory,
.categories-bottom-note {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

/* ---------------------------------------------------------
   CATEGORY DIRECTORY
--------------------------------------------------------- */

.categories-directory {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.categories-directory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

/* ---------------------------------------------------------
   CATEGORY CARD
--------------------------------------------------------- */

.directory-category-card {
    min-width: 0;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

/* ---------------------------------------------------------
   ACCORDION HEADING
--------------------------------------------------------- */

.directory-category-heading {
    margin: 0;
}

.categories-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 16px 4px;
    border: 0;
    background: transparent;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 17px;
    font-weight: var(--weight-bold);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.categories-accordion-title {
    min-width: 0;
}

/* ---------------------------------------------------------
   ACCORDION INDICATOR
--------------------------------------------------------- */

.categories-accordion-toggle {
    display: inline-block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-left: 16px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.categories-accordion-trigger[aria-expanded="true"]
.categories-accordion-toggle {
    transform: rotate(225deg);
}

/* ---------------------------------------------------------
   ACCORDION PANEL
--------------------------------------------------------- */

.categories-accordion-panel {
    padding: 0 4px 22px;
}

.categories-accordion-panel[hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   CATEGORY IMAGE
--------------------------------------------------------- */

.directory-category-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--theme-border);
}

.directory-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* ---------------------------------------------------------
   CATEGORY CONTENT
--------------------------------------------------------- */

.directory-category-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.directory-category-count {
    margin-bottom: 10px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.directory-category-content p {
    margin: 0 0 16px;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 12px;
    line-height: 1.7;
}

/* ---------------------------------------------------------
   CATEGORY LINK
--------------------------------------------------------- */

.directory-category-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    margin-top: auto;
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.7px;
    text-decoration: none;
}

.directory-category-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   BOTTOM MEMO ACCENT
--------------------------------------------------------- */

.categories-bottom-note {
    width: 100%;
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0;
}

.categories-bottom-note img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

.categories-accordion-trigger:focus-visible,
.directory-category-link:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

/* ---------------------------------------------------------
   DARK MODE
--------------------------------------------------------- */

body.dark-mode .directory-category-card {
    background-color: var(--theme-surface);
}

body.dark-mode .categories-accordion-trigger {
    color: var(--theme-text);
}

/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .categories-accordion-toggle,
    .directory-category-image img {
        transition: none;
    }

}

/* =========================================================
   CATEGORIES DIRECTORY — TABLET
   768px and above
========================================================= */

@media screen and (min-width: 768px) {

    /* CATEGORY GRID */

    .categories-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 28px 24px;
    }

    /* CATEGORY CARD */

    .directory-category-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border: 1px solid var(--theme-border);
    }

    /* STATIC CATEGORY HEADING */

    .categories-accordion-trigger {
        min-height: auto;
        padding: 18px 18px 12px;
        cursor: default;
        pointer-events: none;
    }

    .categories-accordion-toggle {
        display: none;
    }

    /* EXPANDED CATEGORY PANEL */

    .categories-accordion-panel {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 0 18px 20px;
    }

    .categories-accordion-panel[hidden] {
        display: flex !important;
    }

    /* CATEGORY CONTENT */

    .directory-category-content {
        flex: 1;
    }
}


/* =========================================================
   CATEGORIES DIRECTORY — DESKTOP
   1024px and above
========================================================= */

@media screen and (min-width: 1024px) {

    /* PAGE CONTENT */

    .categories-page {
        max-width: 1500px;
        padding: 0 32px;
    }

    /* HERO */

    .categories-hero {
        margin-bottom: 48px;
    }

    /* CATEGORY DIRECTORY */

    .categories-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 32px 28px;
    }

    /* CATEGORY CARDS */

    .directory-category-card {
        min-width: 0;
    }

    /* CATEGORY HEADINGS */

    .categories-accordion-trigger {
        padding: 20px 20px 14px;
        font-size: 18px;
    }

    /* CATEGORY PANELS */

    .categories-accordion-panel {
        padding: 0 20px 24px;
    }

    /* CATEGORY IMAGES */

    .directory-category-image {
        aspect-ratio: 16 / 9;
        margin-bottom: 18px;
    }

    /* CATEGORY CONTENT */

    .directory-category-count {
        font-size: 10px;
    }

    .directory-category-content p {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    /* CATEGORY LINKS */

    .directory-category-link {
        font-size: 11px;
    }

    /* BOTTOM MEMO ACCENT */

    .categories-bottom-note {
        margin-top: 40px;
    }

}


/*========================================================
  SINGLE MEMO - EDITORIAL READING EXPERIENCE
========================================================*/


/* =========================================================
   08. SINGLE MEMO PAGE
   Mobile-first editorial layout
   Matches single-memo.php
========================================================= */

/* ---------------------------------------------------------
   08.1 PAGE FOUNDATION
--------------------------------------------------------- */


/* ---------------------------------------------------------
   08.1 PAGE FOUNDATION
   Editorial parchment treatment
--------------------------------------------------------- */

.memo-single-page {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 70px;

    background-color: #F4EFE5;
    background-image:
        radial-gradient(
            ellipse at 18% 12%,
            rgba(255, 255, 255, 0.55),
            transparent 52%
        ),
        radial-gradient(
            ellipse at 82% 65%,
            rgba(190, 174, 145, 0.12),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255, 255, 255, 0.22),
            transparent 60%
        );
}

/* Main article and sidebar layout */

.memo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 36px;

    width: 100%;
    max-width: 1500px;
    margin-inline: auto;
}

/* Prevent grid content from overflowing */

.memo-article,
.memo-sidebar {
    min-width: 0;
    background: transparent;
}

/* Tablet */

@media screen and (min-width: 768px) {

    .memo-single-page {
        padding: 0 32px 80px;
    }

    .memo-layout {
        gap: 32px;
    }

}

/* Desktop */

@media screen and (min-width: 1024px) {

    .memo-single-page {
        padding: 0 clamp(36px, 4vw, 65px) 90px;
    }

    .memo-layout {
        grid-template-columns:
            minmax(0, 2fr)
            minmax(280px, 0.85fr);

        gap: clamp(32px, 4vw, 58px);
    }

}

/* Large desktop */

@media screen and (min-width: 1440px) {

    .memo-layout {
        gap: 64px;
    }

}

/* Mobile */

@media screen and (max-width: 767px) {

    .memo-single-page {
        padding: 0 18px 50px;
    }

    .memo-layout {
        gap: 30px;
    }

}

/* Dark mode */

body.dark-mode .memo-single-page {
    background-color: #171614;
    background-image:
        radial-gradient(
            ellipse at 15% 12%,
            rgba(255, 255, 255, 0.025),
            transparent 45%
        );

    color: #F4EFE5;
}
/* ---------------------------------------------------------
   08.2 MEMO HEADER
--------------------------------------------------------- */

.memo-article .memo-header {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 24px 0 22px;
    background: transparent;
    color: var(--theme-text);
    text-align: center;
}

/* Memo number and category */

.memo-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    width: 100%;
    margin-bottom: 14px;
}

.memo-article .memo-number {
    display: inline-block;
    margin: 0;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
}

.memo-header-categories {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Article title */

.memo-article .entry-title {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(30px, 7vw, 48px);
    font-weight: var(--weight-bold);
    line-height: 1.15;
}

.memo-article .memo-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 850px;
    margin: 0 auto 38px;
}

.memo-section-heading {
    display: flex;
    align-items: flex-start;
}

.memo-section-stamp {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    width: fit-content;
    min-width: 174px;
    max-width: 205px;
    min-height: 55px;
    padding: 4px;
    border: 4px double var(--memo-red);
    color: var(--memo-red);
    background-color: var(--theme-bg);
    transform: rotate(-1deg);
}

.memo-section-stamp__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 4px;
    border-right: 2px solid var(--memo-red);
}

.memo-section-stamp__icon svg {
    display: block;
    width: 39px;
    height: 39px;
    fill: none;
    color: var(--memo-red);
}

.memo-section-stamp__title {
    margin: 0 !important;
    padding: 4px 7px;
    color: var(--memo-red) !important;
    font-family: var(--font-ui);
    font-size: 17px !important;
    font-weight: var(--weight-bold);
    line-height: 1.05 !important;
    letter-spacing: -0.5px;
    text-align: left;
    text-transform: uppercase;
}

.memo-section--rant .memo-section-stamp {
    transform: rotate(0.8deg);
}

.memo-section--exception .memo-section-stamp {
    transform: rotate(-0.6deg);
}

.memo-section--memo .memo-section-stamp {
    transform: rotate(0.6deg);
}

/* Memo tagline */

.memo-tagline {
    max-width: 720px;
    margin: 0 auto 20px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(15px, 3.8vw, 20px);
    line-height: 1.6;
}

/* ---------------------------------------------------------
   08.3 AUTHOR INFORMATION AND SHARING
--------------------------------------------------------- */

.memo-author-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.memo-author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.memo-author-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
}

.memo-author-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memo-author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
}

.memo-author-name {
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 15px;
    font-weight: var(--weight-bold);
}

.memo-publication-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    color: var(--theme-muted);
    font-family: var(--font-memo);
    font-size: 11px;
    line-height: 1.5;
}

.memo-publication-meta time {
    white-space: nowrap;
}

.memo-reading-time {
    white-space: nowrap;
}

/* Social sharing */

.memo-share {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: auto;
    margin: 0;
}

.memo-share-label {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.5px;
}

.memo-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--theme-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.memo-single button.memo-share-link {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    font: inherit;
}

.memo-share svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.memo-share a:hover,
.memo-share a:focus-visible {
    color: var(--memo-red);
}

.memo-share a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   08.4 FEATURED IMAGE
--------------------------------------------------------- */

.memo-featured {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    background-color: var(--theme-border);
}

.memo-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* ---------------------------------------------------------
   08.5 ARTICLE INTRODUCTION
--------------------------------------------------------- */

.memo-intro {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 0 3px 22px;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 16px;
    line-height: 1.8;
}

.memo-intro p {
    margin: 0 0 14px;
}

.memo-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   08.5A TORN-PAPER EDITORIAL CALLOUTS
========================================================= */

.memo-section-content blockquote,
.memo-section-content .memo-callout {
    position: relative;
    isolation: isolate;
    margin: 26px 5px;
    padding: 27px 22px 24px;
    border: 0;
    border-left: 4px solid var(--memo-red, #B92727);
    background-color: var(--memo-cream, #F4EFE5);
    color: var(--memo-black, #171614);
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.75;
    filter: drop-shadow(2px 4px 4px rgba(23, 22, 20, 0.14));
    clip-path: polygon(
        1% 2%, 8% 1%, 16% 2%, 25% 0%,
        34% 2%, 44% 1%, 54% 2%, 65% 0%,
        75% 2%, 86% 1%, 99% 3%,
        98% 14%, 100% 25%, 98% 38%,
        100% 50%, 98% 63%, 100% 76%,
        98% 88%, 99% 98%, 88% 99%,
        76% 98%, 65% 100%, 53% 98%,
        41% 100%, 29% 98%, 17% 100%,
        7% 98%, 1% 99%, 2% 86%,
        0% 74%, 2% 61%, 0% 48%,
        2% 36%, 0% 22%
    );
    transform: rotate(-0.4deg);
}

.memo-section-content blockquote p,
.memo-section-content .memo-callout p {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.memo-section-content blockquote p:last-child,
.memo-section-content .memo-callout p:last-child {
    margin-bottom: 0;
}

.memo-section-content blockquote strong,
.memo-section-content .memo-callout strong {
    color: var(--memo-red, #B92727);
    font-weight: var(--weight-bold);
}

/* Highlight the first bold statement */

.memo-section-content blockquote p:first-child strong,
.memo-section-content .memo-callout p:first-child strong {
    text-decoration: underline;
    text-decoration-color: var(--memo-red, #B92727);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* ---------------------------------------------------------
   OFFICIAL RULING CALLOUT
--------------------------------------------------------- */

.memo-section-content .memo-ruling {
    position: relative;
    margin: 25px 0;
    padding: 18px 20px;
    border: 2px solid var(--memo-red, #B92727);
    background-color: var(--memo-cream, #F4EFE5);
    color: var(--memo-black, #171614);
    box-shadow: 3px 4px 0 rgba(185, 39, 39, 0.12);
}

.memo-section-content .memo-ruling strong {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--memo-red, #B92727);
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================================
   08.5B ILLUSTRATED CHECKLIST
========================================================= */

.memo-final .memo-section-content ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.memo-final .memo-section-content ul li {
    position: relative;
    display: block;
    min-height: 25px;
    margin: 0 0 9px;
    padding: 0 0 0 27px;
    color: var(--memo-black, #171614);
    line-height: 1.65;
}

.memo-final .memo-section-content ul li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: var(--memo-red, #B92727);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.memo-final .memo-section-content ul li::marker {
    content: "";
}

.memo-final .memo-section-content ul li strong {
    color: var(--memo-red, #B92727);
}

/* =========================================================
   08.5C EDITORIAL IMAGE CALLOUT
========================================================= */

.memo-section-content .memo-editorial-callout {
    position: relative;
    display: block;
    width: 100%;
    margin: 30px 0 42px;
    overflow: visible;
}

/* Editorial photograph */

.memo-editorial-callout__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* Torn-paper annotation */

.memo-editorial-callout__note {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 88%;
    max-width: 340px;
    margin: -12px 8px 0 auto;
    padding: 22px 20px;
    background-color: var(--memo-cream, #F4EFE5);
    color: var(--memo-black, #171614);
    clip-path: polygon(
        2% 2%, 15% 0%, 30% 2%, 45% 0%,
        62% 2%, 78% 0%, 98% 3%,
        100% 20%, 98% 40%, 100% 60%,
        98% 80%, 100% 97%, 80% 100%,
        62% 98%, 45% 100%, 27% 98%,
        2% 100%, 0% 80%, 2% 60%,
        0% 40%, 2% 20%
    );
    filter: drop-shadow(2px 4px 5px rgba(0, 0, 0, 0.16));
    transform: rotate(-1deg);
}

/* Annotation label */

.memo-editorial-callout__label {
    color: var(--memo-red, #B92727);
    font-family: var(--font-memo, "Courier Prime", monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Handwritten commentary */

.memo-editorial-callout__note p {
    position: relative;
    margin: 0;
    color: var(--memo-black, #171614);
    font-family: var(
        --font-handwritten,
        "Segoe Print",
        "Comic Sans MS",
        cursive
    );
    font-size: clamp(17px, 2.5vw, 22px);
    font-weight: 600;
    line-height: 1.4;
}

/* Red handwritten underline */

.memo-editorial-callout__note p::after {
    content: "";
    display: block;
    width: 65%;
    height: 3px;
    margin-top: 9px;
    background-color: var(--memo-red, #B92727);
    transform: rotate(-2deg);
}

/* Messenger attribution */

.memo-editorial-callout__attribution {
    align-self: flex-end;
    color: var(--memo-black, #171614);
    font-family: var(--font-memo, "Courier Prime", monospace);
    font-size: 12px;
    font-style: italic;
}


/* =========================================================
   08.5D — EXHIBIT A: EVIDENCE FILE
========================================================= */

.memo-section-content .memo-exhibit {
    position: relative;
    width: 100%;
    margin: 35px 0 42px;
    padding: 12px;
    background-color: var(--memo-cream, #F4EFE5);
    border: 1px solid rgba(23, 22, 20, 0.16);
    box-shadow: 3px 5px 12px rgba(23, 22, 20, 0.12);
    transform: rotate(-0.3deg);
}

/* Evidence header */

.memo-exhibit__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
    padding: 0 2px 9px;
    border-bottom: 2px solid var(--memo-red, #B92727);
}

.memo-exhibit__file {
    color: var(--memo-black, #171614);
    font-family: var(--font-memo, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.memo-exhibit__number {
    padding: 5px 8px;
    border: 2px solid var(--memo-red, #B92727);
    color: var(--memo-red, #B92727);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    transform: rotate(-3deg);
}

/* Evidence photograph */

.memo-exhibit__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(23, 22, 20, 0.2);
}

/* Evidence caption */

.memo-exhibit__caption {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 17px 5px 5px;
    color: var(--memo-black, #171614);
}

.memo-exhibit__caption h3 {
    margin: 0;
    color: var(--memo-black, #171614);
    font-family: var(--font-memo, monospace);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.memo-exhibit__caption p {
    margin: 0;
    color: var(--memo-black, #171614);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.7;
}

.memo-exhibit__attribution {
    align-self: flex-end;
    color: var(--memo-red, #B92727);
    font-family: var(--font-memo, monospace);
    font-size: 11px;
    font-style: italic;
}


/* =========================================================
   08.5E — THE MESSENGER'S PULL QUOTE
========================================================= */

.memo-section-content .memo-pull-quote {
    position: relative;
    isolation: isolate;
    width: 94%;
    max-width: 520px;
    margin: 40px auto 45px;
    padding: 38px 26px 25px;
    background-color: var(--memo-cream, #F4EFE5);
    color: var(--memo-black, #171614);
    box-shadow: 2px 5px 12px rgba(23, 22, 20, 0.12);
    clip-path: polygon(
        1% 2%, 13% 0%, 25% 2%, 38% 0%,
        52% 2%, 67% 0%, 82% 2%, 99% 1%,
        98% 17%, 100% 33%, 98% 50%,
        100% 68%, 98% 84%, 99% 98%,
        84% 100%, 68% 98%, 53% 100%,
        37% 98%, 22% 100%, 1% 98%,
        2% 82%, 0% 65%, 2% 48%,
        0% 31%, 2% 16%
    );
    transform: rotate(-0.5deg);
}

/* Oversized quotation mark */

.memo-pull-quote::before {
    content: "“";
    position: absolute;
    top: -5px;
    left: 17px;
    z-index: -1;
    color: var(--memo-red, #B92727);
    font-family: Georgia, serif;
    font-size: 76px;
    line-height: 1;
    opacity: 0.9;
}

/* Editorial label */

.memo-pull-quote__label {
    display: block;
    margin-bottom: 15px;
    color: var(--memo-red, #B92727);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* Main quotation */

.memo-pull-quote__text {
    position: relative;
    margin: 0;
    color: var(--memo-black, #171614);
    font-family: var(--font-editorial);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
}

/* Red underline */

.memo-pull-quote__text::after {
    content: "";
    display: block;
    width: 65%;
    height: 3px;
    margin-top: 13px;
    background-color: var(--memo-red, #B92727);
    transform: rotate(-1.5deg);
}

/* Attribution */

.memo-pull-quote__attribution {
    display: block;
    margin-top: 18px;
    color: var(--memo-black, #171614);
    font-family: var(--font-memo, monospace);
    font-size: 12px;
    font-style: italic;
    text-align: right;
}

/* MY MEMO LIBRARY RETURN LINK */

.memo-library-return {
    display: flex;
    justify-content: flex-start;
    margin: 24px 0 30px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color, #DED8CD);
}

.memo-library-return a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid #B92727;
    color: #B92727;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.memo-library-return a:hover {
    background-color: #B92727;
    color: #F4EFE5;
}

.memo-library-return a:focus-visible {
    outline: 2px solid #B92727;
    outline-offset: 4px;
}


/*========================================================
  MEMO SHARE — FEEDBACK MESSAGE
========================================================*/

.memo-share-feedback {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    padding: 9px 13px;
    border-left: 3px solid var(--memo-red);
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.memo-share-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================================
   08.5G EDITORIAL COMPONENTS — RESPONSIVE REFINEMENTS

   Components:
   - Messenger's Note
   - Official Ruling
   - Editorial Image Callout
   - Exhibit A
   - Messenger's Pull Quote
========================================================= */

/* ---------------------------------------------------------
   MOBILE — 320px TO 767px
--------------------------------------------------------- */

@media screen and (max-width: 767px) {

    /* Messenger's Note */

    .memo-section-content blockquote,
    .memo-section-content .memo-callout {
        margin: 23px 3px;
        padding: 23px 18px;
        font-size: 14px;
    }

    /* Official Ruling */

    .memo-section-content .memo-ruling {
        margin: 22px 0;
        padding: 16px;
    }

    /* Editorial Image Callout */

    .memo-section-content .memo-editorial-callout {
        margin: 24px 0 42px;
    }

    .memo-editorial-callout__image {
        aspect-ratio: 4 / 3;
    }

    .memo-editorial-callout__note {
        position: relative;
        width: 94%;
        max-width: none;
        margin: -5px auto 0;
        padding: 23px 20px;
    }

    .memo-editorial-callout__note p {
        font-size: 19px;
    }

    /* Exhibit A */

    .memo-section-content .memo-exhibit {
        margin: 28px 0 38px;
        padding: 9px;
    }

    .memo-exhibit__image {
        aspect-ratio: 4 / 3;
    }

    .memo-exhibit__caption {
        padding: 15px 4px 5px;
    }

    .memo-exhibit__caption h3 {
        font-size: 12px;
    }

    /* Messenger's Pull Quote */

    .memo-section-content .memo-pull-quote {
        width: 96%;
        margin: 30px auto 38px;
        padding: 34px 20px 22px;
    }

    .memo-pull-quote__text {
        font-size: 20px;
    }

}


/* ---------------------------------------------------------
   TABLET — 768px TO 1023px
--------------------------------------------------------- */

@media screen and (min-width: 768px) {

    /* Editorial Image Callout */

    .memo-section-content .memo-editorial-callout {
        margin-bottom: 65px;
    }

    .memo-editorial-callout__note {
        position: absolute;
        right: 18px;
        bottom: -28px;
        width: 44%;
        margin: 0;
    }

    /* Exhibit A */

    .memo-section-content .memo-exhibit {
        margin: 35px 0 45px;
        padding: 15px;
    }

    .memo-exhibit__caption {
        padding: 20px 8px 7px;
    }

    .memo-exhibit__caption h3,
    .memo-exhibit__caption p {
        font-size: 15px;
    }

}


/* ---------------------------------------------------------
   DESKTOP — 1024px AND ABOVE
--------------------------------------------------------- */

@media screen and (min-width: 1024px) {

    /* Messenger's Note */

    .memo-section-content blockquote,
    .memo-section-content .memo-callout {
        margin: 25px 5px;
        padding: 28px 25px;
    }

    /* Official Ruling */

    .memo-section-content .memo-ruling {
        padding: 22px 25px;
    }

    /* Messenger's Pull Quote */

    .memo-section-content .memo-pull-quote {
        width: 90%;
        margin: 42px auto 48px;
        padding: 42px 30px 28px;
    }

    .memo-pull-quote__text {
        font-size: 26px;
    }

}

/* ---------------------------------------------------------
   08.6 ARTICLE CONTENT SECTIONS
--------------------------------------------------------- */

.memo-body {
    width: 100%;
}

.memo-section h2 {
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(21px, 5vw, 27px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}

.memo-section-content {
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: break-word;
    min-width: 0;
}

.memo-section-content p {
    margin: 0 0 16px;
}

.memo-section-content p:last-child {
    margin-bottom: 0;
}

.memo-section-content strong {
    font-weight: var(--weight-bold);
}

.memo-section-content em {
    font-style: italic;
}

.memo-section-content a {
    color: var(--memo-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


.memo-section-content ul,
.memo-section-content ol {
    margin: 12px 0 18px;
    padding-left: 24px;
}

.memo-section-content ul {
    list-style: disc;
}

.memo-section-content ol {
    list-style: decimal;
}

.memo-section-content li {
    margin-bottom: 7px;
    padding-left: 3px;
}

.memo-section-content li::marker {
    color: var(--memo-red);
}

/* Final memo section */

.memo-section.memo-final {
    padding: 22px 18px;
    border-left: 4px solid var(--memo-red);
    background-color: var(--theme-surface);
}

.memo-article .memo-final {
    margin-top: 48px;
    margin-bottom: 42px;
    padding: 20px 16px;
    border: 1px solid rgba(23, 22, 20, 0.12);
    border-left: 5px solid var(--memo-red);
    background-color: var(--memo-cream);
    box-shadow: 2px 5px 12px rgba(23, 22, 20, 0.07);
}

.memo-final .memo-section-stamp {
    background-color: transparent;
}

.memo-final .memo-section-content {
    color: var(--memo-black);
}

.memo-final .memo-section-content p {
    margin-bottom: 14px;
}

.memo-final .memo-section-content > p:first-child {
    font-weight: var(--weight-bold);
}

/* ---------------------------------------------------------
   08.7 CATEGORY FILING
--------------------------------------------------------- */

.memo-article .memo-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    font-family: var(--font-ui);
    font-size: 11px;
}

.memo-article .memo-categories strong {
    color: var(--theme-muted);
}

.memo-article .memo-categories a {
    padding: 5px 9px;
    border: 1px solid var(--theme-border);
    color: var(--memo-red);
    font-size: 10px;
    text-decoration: none;
}

/* ---------------------------------------------------------
   08.8 SIDEBAR — MOBILE
--------------------------------------------------------- */

.memo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.memo-file {
    padding: 22px 18px;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
}

.memo-sidebar-heading {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 21px;
    font-weight: var(--weight-bold);
    text-transform: capitalize;
}

/* Memo file details */

.memo-file-details {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.memo-file-details > div {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.memo-file-details dt {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
}

.memo-file-details dd {
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   08.9 RELATED MEMOS
--------------------------------------------------------- */

.memo-related-list {
    display: flex;
    flex-direction: column;
}

.memo-related-card {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--theme-border);
}

.memo-related-card:first-child {
    padding-top: 0;
}

.memo-related-card:last-child {
    border-bottom: none;
}

.memo-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.memo-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memo-related-content {
    min-width: 0;
}

.memo-related-number {
    display: block;
    margin-bottom: 4px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: var(--weight-bold);
}

.memo-related-content h3 {
    margin: 0 0 6px;
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.4;
}

.memo-related-content h3 a {
    color: var(--theme-text);
    text-decoration: none;
}

.memo-related-content h3 a:hover {
    color: var(--memo-red);
}

.memo-related-content p {
    margin: 0 0 6px;
    color: var(--theme-muted);
    font-size: 11px;
    line-height: 1.5;
}

.memo-related-reading {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------
   08.10 SIDEBAR QUOTE
--------------------------------------------------------- */

.memo-sidebar-quote {
    padding: 26px 20px;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    text-align: center;
    margin-bottom: 30px;
}

.memo-sidebar-quote blockquote {
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
}

.memo-quote-attribution {
    display: block;
    margin-top: 12px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 13px;
    text-align: right;
}

/* ---------------------------------------------------------
   08.11 TABLET — 768px AND ABOVE
--------------------------------------------------------- */

@media screen and (min-width: 768px) {

    .memo-single-page {
        padding: 0 28px 70px;
    }

    .memo-layout {
        gap: 32px;
    }
    
    .memo-article .memo-section {
        gap: 18px;
        margin-bottom: 45px;
    }

    .memo-section-stamp {
        min-width: 185px;
    }

    .memo-article .memo-header {
        padding: 35px 0 28px;
    }

    .memo-article .entry-title {
        font-size: clamp(38px, 5vw, 56px);
    }

    .memo-author-share {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
    }

    .memo-author-avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .memo-share {
        justify-content: flex-end;
        gap: 12px;
    }

    .memo-featured {
        margin-bottom: 32px;
    }

    .memo-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .memo-section-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .memo-sidebar {
        gap: 25px;
    }

    .memo-related-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }
    
    .memo-final {
        padding: 26px 22px;
    }
}

/* ---------------------------------------------------------
   08.12 DESKTOP — 1024px AND ABOVE
--------------------------------------------------------- */

@media screen and (min-width: 1024px) {

    .memo-single-page {
        padding: 0 clamp(30px, 4vw, 65px) 90px;
    }

    .memo-layout {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
        align-items: start;
        gap: clamp(28px, 3vw, 45px);
    }

    .memo-article .memo-header {
        align-items: flex-start;
        max-width: none;
        padding: 38px 0 24px;
        text-align: left;
    }

    .memo-header-meta {
        justify-content: flex-start;
    }

    .memo-article .entry-title {
        font-size: clamp(42px, 4.5vw, 64px);
    }

    .memo-tagline {
        margin-left: 0;
        font-size: clamp(19px, 2vw, 24px);
    }

    .memo-author-share {
        justify-content: space-between;
        width: 100%;
    }

    .memo-featured {
        margin-bottom: 25px;
    }

    .memo-intro {
        margin-bottom: 35px;
    }

    .memo-sidebar {
        position: relative;
        padding-top: 20px;
    }

    .memo-file {
        padding: 25px 20px;
    }

    .memo-related-card {
        grid-template-columns: minmax(90px, 115px) minmax(0, 1fr);
    }
    
    .memo-article .memo-section {
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: start;
        column-gap: 22px;
        margin-bottom: 42px;
    }

    .memo-section-heading {
        position: relative;
        padding-top: 2px;
    }

    .memo-section-stamp {
        width: 100%;
        min-width: 0;
    }
    
     .memo-section-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .memo-article .memo-final {
        padding: 25px 20px;
    }

    .memo-final .memo-section-content {
        grid-column: 2;
    }
}

/* ---------------------------------------------------------
   08.13 LARGE DESKTOP — 1440px AND ABOVE
--------------------------------------------------------- */

@media screen and (min-width: 1440px) {

    .memo-layout {
        gap: 50px;
    }

    .memo-article .memo-header {
        padding-top: 45px;
    }

    .memo-article .entry-title {
        font-size: clamp(58px, 4.5vw, 76px);
    }

    .memo-sidebar {
        padding-top: 25px;
    }

    .memo-file {
        padding: 28px 24px;
    }

    .memo-related-card {
        grid-template-columns: 125px minmax(0, 1fr);
    }
    
    .memo-article .memo-section {
        grid-template-columns: 205px minmax(0, 1fr);
        column-gap: 28px;
        margin-bottom: 48px;
    }

    .memo-section-stamp__title {
        font-size: 19px !important;
    }

    .memo-section-content {
        font-size: 17px;
        line-height: 1.85;
    }
}

/* ---------------------------------------------------------
   08.14 REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .memo-single-page *,
    .memo-single-page *::before,
    .memo-single-page *::after {
        scroll-behavior: auto;
        transition: none;
    }
    
    .memo-single-page .memo-section-stamp {
        transform: none;
    }
}


/*========================================================
  MEMO RECEIVED - EDITORIAL STAMP
========================================================*/

.memo-received {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 760px;
    margin: 45px auto;
    padding: 15px;
    text-align: center;
}

.memo-received-stamp {
    display: inline-block;
    padding: 10px 20px;
    border: 3px double var(--memo-red);
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: clamp(13px, 1.5vw, 17px);
    font-weight: var(--weight-bold);
    letter-spacing: 2px;
    line-height: 1.3;
    text-transform: uppercase;
    transform: rotate(-5deg);
    opacity: 0.85;
}

/* =========================================================
   09. SHARED HEADER SEARCH / HEADER RESPONSIVE OVERRIDES
   ========================================================= */
/* TABLET AND DESKTOP */
@media screen and (min-width: 768px) {
    .memo-received {
        margin: 55px auto;
    }

    .memo-received-stamp {
        padding: 12px 25px;
        letter-spacing: 2.5px;
    }
}

/* SINGLE MEMO - NARROW DESKTOP HEADER */
@media screen and (min-width: 1024px) and (max-width: 1399px) {

    .single-memo .memo-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 850px;
    }

    .memo-breadcrumb {
        align-self: flex-start;
        width: 100%;
        margin-bottom: 35px;
        text-align: left;
    }

    .single-memo .memo-number {
        margin-bottom: 12px;
    }

    .memo-categories {
        justify-content: center;
        margin-bottom: 18px;
    }

    .single-memo .memo-title {
        width: 100%;
        text-align: center;
        font-size: clamp(42px, 4.5vw, 54px);
        margin-bottom: 18px;
    }

    .memo-post-meta {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}


/* =========================================
   MEMO ARCHIVE SEARCH AND SORT TOOLBAR
========================================= */

.memo-archive-toolbar {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 24px;
    background: #F4EFE5;
    border: 1px solid rgba(23, 22, 20, 0.15);
}

.memo-toolbar-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
}

.memo-toolbar-form label {
    display: block;
    margin-bottom: 9px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.memo-search-field input,
.memo-toolbar-sort select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #171614;
    border-radius: 0;
    background: #fff;
    color: #171614;
    font: inherit;
}

.memo-search-field input:focus,
.memo-toolbar-sort select:focus {
    outline: 2px solid #B92727;
    outline-offset: 2px;
}

.memo-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.memo-toolbar-submit {
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid #171614;
    background: #171614;
    color: #F4EFE5;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.memo-toolbar-submit:hover {
    background: #B92727;
    border-color: #B92727;
}

.memo-toolbar-reset {
    color: #171614;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memo-toolbar-reset:hover {
    color: #B92727;
}

.memo-archive-toolbar {
    margin-bottom: 30px;
    padding: 18px;
}

.memo-toolbar-form {
    grid-template-columns: 1fr;
    gap: 18px;
}

.memo-toolbar-submit {
        flex: 1;
}

/* TABLET: 768px–1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    .memo-archive-toolbar {
        margin-bottom: 35px;
        padding: 22px;
    }

    .memo-toolbar-form {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: end;
        gap: 18px 20px;
    }

    .memo-toolbar-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 18px;
    }

    .memo-toolbar-submit {
        min-width: 150px;
    }

}
/* =========================================
   MEMO ARCHIVE EMPTY STATES
========================================= */

.no-memos-found {
    width: 100%;
    padding: 55px 24px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-memos-found h2 {
    margin-bottom: 12px;
    color: #171614;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.no-memos-found p {
    max-width: 520px;
    margin: 0 auto 20px;
    color: #77716A;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    line-height: 1.7;
}

.memo-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #B92727;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.memo-empty-reset:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media screen and (max-width: 767px) {

    .no-memos-found {
        padding: 40px 16px;
    }
}


/*========================================================
  SITE-WIDE HEADER SEARCH
========================================================*/

/* SEARCH ICON BUTTON */

.search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.search-link img {
    display: block;
    width: 22px;
    height: 22px;
}

.search-link:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* SEARCH FORM */

.site-search-form {
    width: 100%;
}

.site-search-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--theme-text);
    font-family: var(--font-memo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-search-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

.site-search-input-group input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 3px;
    background: var(--theme-input-bg);
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 14px;
}

.site-search-input-group input:focus {
    outline: 2px solid var(--memo-red);
    outline-offset: 2px;
}

.site-search-input-group button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--memo-red);
    border-radius: 3px;
    background: var(--memo-red);
    color: #ffffff;
    font-family: var(--font-memo);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}

.site-search-input-group button:hover {
    background: #941e1e;
    border-color: #941e1e;
}


/* MOBILE SEARCH PANEL */

.mobile-search-panel {
    position: relative;
    bottom: auto;
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
    text-align: left;
}

.mobile-search-panel .site-search-input-group {
    flex-direction: column;
}

.mobile-search-panel .site-search-input-group button {
    width: 100%;
}


/* DESKTOP SEARCH PANEL */

.desktop-search-panel {
    position: absolute;
    top: 100%;
    right: 20px;
    z-index: 1200;
    width: min(480px, calc(100vw - 40px));
    padding: 22px;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


/* DESKTOP RESPONSIVE ADJUSTMENTS */

@media screen and (min-width: 1024px) {

    .desktop-search-panel {
        right: clamp(25px, 4vw, 72px);
    }

    .mobile-search-panel {
        display: none !important;
    }

}


/* DARK MODE */

body.dark-mode .site-search-input-group input {
    background: var(--theme-input-bg);
    color: var(--theme-text);
    border-color: var(--theme-border);
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .mobile-nav,
    .desktop-search-panel,
    .mobile-search-panel {
        transition: none;
    }

}


/* =========================================
   MOBILE NAVIGATION SOCIAL LINKS
========================================= */

.mobile-nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    padding: 18px 20px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.mobile-nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--theme-text);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-social svg,
.mobile-nav-social img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-nav-social a:hover {
    color: var(--memo-red);
    transform: translateY(-3px);
}

.mobile-nav-social a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

@media (min-width: 1024px) {
    .mobile-nav-social {
        display: none;
    }
}

/* =========================================
   MOBILE FOOTER
========================================= */

@media screen and (max-width: 767px) {

    .site-footer {
        padding: 35px 20px 20px;
        text-align: center;
    }

/* =========================================================
   10. SHARED FOOTER — GRID, SOCIAL LINKS & BOTTOM AREA
   ========================================================= */
    /* FOOTER GRID */

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    /* BRAND */

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--theme-border);
    }

    .footer-logo-link {
        display: inline-block;
    }

    .footer-logo {
        display: block;
        width: 150px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .footer-tagline {
        margin-top: 12px;
        color: var(--theme-text);
        font-family: var(--font-editorial);
        font-size: 16px;
        font-weight: var(--weight-bold);
        line-height: 1.5;
    }

    .footer-description {
        max-width: 300px;
        margin: 8px auto 0;
        color: var(--theme-muted);
        font-family: var(--font-editorial);
        font-size: 12px;
        line-height: 1.7;
    }

    /* FOOTER COLUMNS */

    .footer-column {
        min-width: 0;
    }

    .footer-column h3 {
        width: 100%;
        margin-bottom: 14px;
        color: var(--memo-red);
        font-family: var(--font-memo);
        font-size: 11px;
        font-weight: var(--weight-bold);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: center;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-column li {
        list-style: none;
    }

    .footer-column a {
        color: var(--theme-text);
        font-family: var(--font-ui);
        font-size: 12px;
        text-decoration: none;
    }

    .footer-column a:hover,
    .footer-column a:focus-visible {
        color: var(--memo-red);
    }

    /* SOCIAL LINKS */

    .footer-social {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-top: 20px;
        border-top: 1px solid var(--theme-border);
        text-align: center;
    }

    .footer-social h3 {
        margin-bottom: 0;
    }

    .social-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid var(--theme-border);
        border-radius: 50%;
        color: var(--theme-text);
        transition:
            background-color 0.2s ease,
            color 0.2s ease,
            border-color 0.2s ease;
    }

    .social-links svg {
        display: block;
        width: 19px;
        height: 19px;
    }

    .social-links a[aria-label="Threads"] svg {
        width: 16px;
        height: 19px;
    }

    .social-description {
        margin-top: 0;
        color: var(--theme-muted);
        font-family: var(--font-memo);
        font-size: 10px;
    }

    /* FOOTER BOTTOM */

    .footer-bottom p {
        color: var(--theme-muted);
        font-family: var(--font-ui);
        font-size: 10px;
        line-height: 1.6;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .social-links a {
        transition: none;
    }
}

/* =========================================================
   11. ABOUT PAGE
   ========================================================= */

/* ---------- Page foundation ---------- */

.site-main {
    padding-block: 0;
}

.about-page {
    width: 100%;
    overflow: hidden;
    background: var(--memo-cream);
    color: var(--memo-black);
}

.about-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Hero ---------- */

.about-hero {
    width: 100%;
    overflow: hidden;
    background: var(--memo-cream);
}

.about-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- Main content ---------- */

.about-content {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin-inline: auto;
}

/* ---------- Editorial sections ---------- */

.about-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(23, 22, 20, 0.25);
}

/* Section photographs */

.about-section-image {
    width: 100%;
    overflow: hidden;
}

.about-section-image img {
    width: 100%;
    object-fit: cover;
}

/* Section copy */

.about-section-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    padding: 0.25rem 0 0.25rem 0.85rem;
    border-left: 2px solid var(--memo-red);
}

.about-section-number {
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    line-height: 1.3;
    white-space: nowrap;
}

.about-section-text {
    min-width: 0;
}

.about-section-text h2 {
    margin: 0 0 0.5rem;
    color: var(--memo-black);
    font-family: var(--font-editorial);
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    font-weight: var(--weight-bold);
    line-height: 1.25;
}

.about-section-text p {
    margin: 0;
    color: var(--memo-black);
    font-family: var(--font-editorial);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================
   ABOUT PAGE — ACCORDION FOUNDATION
========================================= */

/* Keep hidden accordion elements hidden */
.about-page [hidden] {
    display: none !important;
}

/* Reset the heading button */
.about-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

/* Hide accordion indicators by default */
.about-section-toggle {
    display: none;
}


/* =========================================
   ABOUT PAGE — MOBILE ACCORDION
========================================= */

@media (max-width: 767px) {

    .about-accordion-trigger {
        cursor: pointer;
        gap: 1rem;
    }

    .about-section-toggle {
        display: inline-block;
        flex: 0 0 0.65rem;
        width: 0.65rem;
        height: 0.65rem;
        margin-right: 0.25rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.25s ease;
    }

    .about-accordion-trigger[aria-expanded="true"] .about-section-toggle {
        transform: rotate(225deg);
    }

}

/* ---------- Closing banner ---------- */

.about-closing {
    width: 100%;
    padding: 1.75rem 0 2.5rem;
    text-align: center;
}

.about-closing-paper {
    width: 100%;
}

.about-closing-paper img {
    width: 100%;
    object-fit: contain;
}

.about-closing-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

/* ---------- Explore button ---------- */

.about-explore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.85rem 1.5rem;

    background: var(--memo-red);
    border: 1px solid var(--memo-red);
    border-radius: 4px;

    color: #ffffff;
    font-family: var(--font-memo);
    font-size: 0.85rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.about-explore-button span {
    font-size: 1.2rem;
}

.about-explore-button:hover {
    background: transparent;
    color: var(--memo-red);
    transform: translateY(-2px);
}

.about-explore-button:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}


/* =========================================================
   TABLET — 768px and above
========================================================= */

@media screen and (min-width: 768px) {
    
    .site-main {
        width: 100%;
        padding-inline: 0;
    }

    .about-content {
        width: calc(100% - 3rem);
        max-width: 1200px;
        margin-inline: auto;
    }

    .about-section {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 1.75rem;
        padding: 1.75rem 0;
    }

    .about-section-image img {
        aspect-ratio: 1.9 / 1;
    }

    .about-section-copy {
        gap: 0.9rem;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .about-section-number {
        font-size: 1.65rem;
    }

    .about-section-text h2 {
        font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    }

    .about-closing {
        padding: 2rem 0 3rem;
    }

    .about-closing-cta {
        margin-top: 1.5rem;
    }
}


/* =========================================================
   DESKTOP — 1024px and above
========================================================= */

@media screen and (min-width: 1024px) {

    .about-content {
        width: min(calc(100% - 6rem), 1200px);
    }

    .about-section {
        gap: 2rem;
        padding: 1.25rem 0;
    }

    .about-section-copy {
        gap: 1rem;
        padding: 0.5rem 0 0.5rem 1.1rem;
    }

    .about-section-number {
        font-size: 1.85rem;
    }

    .about-section-text h2 {
        margin-bottom: 0.4rem;
        font-size: clamp(1.65rem, 2.4vw, 2rem);
    }

    .about-section-text p {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .about-closing {
        padding: 1.75rem 0 3rem;
    }

    .about-closing-cta {
        margin-top: 1.25rem;
    }
}


/* =========================================================
   LARGE DESKTOP — 1440px and above
========================================================= */

@media screen and (min-width: 1440px) {

    .about-content {
        width: min(calc(100% - 8rem), 1240px);
    }
    
    .about-section {
        gap: 2.5rem;
        padding: 1.5rem 0;
    }

    .about-section-copy {
        gap: 1.25rem;
    }

    .about-section-text h2 {
        font-size: 2.1rem;
    }

    .about-section-text p {
        font-size: 1rem;
    }
}


/* ---------- Dark mode ---------- */

body.dark-mode .about-page {
    background: var(--theme-bg);
    color: var(--theme-text);
}

body.dark-mode .about-section {
    border-bottom-color: var(--theme-border);
}

body.dark-mode .about-section-text h2,
body.dark-mode .about-section-text p {
    color: var(--theme-text);
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    .about-explore-button {
        transition: none;
    }

    .about-explore-button:hover {
        transform: none;
    }
}


/* ---------- About: Messenger image correction ---------- */

.about-messenger .about-section-image {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 0;
    clip-path: none;
}

.about-messenger .about-section-image img,
.about-messenger #messenger-img {
    aspect-ratio: 1.9 / 1;
    object-position: center center;
    border-radius: 0;
    clip-path: none;
}


/* ---------- About page mobile image consistency ---------- */

@media screen and (max-width: 767px) {

    .about-section {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .about-section-image img {
        aspect-ratio: 1.9 / 1;
        object-position: center;
    }

    .about-section-copy {
        padding: 0.25rem 0 0.25rem 0.75rem;
    }

    .about-section-text h2 {
        font-size: 1.35rem;
    }

    .about-section-text p {
        line-height: 1.65;
    }
}


/*========================================================
  CONTACT PAGE
========================================================*/

/*--------------------------------------------------------
  CONTACT HERO
--------------------------------------------------------*/

.contact-hero {
    width: 100%;
    overflow: hidden;
    background: var(--memo-cream);
}

.contact-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/*--------------------------------------------------------
  CONTACT CONTENT CONTAINER
--------------------------------------------------------*/

.contact-content {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin-inline: auto;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
    min-width: 0;
}

.contact-form-section,
.contact-sidebar {
    min-width: 0;
    width: 100%;
}


/*--------------------------------------------------------
  CONTACT FORM — PAPER DESIGN
--------------------------------------------------------*/

.contact-paper {
    position: relative;
    width: 100%;
    padding: 2rem 1.25rem;
    background: var(--memo-cream);
    border-left: 2px solid var(--memo-red);
    box-shadow: 0 2px 8px rgba(23, 22, 20, 0.08);
}

/* Memo Desk stamp */

.contact-paper-stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border: 2px solid var(--memo-red);
    border-radius: 50%;
    color: var(--memo-red);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    transform: rotate(10deg);
    opacity: 0.85;
}

/* Form heading */

.contact-paper h1 {
    max-width: 75%;
    margin: 0 0 0.75rem;
    color: var(--memo-black);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.2;
    display: block;
}

.contact-intro {
    max-width: 36rem;
    margin: 0 0 1.75rem;
    color: var(--memo-black);
    font-size: 0.95rem;
    line-height: 1.7;
}


/*--------------------------------------------------------
  CONTACT FORM STATUS MESSAGES
--------------------------------------------------------*/

.contact-form-notice {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-left: 3px solid;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-success {
    border-color: #47734d;
    background: rgba(71, 115, 77, 0.10);
    color: var(--memo-black);
}

.contact-error {
    border-color: var(--memo-red);
    background: rgba(185, 39, 39, 0.08);
    color: var(--memo-black);
}

body.dark-mode .contact-success,
body.dark-mode .contact-error {
    color: var(--memo-black);
}


/* Form layout */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.contact-field label {
    color: var(--memo-black);
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(23, 22, 20, 0.25);
    border-radius: 0;
    background: #fffdf8;
    color: var(--memo-black);
    font-family: inherit;
    font-size: 0.9rem;
}

.contact-field textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.6;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: 2px solid var(--memo-red);
    outline-offset: 2px;
}

/* Submit button */

.contact-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--memo-red);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-submit-button:hover {
    background: #941e1e;
}


/*--------------------------------------------------------
  CONTACT SIDEBAR
--------------------------------------------------------*/

/* Mailbox photograph */

.contact-mailbox-image {
    width: 100%;
    margin: 0 0 1.5rem;
    overflow: hidden;
}

.contact-mailbox-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}


/* Other Ways to Connect */

.contact-connect {
    width: 100%;
}

.contact-connect > h2 {
    margin: 0 0 1.25rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--memo-red);
    color: var(--theme-text);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}


/* Individual contact methods */

.contact-connect-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.contact-connect-item:last-child {
    border-bottom: 0;
}

.contact-connect-icon {
    display: flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--memo-red);
    border-radius: 50%;
    color: var(--memo-red);
    font-size: 1.25rem;
}

.contact-connect-item h3 {
    margin: 0 0 0.35rem;
    color: var(--theme-text);
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.contact-connect-item p {
    margin: 0;
    color: var(--theme-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-connect-item a {
    color: var(--memo-red);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.contact-connect-item a:hover {
    color: var(--memo-black);
}


/*--------------------------------------------------------
  CONTACT SOCIAL MEDIA LINKS
--------------------------------------------------------*/

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--theme-text);
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.contact-social-links svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

.contact-social-links a:hover {
    color: var(--memo-red);
    transform: translateY(-2px);
}

.contact-social-links a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
    border-radius: 3px;
}



/*--------------------------------------------------------
  CONTACT FAQ SECTION
--------------------------------------------------------*/

.contact-faq {
    width: 100%;
    padding: 3rem 1rem;
    background: var(--memo-cream);
}

.contact-faq-inner {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

/* FAQ heading */

.contact-faq-heading {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-faq-heading h2 {
    margin: 0 0 0.65rem;
    color: var(--memo-black);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.25;
}

.contact-faq-heading p {
    max-width: 32rem;
    margin: 0 auto;
    color: var(--memo-black);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* FAQ list */

.contact-faq-list {
    width: 100%;
    border-top: 1px solid rgba(23, 22, 20, 0.25);
}

.contact-faq-item {
    border-bottom: 1px solid rgba(23, 22, 20, 0.25);
}

/* Question row */

.contact-faq-item summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4rem;
    padding: 1rem 0;
    color: var(--memo-black);
    cursor: pointer;
    list-style: none;
}

.contact-faq-item summary::-webkit-details-marker {
    display: none;
}

.contact-faq-number {
    flex: 0 0 2rem;
    color: var(--memo-red);
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-faq-question {
    flex: 1;
    min-width: 0;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Expand / collapse indicator */

.contact-faq-toggle {
    flex: 0 0 1.5rem;
    color: var(--memo-red);
    font-size: 1.4rem;
    line-height: 1;
    text-align: center;
    transition: transform 0.2s ease;
}

.contact-faq-item[open] .contact-faq-toggle {
    transform: rotate(45deg);
}

/* Answer */

.contact-faq-answer {
    padding: 0 2.25rem 1.25rem 2.85rem;
    color: var(--memo-black);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-faq-answer p {
    margin: 0;
}

/* Keyboard accessibility */

.contact-faq-item summary:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}


/*--------------------------------------------------------
  CONTACT NEWSLETTER BANNER
--------------------------------------------------------*/

.contact-newsletter {
    width: calc(100% - 2rem);
    max-width: 1100px;
    margin: 2.5rem auto 3rem;
    padding: 2.5rem 1.25rem;
    background: var(--memo-cream);
    border-top: 3px solid var(--memo-red);
    border-bottom: 3px solid var(--memo-red);
    text-align: center;
}

/* Newsletter content */

.contact-newsletter h2 {
    margin: 0 0 0.75rem;
    color: var(--memo-black);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.25;
}

.contact-newsletter p {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
    color: var(--memo-black);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Newsletter link */

.contact-newsletter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.85rem 1.4rem;
    background: var(--memo-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.contact-newsletter a:hover {
    background: #941e1e;
}

.contact-newsletter a:focus-visible {
    outline: 2px solid var(--memo-black);
    outline-offset: 3px;
}


/*========================================================
  NEWSLETTER FORM
========================================================*/

.tmn-newsletter {
    position: relative;
    width: 100%;
    padding: 30px 24px;
    background:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(255, 255, 255, 0.45),
            transparent 55%
        ),
        #F4EFE5;
    color: #171614;
    border: 1px solid rgba(23, 22, 20, 0.16);
    box-sizing: border-box;
}

.tmn-newsletter-content {
    max-width: 100%;
    margin-inline: auto;
}

.tmn-newsletter-eyebrow {
    margin: 0 0 12px;
    color: #B92727;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tmn-newsletter h2 {
    margin: 0 0 12px;
    color: #171614;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.tmn-newsletter-description {
    margin: 0 0 22px;
    color: #49443e;
    font-size: 0.9rem;
    line-height: 1.65;
}

.tmn-newsletter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tmn-newsletter-field label {
    color: #171614;
    font-size: 0.78rem;
    font-weight: 700;
}

.tmn-newsletter-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 22, 20, 0.3);
    border-radius: 0;
    background: #FFFCF6;
    color: #171614;
    font: inherit;
    box-sizing: border-box;
}

.tmn-newsletter-field input:focus {
    outline: 2px solid #B92727;
    outline-offset: 2px;
}

.tmn-newsletter-consent {
    margin: 16px 0;
}

.tmn-newsletter-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #49443e;
    font-size: 0.75rem;
    line-height: 1.55;
}

.tmn-newsletter-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #B92727;
}

.tmn-newsletter-consent a {
    color: #B92727;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tmn-newsletter-submit {
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    border: 1px solid #B92727;
    border-radius: 0;
    background: #B92727;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.tmn-newsletter-submit:hover {
    background: #171614;
    border-color: #171614;
}

.tmn-newsletter-submit:focus-visible {
    outline: 2px solid #171614;
    outline-offset: 3px;
}

.tmn-newsletter-footer {
    margin: 18px 0 0;
    color: #71695f;
    font-family: Georgia, serif;
    font-size: 0.78rem;
    font-style: italic;
    text-align: center;
}

.tmn-newsletter-message {
    margin: 0 0 18px;
    padding: 12px;
    border-left: 3px solid #B92727;
    background: rgba(185, 39, 39, 0.07);
    color: #171614;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Honeypot: hidden from visitors, available to bots */

.tmn-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Dark mode */

.dark-mode .tmn-newsletter {
    background: #252320;
    color: #F4EFE5;
    border-color: rgba(244, 239, 229, 0.2);
}

.dark-mode .tmn-newsletter h2,
.dark-mode .tmn-newsletter-field label {
    color: #F4EFE5;
}

.dark-mode .tmn-newsletter-description,
.dark-mode .tmn-newsletter-consent label,
.dark-mode .tmn-newsletter-footer {
    color: #D0C8BB;
}

.dark-mode .tmn-newsletter-field input {
    background: #171614;
    border-color: rgba(244, 239, 229, 0.35);
    color: #F4EFE5;
}

.dark-mode .tmn-newsletter-message {
    background: rgba(185, 39, 39, 0.16);
    color: #F4EFE5;
}

/* ====================================================
      CONTACT PAGE — TABLET LAYOUT
   ====================================================*/
@media screen and (min-width: 768px) {

    .contact-content {
        width: calc(100% - 3rem);
        max-width: 1100px;
    }

    .contact-main-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.85fr);
        align-items: start;
        gap: clamp(1.5rem, 3vw, 2.5rem);
        padding: 3rem 0;
    }

    .contact-paper {
        padding: 2.5rem 1.75rem;
    }

    .contact-sidebar {
        align-self: start;
    }
}

@media screen and (min-width: 1024px) {
    
    /*====================================================
      CONTACT PAGE — DESKTOP LAYOUT
    ====================================================*/

    .contact-content {
        width: calc(100% - 4rem);
        max-width: 1200px;
    }

    .contact-main-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
        gap: clamp(2.5rem, 4vw, 4rem);
        padding: 4rem 0;
    }

    .contact-paper {
        padding: 3rem 2.5rem;
    }

}

/* =========================================================
   12. FINAL SEARCH PANEL OVERRIDES
   ========================================================= */
/* ---------- Search panel visibility fix ---------- */

/* Always respect the HTML hidden attribute */
#mobile-search-panel[hidden],
#desktop-search-panel[hidden] {
    display: none !important;
}

/* ---------- Mobile search panel refinement ---------- */

@media screen and (max-width: 1023px) {

    .mobile-search-panel {
        padding: 0.85rem 1rem 1rem;
    }

    .mobile-search-panel input[type="search"] {
        min-height: 42px;
    }

    .mobile-search-panel button[type="submit"] {
        min-height: 40px;
        margin-top: 0.5rem;
        background: var(--memo-red);
        border-color: var(--memo-red);
    }
}


/* =========================================================
   14. MEMO SAVE / UNSAVE COMPONENT
   Reader Library Interaction
========================================================= */

.memo-save-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 45px auto 30px;
    padding: 22px 0;
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

/* SAVE BUTTON */

.tmas-save-memo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;

    border: 1px solid var(--memo-red);
    border-radius: 2px;

    background-color: var(--memo-red);
    color: #ffffff;

    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* HOVER */

.tmas-save-memo-button:hover {
    background-color: transparent;
    color: var(--memo-red);
}

/* SAVED STATE */

.tmas-save-memo-button[aria-pressed="true"] {
    background-color: var(--theme-surface);
    border-color: var(--memo-red);
    color: var(--memo-red);
}

.tmas-save-memo-button[aria-pressed="true"]:hover {
    background-color: var(--memo-red);
    color: #ffffff;
}

/* KEYBOARD ACCESSIBILITY */

.tmas-save-memo-button:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}

/* DISABLED / PROCESSING STATE */

.tmas-save-memo-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* RESPONSE MESSAGE */

.tmas-save-memo-message {
    display: block;
    min-height: 20px;

    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
}

/* TABLET */

@media screen and (min-width: 768px) {

    .memo-save-action {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        margin-top: 55px;
        padding: 25px 0;
    }

}

/* DESKTOP */

@media screen and (min-width: 1024px) {

    .memo-save-action {
        margin-top: 65px;
    }

    .tmas-save-memo-button {
        min-height: 48px;
        padding: 13px 26px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .tmas-save-memo-button {
        transition: none;
    }

}


/* =========================================================
   14B. SINGLE MEMO — ADD TO COLLECTIONS
   Reader Collection Filing
========================================================= */

.tmas-add-to-collection {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 35px;
    padding: 24px 20px;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--memo-red);
}

/* SECTION HEADING */

.tmas-add-to-collection h2 {
    margin: 0 0 10px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: var(--weight-bold);
    line-height: 1.4;
}

/* INTRODUCTION AND FEEDBACK */

.tmas-add-to-collection > p {
    margin: 0 0 18px;

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.7;
}

.tmas-add-to-collection .tmas-message {
    margin: 15px 0;
    padding: 12px 15px;

    background-color: var(--theme-bg);
    border-left: 3px solid var(--memo-red);

    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
}

/* COLLECTION LIST */

.tmas-collection-options {
    display: flex;
    flex-direction: column;
    gap: 0;

    width: 100%;
    border-top: 1px solid var(--theme-border);
}

.tmas-collection-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-width: 0;
    padding: 15px 0;

    border-bottom: 1px solid var(--theme-border);
}

.tmas-collection-option > span:first-child {
    min-width: 0;
    flex: 1 1 160px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
    font-weight: var(--weight-bold);
    line-height: 1.5;
}

/* ADD BUTTON */

.tmas-collection-option form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.tmas-collection-option button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 85px;
    min-height: 36px;
    padding: 8px 14px;

    border: 1px solid var(--memo-red);
    border-radius: 2px;

    background-color: var(--memo-red);
    color: #ffffff;

    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.tmas-collection-option button:hover {
    background-color: transparent;
    color: var(--memo-red);
}

.tmas-collection-option button:focus-visible,
.tmas-add-to-collection a:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 3px;
}

/* ALREADY ADDED */

.tmas-collection-option .tmas-collection-added {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 6px 12px;

    border: 1px solid var(--theme-border);

    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
}

/* CREATE COLLECTION LINK */

.tmas-add-to-collection > a {
    display: inline-flex;
    align-items: center;

    margin-top: 5px;
    padding-bottom: 4px;

    border-bottom: 1px solid var(--memo-red);

    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-decoration: none;
}

.tmas-add-to-collection > a:hover {
    color: var(--theme-text);
    border-color: var(--theme-text);
}

/* TABLET */

@media screen and (min-width: 768px) {

    .tmas-add-to-collection {
        margin-bottom: 40px;
        padding: 26px 28px;
    }

    .tmas-collection-option {
        padding: 17px 4px;
    }

    .tmas-collection-option > span:first-child {
        font-size: 15px;
    }

}

/* DESKTOP */

@media screen and (min-width: 1024px) {

    .tmas-add-to-collection {
        padding: 28px 32px;
    }

    .tmas-collection-option button {
        min-width: 95px;
        min-height: 38px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .tmas-collection-option button {
        transition: none;
    }

}

/* =========================================================
   15. MY MEMO LIBRARY
   15A. LIBRARY HEADER & NAVIGATION
   ========================================================= */

/* ---------- LIBRARY FOUNDATION ---------- */

.tmas-library-page {
    width: 100%;
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

.tmas-library-section {
    width: 100%;
    padding: 0 20px 50px;
}

.tmas-library-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}


/* ---------- LIBRARY HEADER ---------- */

.tmas-library-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;

    width: 100%;
    padding: 30px 20px;

    background-color: var(--theme-surface);
    color: var(--theme-text);

    border-bottom: 1px solid var(--theme-border);
    box-shadow: none;
}

.tmas-library-header .tmas-eyebrow {
    display: block;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tmas-library-header h1 {
    display: block;
    margin: 8px 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(25px, 4vw, 36px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}

.tmas-library-header p {
    margin: 0;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- LIBRARY NAVIGATION / TABS ---------- */

.tmas-library-navigation {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;

    width: 100%;
    margin-bottom: 30px;

    border-bottom: 1px solid var(--theme-border);
    background-color: var(--theme-bg);
}

.tmas-library-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 16px;

    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;

    background: transparent;
    color: var(--theme-muted);

    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.tmas-library-tab:hover {
    color: var(--memo-red);
}

.tmas-library-tab.is-active {
    color: var(--memo-red);
    border-bottom-color: var(--memo-red);
}

.tmas-library-tab:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: -3px;
    position: relative;
    z-index: 1;
}

/* Prevent inactive panels from displaying. */
.tmas-library-panel[hidden] {
    display: none !important;
}

/* Dark Mode */
body.dark-mode .tmas-library-navigation {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
}

body.dark-mode .tmas-library-tab {
    color: var(--theme-muted);
}

body.dark-mode .tmas-library-tab:hover,
body.dark-mode .tmas-library-tab.is-active {
    color: var(--memo-red);
}

/* =========================================================
   END 15A. LIBRARY HEADER & NAVIGATION
   ========================================================= */
   
   
/* =========================================================
   15B. LIBRARY HEADER REFINEMENTS
   ========================================================= */

/* HEADER CONTENT */

.tmas-library-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.tmas-library-header h1 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.tmas-library-header p {
    max-width: 100%;
}


/* TABLET AND ABOVE */

@media screen and (min-width: 768px) {

    .tmas-library-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "eyebrow title"
            "welcome welcome";
        align-items: center;
        column-gap: 30px;
        row-gap: 15px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .tmas-library-header .tmas-eyebrow {
        grid-area: eyebrow;
    }

    .tmas-library-header h1 {
        grid-area: title;
        justify-self: end;
        text-align: right;
    }

    .tmas-library-header p {
        grid-area: welcome;
        justify-self: end;
        text-align: right;
    }

}


/* NARROW MOBILE */

@media screen and (max-width: 400px) {

    .tmas-library-section {
        padding-inline: 12px;
    }

    .tmas-library-header {
        padding: 22px 16px;
    }

    .tmas-library-header h1 {
        font-size: clamp(23px, 8vw, 29px);
    }

    .tmas-library-header p {
        font-size: 14px;
    }

    .tmas-library-navigation a {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 11px;
    }

}


/* =========================================================
   END 15B
   ========================================================= */


/* =========================================================
   15C. MY MEMO LIBRARY
   SAVED MEMO CARDS
========================================================= */

/* ---------- SAVED MEMOS SECTION ---------- */

.tmas-library-panel {
    width: 100%;
    margin-bottom: 45px;
}

.tmas-library-panel h2 {
    margin: 0 0 22px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}


/* ---------- SAVED MEMO GRID ---------- */

.tmas-saved-memos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}


/* ---------- INDIVIDUAL MEMO CARD ---------- */

.tmas-saved-memo-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.tmas-saved-memo-card:hover {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}


/* ---------- FEATURED IMAGE ---------- */

.tmas-saved-memo-card > a:first-child {
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.tmas-saved-memo-card > a:first-child img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.35s ease;
}

.tmas-saved-memo-card:hover > a:first-child img {
    transform: scale(1.035);
}


/* ---------- CARD CONTENT ---------- */

.tmas-saved-memo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;

    gap: 12px;
    padding: 20px;
}


/* PUBLICATION DATE */

.tmas-saved-memo-date {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* MEMO TITLE */

.tmas-saved-memo-content h3 {
    margin: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.tmas-saved-memo-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tmas-saved-memo-content h3 a:hover {
    color: var(--memo-red);
}


/* MEMO EXCERPT */

.tmas-saved-memo-content p {
    margin: 0;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.65;
}


/* READ MEMO LINK */

.tmas-read-memo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 8px;

    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.tmas-read-memo-link:hover {
    color: var(--theme-text);
}


/* ---------- EMPTY LIBRARY ---------- */

.tmas-empty-library {
    margin: 0 0 18px;
    padding: 25px;

    background-color: var(--theme-surface);
    border-left: 3px solid var(--memo-red);

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 16px;
    line-height: 1.7;
}


/* ---------- EXPLORE MEMOS LINK ---------- */

.tmas-library-panel > a:not(.tmas-read-memo-link) {
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);
    letter-spacing: 1px;
    text-decoration: none;
}

.tmas-library-panel > a:not(.tmas-read-memo-link):hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE LAYOUTS
========================================================= */

/* ---------- MOBILE ---------- */

@media screen and (max-width: 767px) {

    .tmas-saved-memos-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tmas-saved-memo-content {
        padding: 17px;
    }

    .tmas-saved-memo-content h3 {
        font-size: 19px;
    }

}


/* ---------- TABLET ---------- */

@media screen and (min-width: 768px) {

    .tmas-saved-memos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .tmas-saved-memo-content {
        padding: 18px;
    }

}


/* ---------- DESKTOP ---------- */

@media screen and (min-width: 1024px) {

    .tmas-saved-memos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }

    .tmas-saved-memo-content {
        padding: 22px;
    }

}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    .tmas-saved-memo-card,
    .tmas-saved-memo-card img,
    .tmas-read-memo-link,
    .tmas-saved-memo-content h3 a {
        transition: none;
    }

    .tmas-saved-memo-card:hover {
        transform: none;
    }

}


/* =========================================================
   END 15C. SAVED MEMO CARDS
========================================================= */


/* =========================================
   MY MEMO LIBRARY — COLLECTIONS
========================================= */

.tmas-library-panel {
    margin-bottom: 4rem;
}

.tmas-collections-header {
    background: #F4EFE5;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #B92727;
}

.tmas-collections-header h2 {
    margin: 0 0 0.75rem;
}

.tmas-collections-header p {
    margin: 0;
    color: #716B63;
}

/* CREATE COLLECTION */

.tmas-create-collection {
    max-width: 680px;
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: #FAF8F3;
    border: 1px solid #E5DED2;
}

.tmas-create-collection h3 {
    margin: 0 0 1.5rem;
    color: #171614;
}

.tmas-field label,
.tmas-collection-card label {
    color: #171614;
}

.tmas-create-collection-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tmas-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tmas-field label,
.tmas-collection-card label {
    font-size: 0.9rem;
    font-weight: 600;
}

.tmas-field input,
.tmas-field textarea,
.tmas-collection-card input,
.tmas-collection-card select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px solid #D8D0C4;
    border-radius: 2px;
    background: #FFFFFF;
    color: #171614;
    font: inherit;
}

.tmas-field textarea {
    min-height: 100px;
    resize: vertical;
}

.tmas-field input:focus,
.tmas-field textarea:focus,
.tmas-collection-card input:focus,
.tmas-collection-card select:focus {
    outline: 2px solid #B92727;
    outline-offset: 2px;
}

/* BUTTONS */

.tmas-submit,
.tmas-secondary-submit,
.tmas-delete-collection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.85rem 1.4rem;
    border: 1px solid #B92727;
    border-radius: 2px;
    background: #B92727;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tmas-submit:hover,
.tmas-secondary-submit:hover {
    background: #171614;
    border-color: #171614;
}

.tmas-delete-collection {
    background: transparent;
    color: #B92727;
}

.tmas-delete-collection:hover {
    background: #B92727;
    color: #FFFFFF;
}

/* COLLECTION GRID */

.tmas-collections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tmas-collection-card {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid #E5DED2;
    background: #FAF8F3;
}

.tmas-collection-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5DED2;
}

.tmas-collection-card-header h3 {
    margin: 0;
}

.tmas-collection-count {
    display: inline-block;
    margin-top: 0.5rem;
    color: #716B63;
    font-size: 0.8rem;
}

.tmas-collection-description {
    color: #716B63;
    line-height: 1.6;
}

/* COLLECTION MANAGEMENT */

.tmas-collection-management {
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid #E5DED2;
    border-bottom: 1px solid #E5DED2;
}

.tmas-collection-management summary {
    color: #B92727;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.tmas-collection-management form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* COLLECTION MEMOS */

.tmas-collection-memos {
    margin: 1.5rem 0;
}

.tmas-collection-memo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #E5DED2;
}

.tmas-collection-memo > a {
    color: #171614;
    font-weight: 600;
    text-decoration: none;
}

.tmas-collection-memo > a:hover {
    color: #B92727;
}

.tmas-remove-memo {
    padding: 0.4rem 0.6rem;
    border: 0;
    background: transparent;
    color: #B92727;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.tmas-empty-collection,
.tmas-empty-collections {
    padding: 1.5rem;
    background: #F4EFE5;
    border-left: 3px solid #B92727;
    color: #716B63;
    line-height: 1.7;
}

/* ADD MEMO */

.tmas-add-memo-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* FEEDBACK */

.tmas-message {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #F4EFE5;
    border-left: 4px solid #B92727;
    line-height: 1.5;
}


/* =========================================
   COLLECTIONS — DARK MODE
========================================= */

body.dark-mode .tmas-collections-header,
body.dark-mode .tmas-empty-collection,
body.dark-mode .tmas-empty-collections,
body.dark-mode .tmas-message {
    background-color: var(--theme-surface);
    border-color: var(--memo-red);
    color: var(--theme-text);
}

body.dark-mode .tmas-create-collection,
body.dark-mode .tmas-collection-card {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .tmas-create-collection h3,
body.dark-mode .tmas-field label,
body.dark-mode .tmas-collection-card label {
    color: var(--theme-text);
}

body.dark-mode .tmas-collections-header p,
body.dark-mode .tmas-collection-count,
body.dark-mode .tmas-collection-description {
    color: var(--theme-muted);
}

body.dark-mode .tmas-field input,
body.dark-mode .tmas-field textarea,
body.dark-mode .tmas-collection-card input,
body.dark-mode .tmas-collection-card select {
    background-color: var(--theme-input-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode .tmas-field input::placeholder,
body.dark-mode .tmas-field textarea::placeholder {
    color: var(--theme-muted);
}

body.dark-mode .tmas-collection-card-header,
body.dark-mode .tmas-collection-management,
body.dark-mode .tmas-collection-memo {
    border-color: var(--theme-border);
}

body.dark-mode .tmas-collection-management summary,
body.dark-mode .tmas-collection-memo > a,
body.dark-mode .tmas-remove-memo {
    color: var(--memo-red);
}

body.dark-mode .tmas-collection-memo > a {
    color: var(--theme-text);
}

body.dark-mode .tmas-collection-memo > a:hover {
    color: var(--memo-red);
}

body.dark-mode .tmas-submit:hover,
body.dark-mode .tmas-secondary-submit:hover {
    background-color: var(--theme-text);
    border-color: var(--theme-text);
    color: var(--theme-bg);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1023px) {

    .tmas-collections-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .tmas-collections-header {
        padding: 1.5rem;
    }

    .tmas-create-collection {
        padding: 1.25rem;
    }

    .tmas-collections-grid {
        gap: 1rem;
    }

    .tmas-collection-card {
        padding: 1.15rem;
    }

    .tmas-submit,
    .tmas-secondary-submit,
    .tmas-delete-collection {
        width: 100%;
    }

    .tmas-collection-memo {
        align-items: flex-start;
    }

}


/* =========================================================
   16. EMAIL CHANGE CONFIRMATION PAGE
   ========================================================= */

.tmas-confirm-email-page {
    width: 100%;
    min-height: 65vh;
    padding: 50px 20px 70px;
    background-color: var(--theme-bg);
}

.tmas-confirm-email-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 30px 24px;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 4px solid var(--memo-red);

    color: var(--theme-text);
}

.tmas-confirm-email-container h1 {
    display: block;
    margin: 0 0 20px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(24px, 5vw, 34px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}

.tmas-confirm-email-container p {
    margin: 0 0 18px;

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.8;
}

.tmas-confirm-email-container .tmas-pending-email {
    margin: 22px 0;
    padding: 16px;

    background-color: var(--theme-bg);
    border-left: 3px solid var(--memo-red);

    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.tmas-confirm-email-container form {
    margin: 25px 0;
}

.tmas-confirm-email-container .tmas-submit {
    width: 100%;
    min-height: 52px;
}

.tmas-confirm-email-cancel {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--theme-border);
}

.tmas-confirm-email-container a {
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.tmas-confirm-email-container a:hover,
.tmas-confirm-email-container a:focus-visible {
    text-decoration: underline;
}

.tmas-confirm-email-container a:focus-visible,
.tmas-confirm-email-container button:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}


/* TABLET */

@media screen and (min-width: 768px) {

    .tmas-confirm-email-page {
        padding: 75px 30px 90px;
    }

    .tmas-confirm-email-container {
        padding: 45px;
    }

    .tmas-confirm-email-container .tmas-submit {
        width: fit-content;
        min-width: 260px;
    }

}


/* DARK MODE */

body.dark-mode .tmas-confirm-email-container {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    border-top-color: var(--memo-red);
}

body.dark-mode .tmas-confirm-email-container h1 {
    color: var(--theme-text);
}

body.dark-mode .tmas-confirm-email-container .tmas-pending-email {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .tmas-confirm-email-container * {
        transition: none;
    }

}

/* =========================================================
   17A. ACCOUNT SETTINGS — PROFILE INFORMATION
========================================================= */

.tmas-account-profile {
    width: 100%;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.tmas-account-profile h3 {
    margin: 0 0 0.5rem;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 21px;
    font-weight: var(--weight-bold);
}

.tmas-account-profile > p {
    margin: 0 0 1.25rem;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.7;
}

.tmas-profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);
}

.tmas-profile-form .tmas-field {
    width: 100%;
}

.tmas-profile-form input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--theme-border);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
}

.tmas-profile-form input:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}

.tmas-profile-form small {
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.5;
}

.tmas-profile-form .tmas-submit {
    width: 100%;
    min-height: 50px;
}

/* DARK MODE */

body.dark-mode .tmas-profile-form {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    border-top-color: var(--memo-red);
}

body.dark-mode .tmas-profile-form input {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

/* TABLET AND DESKTOP */

@media screen and (min-width: 768px) {

    .tmas-profile-form {
        padding: 28px;
    }

    .tmas-profile-form .tmas-submit {
        width: fit-content;
        min-width: 250px;
    }

}

/* =========================================================
   17. ACCOUNT SETTINGS — EMAIL CHANGE FORM
   ========================================================= */

.tmas-account-email {
    max-width: 680px;
}

.tmas-account-email h3 {
    margin: 28px 0 10px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 18px;
    font-weight: var(--weight-bold);
}

.tmas-account-email > p {
    margin: 0 0 16px;
    color: var(--theme-muted);
    line-height: 1.7;
}

.tmas-email-change-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
    padding: 22px;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);
}

.tmas-email-change-form .tmas-field {
    width: 100%;
}

.tmas-email-change-form .tmas-submit {
    width: 100%;
    min-height: 50px;
}

.tmas-email-change-form input:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}

/* DARK MODE */

body.dark-mode .tmas-email-change-form {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    border-top-color: var(--memo-red);
}

body.dark-mode .tmas-email-change-form input {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode .tmas-email-change-form input::placeholder {
    color: var(--theme-muted);
}

/* TABLET AND DESKTOP */

@media screen and (min-width: 768px) {

    .tmas-email-change-form {
        padding: 28px;
    }

    .tmas-email-change-form .tmas-submit {
        width: fit-content;
        min-width: 250px;
    }

}

/* =========================================================
   18. ACCOUNT SETTINGS — ACCOUNT ACCESS
   ========================================================= */

.tmas-account-access {
    max-width: 680px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--theme-border);
}

.tmas-account-access h3 {
    margin: 0 0 10px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 18px;
    font-weight: var(--weight-bold);
}

.tmas-account-access a {
    display: inline-block;
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: var(--weight-bold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tmas-account-access a:hover,
.tmas-account-access a:focus-visible {
    color: var(--theme-text);
    text-decoration: underline;
}

.tmas-account-access a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* DARK MODE */

body.dark-mode .tmas-account-access {
    border-top-color: var(--theme-border);
}

/* =========================================================
   18. TMAS — PASSWORD VISIBILITY TOGGLE
   ========================================================= */

.tmas-field {
    position: relative;
}

.tmas-field input[type="password"],
.tmas-field input[type="text"]:has(+ .tmas-password-toggle) {
    padding-right: 76px;
}

.tmas-password-toggle {
    position: absolute;
    right: 12px;
    bottom: 14px;
    z-index: 2;

    padding: 5px 7px;
    border: none;
    background: transparent;
    color: var(--memo-red);

    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;

    cursor: pointer;
}

.tmas-password-toggle:hover {
    text-decoration: underline;
}

.tmas-password-toggle:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Dark mode */
body.dark-mode .tmas-password-toggle {
    color: var(--memo-red);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tmas-password-toggle {
        transition: none;
    }
}

/* =========================================
   FORGOT PASSWORD PAGE
========================================= */

.tmas-forgot-password-page .tmas-container {
    width: min(100% - 2rem, 600px);
    margin-inline: auto;
    padding-block: 4rem;
}

.tmas-forgot-password-page .tmas-page-header {
    margin-bottom: 2rem;
}

.tmas-forgot-password-page .tmas-page-header h1 {
    font-family: var(--font-editorial);
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.tmas-forgot-password-page .tmas-page-header p {
    color: var(--theme-muted);
    line-height: 1.7;
}

.tmas-forgot-password-form {
    display: grid;
    gap: 1.5rem;
}

.tmas-forgot-password-form .tmas-field {
    display: grid;
    gap: 0.5rem;
}

.tmas-forgot-password-form label {
    color: var(--theme-text);
    font-weight: 600;
}

.tmas-forgot-password-form input {
    width: 100%;
    box-sizing: border-box;
}

.tmas-forgot-password-form .tmas-submit {
    width: 100%;
}


/* =========================================
   RESET PASSWORD PAGE
========================================= */

.tmas-reset-password-page {
    width: 100%;
    min-height: 65vh;
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

.tmas-reset-password-page .tmas-container {
    width: min(100% - 2rem, 600px);
    margin-inline: auto;
    padding-block: 4rem;
}

.tmas-reset-password-page .tmas-page-header {
    margin-bottom: 2rem;
}

.tmas-reset-password-page .tmas-page-header h1 {
    display: block;
    margin: 0 0 1rem;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(25px, 5vw, 34px);
    font-weight: var(--weight-bold);
    line-height: 1.3;
}

.tmas-reset-password-page .tmas-page-header p {
    margin: 0;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.7;
}

/* RESET FORM */

.tmas-reset-password-form {
    display: grid;
    gap: 1.5rem;

    margin-top: 1.5rem;
    padding: 1.5rem;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);
}

.tmas-reset-password-form .tmas-field {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}

.tmas-reset-password-form label {
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
}

.tmas-reset-password-form input {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;

    border: 1px solid var(--theme-border);
    border-radius: 2px;

    background-color: var(--theme-bg);
    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 15px;
}

.tmas-reset-password-form input:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}

.tmas-reset-password-form small {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 12px;
}

.tmas-reset-password-form .tmas-submit {
    width: 100%;
    min-height: 50px;
}

/* LOGIN PROMPT */

.tmas-reset-password-page .tmas-login-prompt {
    margin-top: 1.5rem;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
}

.tmas-reset-password-page .tmas-login-prompt a {
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.tmas-reset-password-page .tmas-login-prompt a:hover {
    text-decoration: underline;
}

/* ERROR MESSAGES */

.tmas-reset-password-page .tmas-message-error {
    padding: 1rem 1.25rem;
    background-color: var(--theme-surface);
    border-left: 4px solid var(--memo-red);
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
}

/* TABLET AND DESKTOP */

@media screen and (min-width: 768px) {

    .tmas-reset-password-form {
        padding: 2rem;
    }

    .tmas-reset-password-form .tmas-submit {
        width: fit-content;
        min-width: 250px;
    }

}

/* DARK MODE */

body.dark-mode .tmas-reset-password-form {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    border-top-color: var(--memo-red);
}

body.dark-mode .tmas-reset-password-form input {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode .tmas-reset-password-form input:focus-visible {
    outline-color: var(--memo-red);
}


/* =========================================================
   19. TMAS — AUTHENTICATION PAGES
   19A. LOGIN PAGE FOUNDATION
   ========================================================= */

.tmas-login-page {
    width: 100%;
    min-height: 65vh;
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

.tmas-login-page .tmas-account-section {
    width: 100%;
    padding: 48px 20px 64px;
}

.tmas-login-page .tmas-account-container {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
}

/* ---------- PAGE HEADING ---------- */

.tmas-login-page .tmas-account-heading {
    margin-bottom: 28px;
}

.tmas-login-page .tmas-account-heading .tmas-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tmas-login-page .tmas-account-heading h1 {
    display: block;
    margin: 0 0 12px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(25px, 5vw, 34px);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.tmas-login-page .tmas-account-heading p {
    margin: 0;

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.7;
}


/* ---------- TABLET AND DESKTOP ---------- */

@media screen and (min-width: 768px) {

    .tmas-login-page .tmas-account-section {
        padding: 70px 30px 90px;
    }

    .tmas-login-page .tmas-account-heading {
        margin-bottom: 36px;
    }

}

/* =========================================================
   19. TMAS — AUTHENTICATION PAGES
   19A. LOGIN PAGE
   ========================================================= */

/* ---------- LOGIN CONTAINER ---------- */

.tmas-login {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    color: var(--theme-text);
    font-family: var(--font-editorial);
}


/* ---------- LOGIN FORM ---------- */

.tmas-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 24px;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);
}

.tmas-login-form .tmas-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.tmas-login-form .tmas-field label,
.tmas-resend-verification .tmas-field label {
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: var(--weight-bold);
}

.tmas-login-form input[type="email"],
.tmas-login-form input[type="password"],
.tmas-resend-verification input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;

    border: 1px solid var(--theme-border);
    border-radius: 2px;

    background-color: var(--theme-bg);
    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 14px;
}

.tmas-login-form input:focus-visible,
.tmas-resend-verification input:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}


/* ---------- LOGIN OPTIONS ---------- */

.tmas-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    font-family: var(--font-ui);
    font-size: 12px;
}

.tmas-login-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-muted);
    cursor: pointer;
}

.tmas-login-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--memo-red);
    cursor: pointer;
}

.tmas-login-options a {
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.tmas-login-options a:hover {
    text-decoration: underline;
}


/* ---------- LOGIN BUTTON ---------- */

.tmas-login-form .tmas-submit {
    width: 100%;
    min-height: 52px;
}


/* ---------- ACCOUNT DIVIDER ---------- */

.tmas-login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 18px;

    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.12em;
}

.tmas-login-divider::before,
.tmas-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--theme-border);
}


/* ---------- SIGNUP PROMPT ---------- */

.tmas-signup-prompt {
    margin: 0 0 32px;
    text-align: center;

    font-family: var(--font-editorial);
    font-size: 14px;
}

.tmas-signup-prompt a {
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.tmas-signup-prompt a:hover {
    text-decoration: underline;
}


/* ---------- RESEND VERIFICATION ---------- */

.tmas-resend-verification {
    padding: 22px;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);
}

.tmas-resend-verification h2 {
    margin: 0 0 12px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 19px;
    font-weight: var(--weight-bold);
    line-height: 1.4;
}

.tmas-resend-verification > p {
    margin: 0 0 20px;

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.7;
}

.tmas-resend-verification form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tmas-resend-verification .tmas-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmas-resend-verification .tmas-secondary-submit {
    width: 100%;
    min-height: 48px;
}


/* ---------- DARK MODE ---------- */

body.dark-mode .tmas-login-form,
body.dark-mode .tmas-resend-verification {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    border-top-color: var(--memo-red);
}

body.dark-mode .tmas-login-form input,
body.dark-mode .tmas-resend-verification input {
    background-color: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode .tmas-login-options label {
    color: var(--theme-muted);
}


/* ---------- TABLET AND DESKTOP ---------- */

@media screen and (min-width: 768px) {

    .tmas-login-form {
        padding: 32px;
    }

    .tmas-resend-verification {
        padding: 28px;
    }

    .tmas-login-form .tmas-submit,
    .tmas-resend-verification .tmas-secondary-submit {
        width: 100%;
    }

}


/* ---------- ACCESSIBILITY ---------- */

.tmas-login a:focus-visible,
.tmas-login button:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .tmas-login *,
    .tmas-resend-verification * {
        transition: none !important;
    }

}


/* =========================================================
   20. TMAS — REGISTRATION PAGE
   ========================================================= */

/* ---------- PAGE FOUNDATION ---------- */

.tmas-signup-page {
    width: 100%;
    min-height: 65vh;
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

.tmas-signup-page .tmas-account-section {
    width: 100%;
    padding: 48px 20px 64px;
}

.tmas-signup-page .tmas-account-container {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
}

/* ---------- PAGE HEADING ---------- */

.tmas-signup-page .tmas-account-heading {
    margin-bottom: 28px;
}

.tmas-signup-page .tmas-account-heading .tmas-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tmas-signup-page .tmas-account-heading h1 {
    display: block;
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(25px, 5vw, 34px);
    font-weight: var(--weight-bold);
    line-height: 1.35;
}

.tmas-signup-page .tmas-account-heading p {
    margin: 0;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.7;
}


/* ---------- REGISTRATION FORM ---------- */

.tmas-signup {
    width: 100%;
}

.tmas-signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    padding: 24px;

    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--memo-red);

    color: var(--theme-text);
}

/* ---------- FIELD ROW ---------- */

.tmas-signup-form .tmas-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

/* ---------- INDIVIDUAL FIELDS ---------- */

.tmas-signup-form .tmas-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.tmas-signup-form .tmas-field label {
    display: block;
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);
}

.tmas-signup-form .tmas-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;

    border: 1px solid var(--theme-border);
    border-radius: 2px;

    background-color: var(--theme-bg);
    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 14px;
}

.tmas-signup-form .tmas-field input:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 3px;
}

.tmas-signup-form .tmas-field input::placeholder {
    color: var(--theme-muted);
    opacity: 1;
}

/* ---------- PASSWORD GUIDANCE ---------- */

.tmas-signup-form .tmas-field small {
    display: block;
    margin-top: 2px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1.5;
}

/* ---------- PASSWORD VISIBILITY TOGGLE ---------- */

.tmas-signup-form .tmas-field input[type="password"],
.tmas-signup-form .tmas-field input[type="text"]:has(+ .tmas-password-toggle) {
    padding-right: 76px;
}

/* ---------- CREATE ACCOUNT BUTTON ---------- */

.tmas-signup-form .tmas-submit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;
    padding: 14px 20px;

    border: 1px solid var(--memo-red);
    border-radius: 2px;

    background-color: var(--memo-red);
    color: #ffffff;

    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.07em;

    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.tmas-signup-form .tmas-submit:hover {
    background-color: var(--memo-black);
    border-color: var(--memo-black);
}

.tmas-signup-form .tmas-submit:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}


/* ---------- EXISTING ACCOUNT PROMPT ---------- */

.tmas-signup .tmas-login-prompt {
    margin: 22px 0 0;
    text-align: center;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.7;
}

.tmas-signup .tmas-login-prompt a {
    color: var(--memo-red);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.tmas-signup .tmas-login-prompt a:hover {
    text-decoration: underline;
}

.tmas-signup .tmas-login-prompt a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}


/* ---------- REGISTRATION STATUS MESSAGES ---------- */

.tmas-signup .tmas-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 4px solid var(--memo-red);
    background-color: var(--theme-surface);
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.6;
}


/* ---------- TABLET AND DESKTOP ---------- */

@media screen and (min-width: 768px) {

    .tmas-signup-page .tmas-account-section {
        padding: 70px 30px 90px;
    }

    .tmas-signup-page .tmas-account-heading {
        margin-bottom: 36px;
    }

    .tmas-signup-form {
        padding: 32px;
    }

    .tmas-signup-form .tmas-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

    .tmas-signup-page *,
    .tmas-signup-page *::before,
    .tmas-signup-page *::after {
        transition: none !important;
    }

}


/* =========================================================
   SINGLE MEMO REDESIGN — STEP 1
   Editorial memo header
========================================================= */

/* Header foundation */
.memo-single-page .memo-article .memo-header {
    max-width: none;
    gap: 0;
    padding: 28px 0 24px;
    text-align: left;
}

/* Memo number — red official stamp */
.memo-single-page .memo-article .memo-number {
    display: inline-block;
    width: fit-content;
    margin: 0 4px 0 0;
    padding: 7px 12px;
    border: 2px solid var(--memo-red);
    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transform: rotate(-5deg);
}

/* Memo number and category alignment */
.memo-single-page .memo-header-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

/* Category line */
.memo-single-page .memo-header-categories {
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.7;
    text-transform: uppercase;
}

/* Main headline */
.memo-single-page .memo-article .entry-title {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(38px, 5.2vw, 76px);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.08;
    text-align: left;
}

/* Memo tagline */
.memo-single-page .memo-tagline {
    width: 100%;
    max-width: 850px;
    margin: 0 0 18px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(18px, 2.1vw, 26px);
    line-height: 1.4;
    text-align: left;
}

/* Author and sharing row */
.memo-single-page .memo-author-share {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

/* Mobile refinement */
@media screen and (max-width: 767px) {

    .memo-single-page .memo-article .memo-header {
        align-items: center;
        padding: 25px 0 20px;
        text-align: center;
    }

    .memo-single-page .memo-header-meta {
        justify-content: center;
        margin-bottom: 17px;
    }

    .memo-single-page .memo-article .entry-title {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: -1.5px;
        text-align: center;
    }

    .memo-single-page .memo-tagline {
        font-size: 18px;
        text-align: center;
    }

    .memo-single-page .memo-author-share {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }
}


/* =========================================================
   SINGLE MEMO REDESIGN — STEP 2
   Tablet and desktop page spacing
========================================================= */

/* TABLET — 768px to 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    .memo-single-page {
        padding: 0 40px 70px;
    }

    .memo-layout {
        width: 100%;
        max-width: 1100px;
        margin-inline: auto;
        gap: 32px;
    }
}

/* DESKTOP — 1024px and above */
@media screen and (min-width: 1024px) {

    .memo-single-page {
        width: 100%;
        padding: 0 clamp(48px, 5vw, 85px) 90px;
    }

    .memo-layout {
        width: 100%;
        max-width: 1450px;
        margin-inline: auto;
        gap: clamp(32px, 3vw, 50px);
    }
}

/* LARGE DESKTOP — 1440px and above */
@media screen and (min-width: 1440px) {

    .memo-single-page {
        padding-right: clamp(75px, 6vw, 110px);
        padding-left: clamp(75px, 6vw, 110px);
    }
}


/* =========================================================
   SINGLE MEMO REDESIGN — STEP 3
   Featured image / editorial paper treatment
========================================================= */

.memo-single-page .memo-featured {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 8px 0 42px;
    padding: 9px;
    background: #F4EFE5;
    filter: drop-shadow(0 5px 9px rgba(23, 22, 20, 0.13));
}

/* Irregular torn-paper silhouette */
.memo-single-page .memo-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #E8DFCF;
    clip-path: polygon(
        1% 2%, 12% 1%, 24% 2%, 36% 0,
        49% 2%, 62% 1%, 75% 2%, 88% 0,
        99% 2%, 98% 18%, 100% 35%,
        98% 52%, 100% 69%, 98% 85%,
        100% 98%, 86% 99%, 72% 98%,
        58% 100%, 44% 98%, 30% 100%,
        16% 98%, 1% 100%, 2% 82%,
        0 65%, 2% 48%, 0 31%, 2% 15%
    );
}

/* Featured photograph */
.memo-single-page .memo-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: cover;
    clip-path: polygon(
        1% 1%, 15% 0, 30% 1%, 45% 0,
        60% 1%, 75% 0, 90% 1%, 99% 0,
        100% 20%, 99% 40%, 100% 60%,
        99% 80%, 100% 99%, 85% 100%,
        70% 99%, 55% 100%, 40% 99%,
        25% 100%, 1% 99%, 0 80%,
        1% 60%, 0 40%, 1% 20%
    );
}

/* TABLET */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    .memo-single-page .memo-featured {
        margin-bottom: 40px;
        padding: 8px;
    }

}

/* DESKTOP */
@media screen and (min-width: 1024px) {

    .memo-single-page .memo-featured {
        margin-bottom: 48px;
        padding: 11px;
    }

}

/* MOBILE */
@media screen and (max-width: 767px) {

    .memo-single-page .memo-featured {
        width: 100%;
        margin: 8px 0 30px;
        padding: 5px;
    }

}


/* =========================================================
   SINGLE MEMO REDESIGN — STEP 4
   Article introduction and editorial sections
========================================================= */

/* ARTICLE INTRODUCTION */
.memo-single-page .memo-intro {
    max-width: 100%;
    margin: 0 0 42px;
    padding: 0 0 0 18px;
    border-left: 3px solid var(--memo-red);
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.75;
}

.memo-single-page .memo-intro p {
    margin: 0 0 14px;
}

.memo-single-page .memo-intro p:last-child {
    margin-bottom: 0;
}

/* EDITORIAL BODY */
.memo-single-page .memo-body {
    width: 100%;
    margin-top: 24px;
}

/* INDIVIDUAL SECTIONS */
.memo-single-page .memo-section {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin: 0 0 42px;
    padding: 0;
}

/* SECTION STAMP */
.memo-single-page .memo-section-stamp {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 220px;
    min-height: 76px;
    padding: 9px 12px;
    border: 2px solid var(--memo-red);
    color: var(--memo-red);
    background: #F4EFE5;
    box-shadow: inset 0 0 0 2px #F4EFE5,
                inset 0 0 0 3px var(--memo-red);
}

/* STAMP ICON */
.memo-single-page .memo-section-stamp__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding-right: 9px;
    border-right: 1px solid var(--memo-red);
}

.memo-single-page .memo-section-stamp__icon svg {
    display: block;
    width: 34px;
    height: 34px;
    color: var(--memo-red);
}

/* STAMP TITLE */
.memo-single-page .memo-section-stamp__title {
    margin: 0;
    color: var(--memo-red);
    font-family: var(--font-editorial);
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* SECTION CONTENT */
.memo-single-page .memo-section-content {
    min-width: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.75;
}

.memo-single-page .memo-section-content p {
    margin: 0 0 16px;
}

.memo-single-page .memo-section-content p:last-child {
    margin-bottom: 0;
}

.memo-single-page .memo-section-content ul,
.memo-single-page .memo-section-content ol {
    margin: 12px 0 18px;
    padding-left: 24px;
}

.memo-single-page .memo-section-content li {
    margin-bottom: 5px;
}

/* FINAL MEMO SECTION */
.memo-single-page .memo-section--memo {
    padding: 24px;
    border: 1px solid #DED5C7;
    border-left: 4px solid var(--memo-red);
    background: #F4EFE5;
}

.memo-single-page .memo-section--memo .memo-section-stamp {
    transform: rotate(-1deg);
}

/* TABLET */
@media screen and (min-width: 768px) and (max-width: 1023px) {

    .memo-single-page .memo-section {
        grid-template-columns: 175px minmax(0, 1fr);
        gap: 20px;
        margin-bottom: 36px;
    }

    .memo-single-page .memo-section-stamp {
        min-height: 68px;
        padding: 8px;
    }

    .memo-single-page .memo-section-stamp__title {
        font-size: 17px;
    }

}

/* MOBILE */
@media screen and (max-width: 767px) {

    .memo-single-page .memo-intro {
        margin-bottom: 32px;
        padding-left: 14px;
        font-size: 16px;
        line-height: 1.7;
    }

    .memo-single-page .memo-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 34px;
    }

    .memo-single-page .memo-section-stamp {
        max-width: 205px;
        min-height: 64px;
    }

    .memo-single-page .memo-section-stamp__title {
        font-size: 18px;
    }

    .memo-single-page .memo-section-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .memo-single-page .memo-section--memo {
        padding: 18px;
    }

}

/* DARK MODE */
body.dark-mode .memo-single-page .memo-section-stamp,
body.dark-mode .memo-single-page .memo-section--memo {
    background: #242220;
    border-color: var(--memo-red);
}

body.dark-mode .memo-single-page .memo-section-stamp {
    box-shadow: inset 0 0 0 2px #242220,
                inset 0 0 0 3px var(--memo-red);
}

body.dark-mode .memo-single-page .memo-section--memo {
    border-left-color: var(--memo-red);
}


/* =========================================================
   SINGLE MEMO REDESIGN — STEP 5
   Save Memo + Reader Collections
========================================================= */

/* SAVE MEMO AREA */
.memo-single-page .memo-save-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    max-width: 760px;
    margin: 48px auto 26px;
    padding: 22px 0;

    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

/* SAVE BUTTON */
.memo-single-page .tmas-save-memo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 22px;

    border: 1px solid var(--memo-red);
    border-radius: 0;
    background: transparent;

    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.memo-single-page .tmas-save-memo-button:hover,
.memo-single-page .tmas-save-memo-button[aria-pressed="true"] {
    background: var(--memo-red);
    color: #fff;
}

/* SAVE FEEDBACK */
.memo-single-page .tmas-save-memo-message {
    min-height: 18px;
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;
}

/* COLLECTION PANEL */
.memo-single-page .tmas-add-to-collection {
    width: 100%;
    max-width: 760px;
    margin: 26px auto 35px;
    padding: 24px;

    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--memo-red);
}

/* COLLECTION HEADING */
.memo-single-page .tmas-add-to-collection h2 {
    margin: 0 0 10px;

    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

/* COLLECTION DESCRIPTION */
.memo-single-page .tmas-add-to-collection > p {
    margin: 0 0 16px;

    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.7;
}

/* COLLECTION LINKS */
.memo-single-page .tmas-add-to-collection > a {
    display: inline-block;
    padding-bottom: 5px;

    border-bottom: 1px solid var(--memo-red);

    color: var(--memo-red);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-decoration: none;
    text-transform: uppercase;
}

.memo-single-page .tmas-add-to-collection > a:hover {
    border-bottom-width: 2px;
}

/* DARK MODE */
body.dark-mode .memo-single-page .tmas-save-memo-button {
    background: transparent;
    color: var(--memo-red);
}

body.dark-mode .memo-single-page .tmas-save-memo-button:hover,
body.dark-mode .memo-single-page .tmas-save-memo-button[aria-pressed="true"] {
    background: var(--memo-red);
    color: #fff;
}

/* TABLET + DESKTOP */
@media screen and (min-width: 768px) {

    .memo-single-page .memo-save-action {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        margin-top: 55px;
        padding: 22px 0;
    }

    .memo-single-page .tmas-add-to-collection {
        padding: 26px 28px;
    }

}

/* MOBILE */
@media screen and (max-width: 767px) {

    .memo-single-page .memo-save-action {
        margin-top: 35px;
        padding: 20px 0;
    }

    .memo-single-page .tmas-save-memo-button {
        width: 100%;
    }

    .memo-single-page .tmas-add-to-collection {
        margin-top: 22px;
        padding: 20px 16px;
    }

}


/*========================================================
  FINAL SINGLE MEMO — SOCIAL SHARING CORRECTIONS
  Fixes:
  - External SVG icon sizing
  - Anchor and button alignment
  - Instagram and TikTok button appearance
  - Threads visibility
  - Hover and keyboard states
  - Share feedback styling
========================================================*/

/* SHARE NAVIGATION */

.memo-single-page .memo-author-share .memo-share {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* SHARE LABEL */

.memo-single-page .memo-share .memo-share-label {
    display: inline-block;
    flex: 0 0 auto;
    margin-right: 3px;

    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* ALL SHARE LINKS AND BUTTONS */

.memo-single-page .memo-share .memo-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;

    margin: 0;
    padding: 4px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    color: var(--theme-text);
    text-decoration: none;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

/* EXTERNAL SVG FILES LOADED THROUGH IMG */

.memo-single-page .memo-share .memo-share-link img {
    display: block !important;

    width: 21px !important;
    min-width: 21px !important;
    max-width: 21px !important;

    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain;
    object-position: center;
}

/* INSTAGRAM AND TIKTOK BUTTON RESET */

.memo-single-page .memo-share button.memo-share-link {
    appearance: none;
    -webkit-appearance: none;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;

    color: var(--theme-text);
}

/* HOVER STATES */

.memo-single-page .memo-share .memo-share-link:hover {
    color: var(--memo-red);
    transform: translateY(-2px);
}

.memo-single-page .memo-share .memo-share-link:hover img {
    opacity: 0.8;
}

/* KEYBOARD ACCESSIBILITY */

.memo-single-page .memo-share .memo-share-link:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* SHARE FEEDBACK */

.memo-single-page .memo-share-feedback {
    display: block;
    width: fit-content;
    max-width: 100%;

    margin: 10px 0 0 auto;
    padding: 9px 13px;

    border-left: 3px solid var(--memo-red);

    background: var(--theme-surface);
    color: var(--theme-text);

    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-4px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.memo-single-page .memo-share-feedback.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* DARK MODE */

body.dark-mode .memo-single-page .memo-share .memo-share-link {
    color: var(--theme-text);
}

body.dark-mode .memo-single-page .memo-share .memo-share-link:hover {
    color: var(--memo-red);
}

body.dark-mode .memo-single-page .memo-share-feedback {
    background: var(--theme-surface);
    color: var(--theme-text);
}

/* MOBILE */

@media screen and (max-width: 767px) {

    .memo-single-page .memo-author-share .memo-share {
        justify-content: center;
        gap: 12px;
    }

    .memo-single-page .memo-share-feedback {
        margin: 10px auto 0;
        text-align: center;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .memo-single-page .memo-share .memo-share-link,
    .memo-single-page .memo-share-feedback {
        transition: none;
    }

}


/*========================================================
  SINGLE MEMO — EDITORIAL DOSSIER
========================================================*/

.memo-single-page .memo-file {
    position: relative;
    padding: 27px 22px 30px;
    border: 0;
    background-color: #E9DFCC;
    background-image:
        radial-gradient(
            ellipse at 12% 15%,
            rgba(255, 255, 255, 0.55),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 90% 85%,
            rgba(135, 105, 68, 0.10),
            transparent 50%
        );
    box-shadow:
        0 2px 5px rgba(23, 22, 20, 0.08),
        2px 5px 14px rgba(23, 22, 20, 0.07);
}

/* Dossier heading */

.memo-single-page .memo-file .memo-sidebar-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(23, 22, 20, 0.18);
    color: #171614;
    font-family: var(--font-editorial);
    font-size: 25px;
    line-height: 1.2;
}

/* Information rows */

.memo-single-page .memo-file-details {
    gap: 15px;
}

.memo-single-page .memo-file-details > div {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
}

.memo-single-page .memo-file-details dt {
    color: #51483D;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.memo-single-page .memo-file-details dd {
    color: #171614;
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.5;
}

/* Dark mode dossier */

body.dark-mode .memo-single-page .memo-file {
    background-color: #29251F;
    background-image:
        radial-gradient(
            ellipse at 12% 15%,
            rgba(255, 255, 255, 0.035),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 90% 85%,
            rgba(0, 0, 0, 0.16),
            transparent 50%
        );
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.20);
}

body.dark-mode .memo-single-page .memo-file .memo-sidebar-heading {
    color: #F4EFE5;
    border-bottom-color: rgba(244, 239, 229, 0.18);
}

body.dark-mode .memo-single-page .memo-file-details dt {
    color: #C2B8A8;
}

body.dark-mode .memo-single-page .memo-file-details dd {
    color: #F4EFE5;
}


/*========================================================
  SINGLE MEMO — RELATED MEMOS EDITORIAL STYLE
========================================================*/

.memo-single-page .memo-sidebar > .memo-related {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.memo-single-page .memo-related .memo-sidebar-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(23, 22, 20, 0.18);
    font-family: var(--font-editorial);
    font-size: 23px;
    color: var(--theme-text);
}

.memo-single-page .memo-related-list {
    display: flex;
    flex-direction: column;
}

.memo-single-page .memo-related-card {
    display: grid;
    grid-template-columns: minmax(90px, 125px) minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid var(--theme-border);
}

.memo-single-page .memo-related-card:first-child {
    padding-top: 0;
}

.memo-single-page .memo-related-card:last-child {
    border-bottom: 0;
}

.memo-single-page .memo-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--theme-border);
}

.memo-single-page .memo-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memo-single-page .memo-related-image:hover img {
    transform: scale(1.04);
}

.memo-single-page .memo-related-content {
    min-width: 0;
}

.memo-single-page .memo-related-number {
    display: block;
    margin: 0 0 4px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.memo-single-page .memo-related-content h3 {
    margin: 0 0 6px;
    font-family: var(--font-editorial);
    font-size: 15px;
    line-height: 1.3;
}

.memo-single-page .memo-related-content h3 a {
    color: var(--theme-text);
    text-decoration: none;
}

.memo-single-page .memo-related-content h3 a:hover {
    color: var(--memo-red);
}

.memo-single-page .memo-related-content p {
    margin: 0 0 8px;
    color: var(--theme-muted);
    font-family: var(--font-editorial);
    font-size: 12px;
    line-height: 1.5;
}

.memo-single-page .memo-related-reading {
    color: var(--theme-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Dark mode */

body.dark-mode .memo-single-page .memo-related .memo-sidebar-heading {
    border-bottom-color: var(--theme-border);
}

body.dark-mode .memo-single-page .memo-related-card {
    border-bottom-color: var(--theme-border);
}

/* Tablet and desktop */

@media screen and (min-width: 768px) {

    .memo-single-page .memo-related-card {
        grid-template-columns: minmax(100px, 125px) minmax(0, 1fr);
        gap: 12px;
    }

}

/* Mobile */

@media screen and (max-width: 767px) {

    .memo-single-page .memo-related-card {
        grid-template-columns: minmax(100px, 120px) minmax(0, 1fr);
    }

}


/*========================================================
  SINGLE MEMO — MESSENGER'S SIDEBAR QUOTE
========================================================*/

.memo-single-page .memo-sidebar-quote {
    position: relative;
    margin: 8px 0 20px;
    padding: 38px 24px 25px;
    border: 0;
    background-color: #E9DFCC;
    background-image:
        radial-gradient(
            ellipse at 15% 15%,
            rgba(255, 255, 255, 0.55),
            transparent 55%
        );
    box-shadow: 2px 5px 12px rgba(23, 22, 20, 0.08);
    text-align: center;
}

.memo-single-page .memo-sidebar-quote::before {
    content: "“";
    display: block;
    margin-bottom: -12px;
    color: #171614;
    font-family: var(--font-editorial);
    font-size: 65px;
    line-height: 0.9;
    text-align: left;
}

.memo-single-page .memo-sidebar-quote blockquote {
    margin: 0;
    color: #171614;
    font-family: var(--font-editorial);
    font-size: 19px;
    font-style: italic;
    line-height: 1.5;
}

.memo-single-page .memo-quote-attribution {
    display: block;
    margin-top: 20px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 13px;
    text-align: right;
}

/* Dark mode */

body.dark-mode .memo-single-page .memo-sidebar-quote {
    background-color: #29251F;
    background-image: none;
}

body.dark-mode .memo-single-page .memo-sidebar-quote::before,
body.dark-mode .memo-single-page .memo-sidebar-quote blockquote {
    color: #F4EFE5;
}


/* =========================================================
   THE MEMO BLOG — ADVERTISING & AFFILIATE DISCLOSURE
   Page-specific styles only
   ========================================================= */

/* PAGE FOUNDATION */

.disclosure-page {
    width: 100%;
    min-height: 60vh;
    padding: 0 20px 80px;
    background: var(--theme-bg);
    color: var(--theme-text);
}

.disclosure-page .disclosure-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* HERO */

.disclosure-page .disclosure-hero {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 38px;
    text-align: center;
    border-bottom: 1px solid var(--theme-border);
}

.disclosure-page .disclosure-eyebrow {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    text-align: center;
}

.disclosure-page .disclosure-hero .entry-title {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 16px;
    text-align: center;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.2;
}

.disclosure-page .disclosure-hero .disclosure-intro {
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

/* EFFECTIVE / UPDATED DATES */

.disclosure-page .disclosure-hero .disclosure-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 28px;
    width: 100%;
    margin: 22px auto 0;
    text-align: center;
}

.disclosure-page .disclosure-meta strong {
    color: var(--theme-text);
    font-weight: 700;
}

.disclosure-page .disclosure-meta span {
    display: inline-block;
    white-space: nowrap;
}

/* SHORT VERSION SUMMARY */

.disclosure-page .disclosure-summary {
    position: relative;
    max-width: 900px;
    margin: 38px auto 48px;
    padding: 25px 26px;
    background: var(--theme-surface);
    border-left: 4px solid var(--memo-red);
}

.disclosure-page .disclosure-summary h2 {
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(19px, 2.5vw, 23px);
    line-height: 1.4;
}

.disclosure-page .disclosure-summary p {
    margin: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.85;
}

/* CONTENT LAYOUT */

.disclosure-page .disclosure-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}

/* TABLE OF CONTENTS */

.disclosure-page .disclosure-toc {
    position: fixed;
    top: 30px;
    padding: 22px 18px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
}

.disclosure-page .disclosure-toc h2 {
    margin: 0 0 18px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.disclosure-page .disclosure-toc ol {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: disclosure-toc;
}

.disclosure-page .disclosure-toc li {
    margin: 0;
    padding: 0;
}

.disclosure-page .disclosure-toc a {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
    color: var(--theme-text);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.disclosure-page .disclosure-toc a::before {
    counter-increment: disclosure-toc;
    content: counter(disclosure-toc, decimal-leading-zero);
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-weight: 700;
}

.disclosure-page .disclosure-toc a:hover,
.disclosure-page .disclosure-toc a:focus-visible {
    color: var(--memo-red);
}

/* MOBILE CONTENTS CONTROL */

.disclosure-page .disclosure-mobile-toc {
    display: none;
}

/* DISCLOSURE BODY */

.disclosure-page .disclosure-content {
    min-width: 0;
}

.disclosure-page .disclosure-section {
    padding: 0 0 30px;
    margin: 0 0 30px;
    border-bottom: 1px solid var(--theme-border);
    scroll-margin-top: 35px;
}

.disclosure-page .disclosure-section:last-child {
    border-bottom: 0;
}

.disclosure-page .disclosure-section h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.disclosure-page .disclosure-section-number {
    flex: 0 0 auto;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 13px;
    font-weight: 700;
}

.disclosure-page .disclosure-section h2::before {
    flex: 0 0 auto;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 13px;
    font-weight: 700;
}

.disclosure-page .disclosure-section p {
    margin: 0 0 16px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.9;
}

.disclosure-page .disclosure-section p:last-child {
    margin-bottom: 0;
}

.disclosure-page .disclosure-section ul,
.disclosure-page .disclosure-section ol {
    margin: 0 0 18px 22px;
    padding: 0;
}

.disclosure-page .disclosure-section li {
    margin-bottom: 9px;
    padding-left: 4px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.8;
}

.disclosure-page .disclosure-section a {
    color: var(--memo-red);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.disclosure-page .disclosure-section a:hover {
    text-decoration-thickness: 2px;
}

/* CONTACT SECTION */

.disclosure-page .disclosure-contact {
    padding: 25px;
    background: var(--theme-surface);
    border-top: 3px solid var(--memo-red);
}

.disclosure-page .disclosure-contact p {
    margin-bottom: 10px;
}

.disclosure-page .disclosure-contact a {
    color: var(--memo-red);
    font-weight: 700;
}

/* KEYBOARD ACCESSIBILITY */

.disclosure-page a:focus-visible,
.disclosure-page summary:focus-visible {
    outline: 3px solid var(--memo-red);
    outline-offset: 4px;
}


/* =========================================================
   DISCLOSURE PAGE — RESPONSIVE LAYOUT
   Desktop: Above 900px
   Tablet and mobile: 900px and below
   ========================================================= */

/* TABLET AND MOBILE */

@media screen and (max-width: 900px) {

    /* PAGE FOUNDATION */

    .disclosure-page {
        padding: 0 18px 55px;
    }

    /* HERO */

    .disclosure-page .disclosure-hero {
        padding: 36px 10px 28px;
    }

    .disclosure-page .disclosure-hero .entry-title {
        font-size: clamp(28px, 8vw, 38px);
    }

    .disclosure-page .disclosure-hero .disclosure-meta {
        flex-direction: column;
        gap: 5px;
    }

    .disclosure-page .disclosure-meta span {
        white-space: normal;
    }

    /* SUMMARY */

    .disclosure-page .disclosure-summary {
        margin: 28px 0 30px;
        padding: 20px;
    }

    /* SWITCH TO SINGLE COLUMN */

    .disclosure-page .disclosure-layout {
        display: block;
    }

    /* HIDE DESKTOP SIDEBAR */

    .disclosure-page .disclosure-toc {
        display: none;
    }

    /* SHOW COLLAPSIBLE NAVIGATION */

    .disclosure-page .disclosure-mobile-toc {
        display: block;
        margin-bottom: 30px;
        border: 1px solid var(--theme-border);
        background: var(--theme-surface);
    }

    .disclosure-page .disclosure-mobile-toc summary {
        padding: 16px 18px;
        color: var(--theme-text);
        font-family: var(--font-memo);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        cursor: pointer;
        text-transform: uppercase;
    }

    .disclosure-page .disclosure-mobile-toc ol {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 18px 16px;
        list-style: none;
    }

    .disclosure-page .disclosure-mobile-toc li {
        margin: 0;
        padding: 0;
        border-top: 1px solid var(--theme-border);
    }

    .disclosure-page .disclosure-mobile-toc a {
        display: block;
        padding: 11px 0;
        color: var(--theme-text);
        font-family: var(--font-ui);
        font-size: 13px;
        line-height: 1.5;
        text-decoration: none;
    }

    .disclosure-page .disclosure-mobile-toc a:hover {
        color: var(--memo-red);
    }

    /* DISCLOSURE SECTIONS */

    .disclosure-page .disclosure-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
        scroll-margin-top: 25px;
    }

    .disclosure-page .disclosure-section p,
    .disclosure-page .disclosure-section li {
        font-size: 13px;
        line-height: 1.85;
    }

    /* CONTACT SECTION */

    .disclosure-page .disclosure-contact {
        padding: 20px;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .disclosure-page *,
    .disclosure-page *::before,
    .disclosure-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}


/* =========================================
   OPT-OUT PREFERENCES
   The Memo Blog – Legal Document Styling
========================================= */

.memo-legal-document {
    --optout-cream: #F4EFE5;
    --optout-black: #171614;
    --optout-red: #B92727;

    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 64px);
    color: var(--optout-black);
    font-family: var(--font-editorial);
    line-height: 1.75;
}

/* Document headings */

.memo-legal-document h1,
.memo-legal-document h2,
.memo-legal-document h3,
.memo-legal-document h4 {
    color: var(--optout-black);
    font-family: var(--font-memo);
    line-height: 1.25;
    margin-top: 1.8em;
    margin-bottom: 0.65em;
}

.memo-legal-document h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1em;
}

.memo-legal-document h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--optout-red);
    padding-bottom: 10px;
}

.memo-legal-document h3 {
    font-size: 1.3rem;
}

/* Paragraphs and links */

.memo-legal-document p,
.memo-legal-document li {
    font-size: 0.98rem;
}

.memo-legal-document a {
    color: var(--optout-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memo-legal-document a:hover {
    color: var(--optout-black);
}

/* Privacy request form */

.memo-legal-document form {
    margin: 32px 0;
    padding: clamp(20px, 3vw, 36px);
    background: var(--optout-cream);
    border: 1px solid var(--theme-border);
    border-top: 4px solid var(--optout-red);
    border-radius: 4px;
}

.memo-legal-document form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.memo-legal-document form input:not([type="checkbox"]):not([type="radio"]),
.memo-legal-document form select,
.memo-legal-document form textarea {
    width: 100%;
    max-width: 520px;
    min-height: 46px;
    padding: 11px 13px;
    margin: 5px 0 16px;
    color: var(--optout-black);
    background: #fff;
    border: 1px solid #b9b2a6;
    border-radius: 3px;
    font: inherit;
}

.memo-legal-document form input:focus,
.memo-legal-document form select:focus,
.memo-legal-document form textarea:focus {
    outline: 2px solid var(--optout-red);
    outline-offset: 2px;
}

/* Request checkboxes */

.memo-legal-document form input[type="checkbox"],
.memo-legal-document form input[type="radio"] {
    width: 17px;
    height: 17px;
    margin-right: 9px;
    accent-color: var(--optout-red);
    vertical-align: middle;
}

.memo-legal-document form button,
.memo-legal-document form input[type="submit"],
.memo-legal-document form button[type="submit"] {
    display: inline-block;
    min-height: 46px;
    padding: 12px 30px;
    color: #fff;
    background: var(--optout-red);
    border: 1px solid var(--optout-red);
    border-radius: 3px;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.memo-legal-document form button:hover,
.memo-legal-document form input[type="submit"]:hover,
.memo-legal-document form button[type="submit"]:hover {
    color: var(--optout-red);
    background: transparent;
}

/* Mobile */

@media screen and (max-width: 700px) {
    .memo-legal-document {
        padding: 24px 18px;
    }

    .memo-legal-document form {
        padding: 20px 16px;
    }

    .memo-legal-document form input:not([type="checkbox"]):not([type="radio"]),
    .memo-legal-document form select,
    .memo-legal-document form textarea {
        max-width: 100%;
    }
}


/* =========================================================
   THE MEMO BLOG — PUBLIC EDITORIAL COLLECTIONS
   Mobile-first styling
========================================================= */

/* PAGE FOUNDATION */

.collections-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px 50px;
    color: var(--theme-text);
    background: var(--theme-bg);
}

/* HERO */

.collections-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    width: 100%;
    margin: 0 auto 32px;
    overflow: hidden;
    background: var(--theme-surface);
    border-bottom: 3px solid var(--paper-gray);
}

.collections-hero-content {
    position: relative;
    z-index: 2;
    padding: 34px 24px;
}

.collections-eyebrow,
.collections-section-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.collections-hero h1 {
    display: block;
    margin: 0 0 14px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(29px, 6vw, 54px);
    font-weight: 700;
    line-height: 1.15;
}

.collections-hero h1::after {
    display: block;
    width: 75%;
    max-width: 300px;
    height: 5px;
    margin-top: 12px;
    background: var(--memo-red);
    content: "";
    transform: rotate(-2deg);
}

.collections-hero-content p {
    max-width: 520px;
    margin: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 13px;
    font-style: italic;
    line-height: 1.8;
}

.collections-hero-artwork {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface);
}

.collections-hero-artwork img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* DIRECTORY HEADER */

.collections-directory {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.collections-directory-header {
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
}

.collections-directory-header .collections-section-eyebrow {
    margin: 0;
}

.collections-directory-header h2 {
    display: block;
    margin: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.35;
    width: 100%;
}

.collections-directory-header p {
    margin: 0;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 12px;
    line-height: 1.8;
    max-width: 100%;
}

/* COLLECTION GRID */

.collections-directory-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

/* COLLECTION CARD */

.editorial-collection-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    box-shadow: 0 2px 7px rgba(23, 22, 20, 0.06);
}

/* CARD IMAGE */

.editorial-collection-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--theme-surface);
}

.editorial-collection-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.editorial-collection-image:hover img {
    transform: scale(1.025);
}

/* CARD CONTENT */

.editorial-collection-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 2px 3px;
}

.editorial-collection-count {
    display: block;
    margin-bottom: 6px;
    color: var(--theme-text);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.editorial-collection-content h3 {
    margin: 0 0 8px;
    font-family: var(--font-editorial);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.editorial-collection-content h3 a {
    color: var(--theme-text);
    text-decoration: none;
}

.editorial-collection-content h3 a:hover {
    color: var(--memo-red);
}

.editorial-collection-content p {
    margin: 0 0 12px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 11px;
    line-height: 1.7;
}

.editorial-collection-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 5px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.editorial-collection-link:hover {
    gap: 13px;
}

.editorial-collection-link span {
    font-size: 16px;
}

/* EMPTY STATE */

.collections-empty-state {
    padding: 35px 20px;
    text-align: center;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
}

.collections-empty-state h3 {
    margin-bottom: 10px;
    font-family: var(--font-editorial);
    font-size: 19px;
}

.collections-empty-state p {
    font-size: 12px;
    line-height: 1.7;
}

/* BOTTOM ACCENT */

.collections-bottom-note {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 0;
    overflow: hidden;
}

.collections-bottom-note img {
    display: block;
    width: 100%;
    height: auto;
}

.collections-bottom-note p {
    padding: 28px 20px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 16px;
    font-style: italic;
    text-align: center;
    background: var(--theme-surface);
}

/* KEYBOARD ACCESSIBILITY */

.collections-page a:focus-visible {
    outline: 2px solid var(--memo-red);
    outline-offset: 4px;
}

/* TABLET */

@media screen and (min-width: 768px) {

    .collections-page {
        padding: 0 30px 65px;
    }

    .collections-hero {
        grid-template-columns: 1fr 0.9fr;
        min-height: 280px;
        margin-bottom: 42px;
    }

    .collections-hero-content {
        padding: 38px 30px;
    }

    .collections-hero-artwork {
        min-height: 280px;
    }

    .collections-hero-artwork img {
        width: 100%;
        object-fit: cover;
        height: auto;
        max-height: 320px;
    }

    .collections-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
    
        .collections-directory-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.9fr);
        align-items: center;
        gap: 20px;
        padding: 20px 24px;
    }

    .collections-directory-header h2 {
        width: auto;
    }

    .collections-directory-header p {
        max-width: 320px;
    }

    .editorial-collection-card {
        padding: 14px;
    }

    .editorial-collection-content {
        padding: 14px 3px 4px;
    }

}

/* DESKTOP */

@media screen and (min-width: 1024px) {

    .collections-page {
        padding: 0 40px 80px;
    }

    .collections-hero {
        min-height: 320px;
        margin-bottom: 48px;
    }

    .collections-hero-content {
        padding: 48px;
    }

    .collections-directory-header {
        margin-bottom: 26px;
    }

    .collections-directory-grid {
        gap: 26px;
    }

    .editorial-collection-card {
        padding: 15px;
    }

    .editorial-collection-content h3 {
        font-size: 20px;
    }

    .editorial-collection-content p {
        font-size: 12px;
    }

}

/* DARK MODE */

body.dark-mode .editorial-collection-card {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: none;
}

body.dark-mode .collections-hero {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

body.dark-mode .editorial-collection-image {
    background: #29251f;
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .editorial-collection-image img,
    .editorial-collection-link {
        transition: none;
    }

}


/* =========================================================
   THE MEMO BLOG — TABLET FOOTER REFINEMENT
   Applies only to 768px–1023px
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    .site-footer {
        padding: 40px 30px 24px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        align-items: start;
        gap: 30px;
        max-width: 100%;
    }

    /* BRAND */

    .footer-brand {
        grid-column: auto;
        text-align: left;
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer-logo {
        width: 145px;
        margin: 0;
    }

    .footer-tagline {
        font-size: 16px;
    }

    .footer-description {
        max-width: 280px;
        margin-left: 0;
        font-size: 13px;
    }

    /* NAVIGATION COLUMNS */

    .footer-column {
        min-width: 0;
    }

    .footer-column h3 {
        margin-bottom: 16px;
    }

    .footer-column ul {
        gap: 13px;
    }

    /* SOCIAL LINKS */

    .footer-social {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 16px 24px;
        padding-top: 22px;
        border-top: 1px solid var(--theme-border);
        text-align: left;
    }

    .footer-social h3 {
        margin-bottom: 0;
    }

    .social-description {
        margin-top: 0;
    }

    /* FOOTER BOTTOM */

    .footer-bottom {
        margin-top: 30px;
        padding-top: 18px;
        align-items: center;
        text-align: center;
    }
}


/* =========================================================
   THE MEMO BLOG — EDITORIAL COLLECTION ARCHIVE
========================================================= */

.editorial-collection-archive-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 28px;
    padding: 28px 20px;
    background: var(--theme-surface);
    border-bottom: 3px solid var(--paper-gray);
}

.editorial-collection-archive-heading {
    min-width: 0;
}

.editorial-collection-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.editorial-collection-archive-heading h1 {
    margin: 0 0 14px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: clamp(29px, 6vw, 46px);
    line-height: 1.2;
}

.editorial-collection-archive-heading p {
    max-width: 650px;
    margin: 0 0 16px;
    color: var(--theme-text);
    font-family: var(--font-editorial);
    font-size: 13px;
    line-height: 1.8;
}

.editorial-collection-archive-count {
    display: inline-block;
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.editorial-collection-archive-artwork {
    width: 100%;
    overflow: hidden;
}

.editorial-collection-archive-artwork img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.editorial-collection-back {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 24px;
}

.editorial-collection-back a {
    color: var(--memo-red);
    font-family: var(--font-memo);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

.editorial-collection-back a:hover,
.editorial-collection-back a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* TABLET */

@media screen and (min-width: 768px) {

    .editorial-collection-archive-header {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        align-items: center;
        gap: 35px;
        padding: 38px 30px;
        margin-bottom: 35px;
    }

    .editorial-collection-archive-artwork img {
        max-height: 320px;
        object-fit: contain;
    }

}

/* DESKTOP */

@media screen and (min-width: 1024px) {

    .editorial-collection-archive-header {
        gap: 50px;
        padding: 48px;
        margin-bottom: 42px;
    }

    .editorial-collection-back {
        margin-bottom: 30px;
    }

}


/* =========================================================
   THE MEMO BLOG — TAXONOMY ARCHIVE GRID REFINEMENT
   Editorial Collections + Memo Categories
========================================================= */

@media screen and (min-width: 768px) {

    body.tax-memo_category .memo-archive-grid,
    body.tax-memo_editorial_collection .memo-archive-grid {

        display: grid;

        grid-template-columns:
            repeat(auto-fit, minmax(min(100%, 280px), 340px));

        justify-content: center;
        align-items: start;

        width: 100%;
        max-width: 1200px;
        margin-inline: auto;
        gap: 32px;
    }

}

@media screen and (min-width: 1440px) {

    body.tax-memo_category .memo-archive-grid,
    body.tax-memo_editorial_collection .memo-archive-grid {
        gap: 36px;
    }

}



/* =========================================================
   THE MEMO BLOG — COLLECTION ARCHIVE TABLET GRID FIX
   Applies only to editorial collection archives
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    body.tax-memo_editorial_collection .memo-archive-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        align-items: start;
        width: 100%;
        max-width: 100%;
        gap: 24px;
    }

    body.tax-memo_editorial_collection .memo-archive-page .memo-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

}
