/*
 * ============================================================
 * AMARBLOG STYLESHEET
 * ============================================================
 *
 * Project:       AmarBlog
 * Description:   Consolidated stylesheet for the AmarBlog
 *                minimal PHP + Parsedown Markdown CMS
 * Version:       1.0
 * Status:        Consolidated CSS baseline
 * Last Updated:  13 July 2026
 *
 * Architecture:
 *   - Desktop-first base styles and components
 *   - One Tablet media query
 *   - One Mobile media query
 *   - One Very Small Mobile media query
 *   - One Reduced Motion accessibility query
 *
 * ============================================================
 * TABLE OF CONTENTS
 * ============================================================
 *
 * CORE
 *
 *   1.  Design Tokens
 *   2.  Reset and Base Styles
 *   3.  General Container
 *   4.  Site Header
 *   5.  Main Content Area
 *   6.  Simple Pages
 *
 * ARCHIVES
 *
 *   7.  Archive Layout
 *   8.  Archive Posts
 *   9.  Archive Pagination
 *
 * SINGLE POSTS
 *
 *  10.  Single Blog Post
 *  11.  Post Header
 *  12.  Featured Image
 *  13.  Table of Contents
 *
 * ARTICLE CONTENT
 *
 *  14.  Article Content
 *  15.  Article Headings
 *  16.  Article Lists
 *  17.  Blockquotes
 *  18.  Article Images and Media
 *  19.  Horizontal Rule
 *  20.  Inline Code
 *  21.  Code Blocks
 *  22.  Tables
 *
 * POST COMPONENTS
 *
 *  23.  Archived Post Notice
 *  24.  Post Footer Information
 *  25.  Author Box
 *  26.  Previous / Next Post Navigation
 *  27.  Semantic Callouts
 *  28.  Details / Summary
 *
 * SITE COMPONENTS
 *
 *  29.  Error Page
 *  30.  Site Footer
 *  31.  Image Gallery
 *
 * RESPONSIVE AND ACCESSIBILITY
 *
 *  32.  Tablet
 *  33.  Mobile
 *  34.  Very Small Mobile Screens
 *  35.  Reduced Motion Accessibility
 *
 * ============================================================
 * MAINTENANCE NOTES
 * ============================================================
 *
 * - Add component styles to their authoritative section.
 * - Do not create additive amendment or override blocks.
 * - Consolidate responsive changes into the existing media queries.
 * - Preserve one authoritative declaration per component wherever
 *   practical.
 * - Test desktop, tablet and mobile after structural CSS changes.
 *
 * ============================================================
 */
/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

:root {
    /* Main colours */
    --background: #f6f4ef;
    --surface: #ffffff;
    --text: #333333;
    --text-muted: #6b6b6b;
    --heading: #2c3e50;
    --link: #315f59;
    --link-hover: #8a4f2d;
    --border: #d8d4cc;
    --image-border: #c9c4ba;
	--text-code: #272727;
	--accent: #8fa3b5;
	
    /* Header and footer */
    --header-background: #3f5064;
    --footer-background: #314c4a;
    --header-text: #f7f5f0;
    --footer-text: #e8e4dc;

    /* Archived notice */
    --archived-background: #ded5c6;
    --archived-border: #c8bba8;
    --archived-accent: #8b7965;

    /* Layout */
    --content-width: 1180px;
    --archive-width: 880px;
    --reading-width: 82ch;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

/* ============================================================
   2. RESET AND BASE STYLES
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--background);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 1.125rem;
    line-height: 1.5;

    overflow-wrap: break-word;
}
main {
    flex: 1;
    min-width: 0;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    line-height: 1.3;
}
p {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

/* ============================================================
   3. GENERAL CONTAINER
   ============================================================ */

.container {
    width: min(95%, var(--content-width));
    margin-inline: auto;
    min-width: 0;
}

/* ============================================================
   4. SITE HEADER
   ============================================================ */

.site-header {
    background: var(--header-background);
    color: var(--header-text);
    padding: 1.35rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(--space-lg);
}

.site-title {
    margin: 0;
    color: var(--header-text);
    font-size: 1.5rem;
    font-weight: 650;
    line-height: 1.2;
}

.site-title a {
    color: var(--header-text);
}

.site-title a:hover {
    color: #ffffff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav a {
    color: var(--header-text);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: #ffffff;
}

/* ============================================================
   5. MAIN CONTENT AREA
   ============================================================ */

.content {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    min-width: 0;
}

/* ============================================================
   6. SIMPLE PAGES
   Homepage and About page
   ============================================================ */

.content > h1,
.content > h2,
.content > p {
    max-width: var(--reading-width);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   7. ARCHIVE LAYOUT
   ============================================================ */

.archive-layout {
    width: 100%;
    max-width: var(--archive-width);
    margin: 0 auto;
    min-width: 0;
}

.archive-content {
    width: 100%;
    min-width: 0;
}

.archive-content > h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
}

/* ============================================================
   8. ARCHIVE POSTS
   ============================================================ */

.archive-post {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

.archive-post:last-of-type {
    margin-bottom: 2rem;
}

.archive-post h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
}

.archive-post h3 a {
    color: var(--heading);
}

.archive-post h3 a:hover {
    color: var(--link-hover);
}

.archive-post img {
    width: 100%;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
    object-fit: cover;
    border: 1px solid var(--image-border);
    border-radius: 5px;
}

.archive-post p {
    margin-bottom: 0.75rem;
}

.post-meta {
    margin-top: var(--space-sm);
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.archive-post .post-meta {
    margin-top: 0.5rem;
}

/* ============================================================
   9. ARCHIVE PAGINATION
   ============================================================ */

.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.archive-pagination a {
    color: var(--link);
}

.archive-pagination a:hover {
    color: var(--link-hover);
}

.page-number {
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   10. SINGLE BLOG POST
   ============================================================ */

.single-post {
    width: 100%;
    max-width: var(--reading-width);
    margin-inline: auto;
    min-width: 0;
}

/* ============================================================
   11. POST HEADER
   ============================================================ */

.post-header {
    margin-bottom: 1.4rem;
}

.post-header h1 {
    margin: 0 0 0.65rem;
    color: var(--heading);
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.post-header .post-meta {
    margin: 0.65rem 0 0;
    color: #555555;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* ============================================================
   12. FEATURED IMAGE
   ============================================================ */

.featured-image {
    margin: 1.25rem 0 1rem;
}

.featured-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid var(--image-border);
    border-radius: 5px;
}

.featured-image figcaption {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.825rem;
    line-height: 1.5;
    text-align: center;
}

/* ============================================================
   13. TABLE OF CONTENTS
   ============================================================ */

.table-of-contents {
    margin: 1.75rem 0;
    padding: 1.5rem 1.75rem;
    background: #efede7;
    border-left: 3px solid var(--link);
}

.table-of-contents h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.table-of-contents ul {
    margin: 0;
    padding-left: 1.25rem;
}

.table-of-contents li {
    margin: 0.4rem 0;
    line-height: 1.3;
}

.table-of-contents a {
    color: var(--text);
}

.table-of-contents a:hover {
    color: var(--link-hover);
}

/* ============================================================
   14. ARTICLE CONTENT
   ============================================================ */

.post-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 1.075rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.post-content p {
    margin: 0 0 1.4rem;
}

/* ============================================================
   15. ARTICLE HEADINGS
   ============================================================ */

.post-content h2 {
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.15);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
}

.post-content h3 {
    margin: 2.25rem 0 1rem;
    font-size: clamp(1.3rem, 2.5vw, 1.55rem);
    font-weight: 650;
    line-height: 1.3;
}

.post-content h4 {
    margin: 2rem 0 0.75rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

/* ============================================================
   16. ARTICLE LISTS
   ============================================================ */

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* ============================================================
   17. BLOCKQUOTES
   ============================================================ */

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
}

.post-content blockquote p:first-child {
    margin-top: 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ============================================================
   18. ARTICLE IMAGES AND MEDIA
   ============================================================ */

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border: 1px solid var(--image-border);
    border-radius: 5px;
}

.post-content video,
.post-content iframe {
    max-width: 100%;
}

/* ============================================================
   19. HORIZONTAL RULE
   ============================================================ */

.post-content hr {
    margin: 3rem 0;
    border: 0;
    border-top: 2px solid var(--border);
}

/* ============================================================
   20. INLINE CODE
   ============================================================ */

.post-content code {
    padding: 0.15rem 0.35rem;
    background: #ebe8e1;
    border-radius: 3px;
    font-family:
        "Courier New",
        Courier,
        monospace;
    font-size: 0.9em;
}

/* ============================================================
   21. CODE BLOCKS
   ============================================================ */

.post-content pre {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    padding: 1rem;
    background: #e9e7e2;
    color: var(--text-code);
    border-left: 4px solid var(--accent);
    border-radius: 5px;

    font-family:
        "Courier New",
        Courier,
        monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.post-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    font-size: inherit;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
}

/* ============================================================
   22. TABLES
   ============================================================ */

.post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.95rem;
    -webkit-overflow-scrolling: touch;
}

.post-content th,
.post-content td {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(44, 62, 80, 0.18);
    text-align: left;
    vertical-align: top;
}

.post-content th {
    background: #d8d4cc;
    color: var(--heading);
    font-weight: 650;
}

.post-content td {
    color: var(--text);
}

.post-content tr:nth-child(even) {
    background: rgba(216, 212, 204, 0.28);
}

/* ============================================================
   23. ARCHIVED POST NOTICE
   ============================================================ */

.archived-notice {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--archived-background);
    border: 1px solid var(--archived-border);
    border-left: 4px solid var(--archived-accent);
    border-radius: 4px;
}

.archived-notice h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.archived-notice p {
    margin: 0;
}

/* ============================================================
   24. POST FOOTER INFORMATION
   ============================================================ */

.post-footer-meta {
    margin: 2rem 0 0;
    padding-top: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-footer-meta p {
    margin-bottom: 0.65rem;
}

/* ============================================================
   25. AUTHOR BOX
   ============================================================ */

.author-box {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: #d4c8b6;
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-left: 4px solid #8fa3b5;
    border-radius: 5px;
}

.author-box h2 {
    margin-top: 0;
}

/* ============================================================
   26. PREVIOUS / NEXT POST NAVIGATION
   ============================================================ */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.previous-post,
.next-post {
    min-width: 0;
}

.next-post {
    text-align: right;
}

.previous-post span,
.next-post span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.previous-post a,
.next-post a {
    color: var(--heading);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.previous-post a:hover,
.next-post a:hover {
    color: var(--link-hover);
}

/* ============================================================
   27. SEMANTIC CALLOUTS
   ============================================================ */

.note,
.warning,
.recommendation {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 5px;
}

.note {
    background: #fffde7;
    border-left: 4px solid #d4a72c;
}

.warning {
    background: #ffebee;
    border-left: 4px solid #b94a48;
}

.recommendation {
    background: #e8f5e9;
    border-left: 4px solid #4f8a5b;
}

/* ============================================================
   27. SEMANTIC CALLOUTS
   ============================================================ */

.note,
.warning,
.recommendation,
.summary-box,
.faq {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;

    border-radius: 5px;
}

.note {
    background: #fffde7;

    border-left: 4px solid #d4a72c;
}

.warning {
    background: #ffebee;

    border-left: 4px solid #b94a48;
}

.recommendation {
    background: #e8f5e9;

    border-left: 4px solid #4f8a5b;
}

.summary-box {
    background: #f0eee8;

    border-left: 4px solid var(--accent);
}

.faq {
    background: #edf2f4;

    border-left: 4px solid var(--link);
}
/* ============================================================
   28. DETAILS / SUMMARY
   ============================================================ */

details {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 5px;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

details[open] summary {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.15);
}

/* ============================================================
   28. DETAILS / SUMMARY
   ============================================================ */

details {
    margin: 1.5rem 0;

    background: #f0eee8;

    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
}

summary {
    cursor: pointer;

    padding: 1rem 1.25rem;

    color: var(--heading);

    font-weight: 600;
}

details > :not(summary) {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

details > :last-child {
    margin-bottom: 1.25rem;
}

details[open] summary {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;

    border-bottom: 1px solid var(--border);
}

/* ============================================================
   29. ERROR PAGE
   ============================================================ */

.error-page {
    max-width: var(--reading-width);
    margin-inline: auto;
    padding: var(--space-xl) 0;
    text-align: center;
}

.error-page h1,
.error-page h2 {
    margin-top: 0;
}

.error-page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 1.5rem;
}

.error-page-links a {
    font-weight: 600;
}

.error-page-links span {
    color: var(--text-muted);
}

/* ============================================================
   30. SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--footer-background);
    color: var(--footer-text);
    padding: 1.25rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--footer-text);
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-navigation {
    margin-bottom: 1.5rem;
}

.footer-navigation h2 {
    margin: 0 0 0.75rem;
    color: var(--footer-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-navigation nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.7rem;
}

.footer-navigation a {
    color: var(--footer-text);
}

.footer-navigation a:hover {
    color: #ffffff;
}

.footer-navigation span {
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    margin: 0;
}

.back-to-top a {
    color: var(--footer-text);
}

.back-to-top a:hover {
    color: #ffffff;
}

/* ============================================================
   31. IMAGE GALLERY
   ============================================================ */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery figure {
    margin: 0;
}

.image-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.image-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================================
   32. TABLET
   ============================================================ */

@media (max-width: 850px) {
    .container {
        width: min(94%, var(--content-width));
    }

    .single-post {
        max-width: 74ch;
    }

    .archive-layout {
        max-width: 100%;
    }
}

/* ============================================================
   33. MOBILE
   iOS and Android portrait display
   ============================================================ */

@media (max-width: 680px) {

    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        width: auto;
        max-width: none;
        margin-inline: 1rem;
    }

    .content {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
        min-width: 0;
    }

    /* --------------------------------------------------------
       MOBILE HEADER
       -------------------------------------------------------- */
    .site-header {
        padding: 1rem 0;
    }

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .site-title {
        font-size: 1.75rem;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .site-nav a {
        font-size: 0.95rem;
    }

    /* --------------------------------------------------------
       MOBILE ARCHIVE
       -------------------------------------------------------- */
    .archive-layout,
    .archive-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
.archive-content > h1,
.category-header h1 {
    font-size: 1.4rem;
    line-height: 1.2;
}
.archive-content > h2 {
    font-size: 1.25rem;
}
.archive-post h2 {
    font-size: 1.25rem;
    line-height: 1.1;
}
.archive-post h3 {
    font-size: 1.15rem;
    line-height: 1.2;
}
    .archive-post img {
        max-height: none;
    }
    .archive-post .post-meta {
        font-size: 0.95rem;
    }

    /* --------------------------------------------------------
       MOBILE PAGINATION
       -------------------------------------------------------- */
    .archive-pagination {
        flex-wrap: wrap;

        gap: var(--space-sm);
    }

    /* --------------------------------------------------------
       MOBILE SINGLE POST
       -------------------------------------------------------- */
    .single-post {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }

    .post-header {
        margin-bottom: 1.25rem;
    }

   .post-header h1 {
    font-size: 1.7rem;
    line-height: 1.15;
	}

    .post-header .post-meta {
        font-size: 0.95rem;
    }

    .post-content {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        font-size: 1rem;
        line-height: 1.7;
    }

    .post-content p {
        margin-bottom: 1.25rem;
    }

	.post-content h2 {
    margin-top: 2.25rem;
    font-size: 1.4rem;
    line-height: 1.25;
	}
    .post-content h3 {
        margin-top: 2rem;
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .post-content h4 {
        font-size: 1.1rem;
    }

    /* --------------------------------------------------------
       MOBILE TABLE OF CONTENTS
       -------------------------------------------------------- */

    .table-of-contents {
        margin: 1.5rem 0;
        padding: 1.15rem;
        font-size: 1rem;
    }

    .table-of-contents h2 {
        font-size: 1.2rem;
    }

    /* --------------------------------------------------------
       MOBILE CODE
       -------------------------------------------------------- */

    .post-content pre {
        width: 100%;
        max-width: 100%;
        color: var(--text-code);
		        padding: 1rem;
        overflow-x: auto;
        font-size: 0.9rem;
        -webkit-overflow-scrolling: touch;
    }

    /* --------------------------------------------------------
       MOBILE TABLES
       -------------------------------------------------------- */

    .post-content table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        font-size: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }

    .post-content th,
    .post-content td {
        padding: 0.6rem;
    }

    /* --------------------------------------------------------
       MOBILE ARCHIVED NOTICE
       -------------------------------------------------------- */

    .archived-notice {
        padding: 1rem 1.25rem;
    }

    /* --------------------------------------------------------
       MOBILE POST FOOTER
       -------------------------------------------------------- */

    .post-footer-meta {
        margin-top: 1.5rem;
    }

    .author-box {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    /* --------------------------------------------------------
       MOBILE POST NAVIGATION
       -------------------------------------------------------- */

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1.35rem;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .next-post {
        text-align: left;
    }

    /* --------------------------------------------------------
       MOBILE IMAGE GALLERY
       -------------------------------------------------------- */

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* --------------------------------------------------------
       MOBILE FOOTER
       -------------------------------------------------------- */

    .site-footer {
        font-size: 0.9rem;
    }

    .footer-navigation nav {
        gap: 0.5rem 0.7rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================================
   34. VERY SMALL MOBILE SCREENS
   ============================================================ */

@media (max-width: 380px) {

    html {
        font-size: 14.5px;
    }

    .container {
        margin-inline: 0.8rem;
    }

    .post-header h1 {
        font-size: 1.65rem;
    }

    .post-content {
        line-height: 1.5;
    }

    .table-of-contents {
        padding: 1rem;
    }
}

/* ============================================================
   35. REDUCED MOTION ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}