/* --- 0. FONT IMPORTS & GLOBAL RESET (Vintage Modern) --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Inter:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
/* Vintage Color Palette */
--color-paper: #FAF9F6;         /* Soft Off-White/Cream (Default) */
--color-ink: #333333;           /* Soft Charcoal for text */
--color-accent: #4A606C;        /* Dusty Blue/Green (The Muted Accent) */
--color-border: #B8B8B8;        /* Aged Silver/Metal for outlines */

/* UPDATED Accessibility Colors - Deeper Swatches for Visibility */
--color-tan: #EDE4D7;           /* Lighter background tan */
--color-tan-swatch: #C3B697;    /* Deeper color for the circle preview */
--color-grey: #D3D3D3;          /* Lighter background grey */
--color-grey-swatch: #ADADAD;   /* Deeper color for the circle preview */

/* NEW COLORS for Subtle Card Pop (Slightly Lighter than Body Tan/Grey) */
--color-card-tan: #F2EBE0; /* Slightly lighter than var(--color-tan) */
--color-card-grey: #EAEAEA; /* Slightly lighter than var(--color-grey) */

--transition-slow: 0.7s;        
--transition-fast: 0.3s;        
--content-max-width: 87.5rem;   
}

/* =======================
    Responsive Breakpoints (Definitions Only)
======================= */

:root {
    --breakpoint-tablet: 768px; 
    --breakpoint-mobile: 500px;
    --breakpoint-specific-tablet: 912px;
}

/* Base Styles & "Aged Paper" Background */
* {
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}


body.vintage-modern-background {
    font-family: 'Inter', sans-serif;   
    font-size: 0.95rem; 
    background-color: var(--color-paper);
    color: var(--color-ink);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
    transition: background-color var(--transition-slow) ease;
}

/* Typography Styles */
h1, h2, h3, h4, blockquote {
    font-family: 'Lora', serif; 
    color: var(--color-ink);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

/* Global Link Styles */
a {
    color: forestgreen; 
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--color-ink);    
    text-decoration: underline;
}


/* --- ACCESSIBILITY CLASS TOGGLES (Used by JS) --- */

/* B. Bold Text Toggle */
body.bold-text * {
    font-weight: 600 !important;    
}

/* C. Color Change Styles (Used by JS) */
body.tan-background .article-card-feed,
body.tan-background .content-card,
body.tan-background .quote-card-container,
body.tan-background .quote-image-section,
body.tan-background .topic-card,
body.tan-background .article-card,
body.tan-background .testimonial { 
    background-color: var(--color-card-tan);    
}
body.grey-background .article-card-feed,
body.grey-background .content-card,
body.grey-background .quote-card-container,
body.grey-background .quote-image-section,
body.grey-background .topic-card,
body.grey-background .article-card,
body.grey-background .testimonial { 
    background-color: var(--color-card-grey);    
}

/* --- 1. FLOATING NAVIGATION CAPSULE (Desktop) --- */

.main-nav-capsule {
    position: fixed;
    right: 20px;    
    top: 20px; 
    z-index: 1000;
    width: auto;    
    max-width: 95%; 
    
    display: flex;
    flex-direction: column; 
    align-items: center; 
    
    padding: 0.9375rem 1.875rem; 
    
    background-color: var(--color-paper);
    border: 2px solid var(--color-border);
    border-radius: 3.75rem / 3.75rem; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);    

    transition: top var(--transition-slow) ease-in-out;  
}

.main-nav-capsule.hidden {
    top: -6.25rem;  
}

.menu-toggle-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;  
    padding: 0.625rem 1.25rem; 
    background-color: var(--color-accent);
    color: white;   
    border: none;
    cursor: pointer;
    border-radius: 2.5rem; 
    transition: background-color var(--transition-fast) ease-out;
    margin: 0 0 0.5rem 0; 
}

.menu-toggle-btn:hover {
    background-color: #6a828e;  
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.625rem; 
    padding: 0; 
    position: relative; 
}

.header-controls button {
    text-decoration: none;
    line-height: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast) ease-out;
    border: none;
    outline: none;
    background: none;   
}

#scale-page-toggle, #bold-page-toggle {
    padding: 0.3125rem 0.625rem; 
    border-radius: 0.25rem; 
    border: 1px solid var(--color-border);  
    background-color: transparent;
}

#scale-page-toggle:hover, #bold-page-toggle:hover {
    background-color: rgba(74, 96, 108, 0.1);   
    border-color: var(--color-accent);
}

#scale-page-toggle.active, #bold-page-toggle.active {
    background-color: var(--color-accent);
    color: white;   
    border-color: var(--color-accent);
    box-shadow: 0 0 5px rgba(74, 96, 108, 0.5);
}

.ampersand-accent {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;   
    vertical-align: -0.1em;
    color: var(--color-ink);    
    padding: 0 4px; 
    transition: color var(--transition-fast);
}

.header-controls button.active .ampersand-accent {
    color: var(--color-paper);  
}

.scale-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.625rem); 
    right: 0;   
    left: auto;
    width: 12.5rem; 
    background-color: var(--color-paper);
    border: 1px solid var(--color-accent);
    border-radius: 0.5rem; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 0.9375rem; 
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 990;   
}

.scale-dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.slider-control {
    display: flex;
    flex-direction: column;
}

.scale-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.5rem; 
    font-weight: 600;
}

#scale-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 0.375rem; 
    background: var(--color-border);
    border-radius: 0.1875rem; 
    cursor: pointer;
}

#scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem; 
    height: 1rem; 
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    border: 2px solid var(--color-paper);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.color-circle {
    width: 1.25rem;    
    height: 1.25rem; 
    border-radius: 50%; 
    border: 2px solid var(--color-ink);  
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5);  
    transition: all 0.2s ease;
    opacity: 1; 
    cursor: pointer;
}

.color-circle[data-color="tan"] {
    background-color: var(--color-tan-swatch);
}
.color-circle[data-color="grey"] {
    background-color: var(--color-grey-swatch);
}
.color-circle[data-color="default"] {
    background-color: var(--color-paper);
}

.color-circle[data-color="default"] {
    border-color: var(--color-accent);   
    border-width: 3px;   
    opacity: 1;
    box-shadow: 0 0 8px rgba(74, 96, 108, 0.8);  
}

.color-circle.active:not([data-color="default"]) {
    border-color: var(--color-accent);   
    border-width: 3px;   
    opacity: 1;
    box-shadow: 0 0 8px rgba(74, 96, 108, 0.8);  
}

.color-circle:hover:not([data-color="default"]) {
    transform: scale(1.05); 
}


/* --- 2. OFF-CANVAS MENU STYLES --- */

#off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;    
    width: 18.75rem; 
    height: 100%;
    background-color: var(--color-paper);   
    z-index: 1500;
    padding: 2.5rem 1.25rem; 
    
    transform: translateX(-100%);   
    transition: transform var(--transition-slow) ease-in-out;    
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);  
    overflow-y: auto;
}

#off-canvas-menu.open {
    transform: translateX(0);   
}

#menu-close {
    position: absolute;
    top: 1.25rem;   
    right: 1.25rem; 
    
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;  
    vertical-align: -0.1em;
    color: var(--color-ink);    
    padding: 0; 
    transition: color var(--transition-fast);
    
    background: none;
    border: none;
    cursor: pointer;
}

#menu-close:hover {
    color: var(--color-accent);
}

#off-canvas-menu .nav-links {
    list-style: none;
    padding-top: 2.5rem; 
}

#off-canvas-menu a {
    display: block;
    padding: 0.75rem 0; 
    text-decoration: none;
    color: var(--color-ink);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

#off-canvas-menu a:hover {
    color: var(--color-accent); 
}

.nav-section-heading {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    padding-bottom: 0.3125rem; 
    border-bottom: 1px solid var(--color-border);
}


/* --- 3. CONTENT STRUCTURE AND FIXES (Desktop Defaults) --- */

main {
    transition: transform var(--transition-fast) ease, opacity var(--transition-fast) ease;   
}

body.menu-open main {
    opacity: 0.3;   
    pointer-events: none;   
}

.content-section, .archive-feed {
    max-width: var(--content-max-width);    
    margin: 2.5rem auto; 
    padding: 0 2.5rem; 
}

.section-heading {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3.875rem; 
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.25rem); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hope-banner {
    padding-top: 1.875rem;     
    margin: 0 auto; 
    padding-bottom: 2.5rem; 
    text-align: center;
}

.quote-label {
    font-family: 'Lora', serif;
    font-size: 1.2em;   
    font-style: italic;
    color: var(--color-accent); 
    text-align: center; 
    line-height: 1.6;
    margin-top: 0;  
    opacity: 0; 
}

.quote-label cite {
    white-space: normal;    
    display: block;
    margin-top: 0.625rem; 
    font-size: 0.8em;
    font-style: normal;
    color: var(--color-ink);
    line-height: 1.2;
    text-align: center; 
}


/* Profile Photo and Bio Layout (GENERAL DESKTOP) */
.robyn-bio {
    display: flex;
    gap: 3.125rem; 
    align-items: center;
    max-width: 56.25rem;     
    margin-top: 0;  
    margin-bottom: 3.75rem; 
    
    margin-left: auto;  
    margin-right: auto;
    
    width: 100%;
    padding-left: 0;    
}

.robyn-photo {
    width: 12.5rem; 
    height: 12.5rem; 
    object-fit: cover;  
    border-radius: 0.3125rem;     
    border: 2px solid var(--color-accent);  
    box-shadow: none;   
}

.robyn-bio p {
    font-size: 1.3rem;  
    line-height: 1.7;   
    text-align: left; 
}

.robyn-bio-text {
    padding-top: 1.875rem; 
    padding-bottom: 1.875rem; 
}


/* Quote Card Styling (Hero Card) */

.quote-card-container {
    max-width: var(--content-max-width);    
    margin: 3.75rem auto; 
    background-color: var(--color-paper);
    transition: background-color var(--transition-slow) ease;    

    border: 1px solid var(--color-border);
    border-radius: 0.5rem; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;   
    display: flex;  
    align-items: center;    
}

.quote-image-section {
    flex: 0 0 25rem;     
    background-color: var(--color-paper);   
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: center;
    padding: 1.25rem; 
    border-right: 1px solid var(--color-border);    
}

.quote-card-image {
    width: 15.625rem; 
    height: 15.625rem; 
    object-fit: contain;
    border-radius: 0.3125rem;     
    margin-bottom: 1.25rem; 
    border: none;
    box-shadow: none;
}


.quote-text-section {
    flex: 1;    
    padding: 1.25rem 2.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;    
}

.quote-text-section h2 {
    color: var(--color-ink);
    text-align: center; 
}

.quote-heading {
    font-size: 3.5em;   
    margin-bottom: 0.625rem; 
}

.quote-text-section .bio-subtitle {
    font-size: 2rem; 
    font-weight: 400;   
    color: #4b5563; 
    margin-top: 0.25rem;    
    display: block;
    line-height: 1.4;
    text-align: center !important; 
}

.quote-text-section p {
    font-size: 1.1em;   
    color: var(--color-ink);
    line-height: 1.4;
    text-align: center; 
}

/* --- SINGLE ARTICLE LAYOUT STYLES --- */

.article-body {
    max-width: 50rem;     
    margin: 2.5rem auto; 
    padding: 0 1.25rem; 
    font-size: 1.1rem;  
    text-align: left;   
}

.article-body p {
    font-size: 1.1rem;  
    line-height: 1.8;   
    margin-bottom: 1.5em;   
    hyphens: auto;  
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.article-body h2 {
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.article-body a {
    color: forestgreen;
    text-decoration: underline; 
}

.article-hero .quote-text-section {
    padding: 1.25rem 2.5rem; 
}


/* --- NEW ARTICLE HEADER STYLING --- */
.article-header {
    text-align: center;
    margin: 2.5rem auto 1.5rem auto; 
    max-width: 50rem; 
}

.article-header .article-title {
    font-size: 3.5rem; 
    margin-bottom: 0.25rem;
    line-height: 1.1;
    font-family: 'Lora', serif;
    color: var(--color-ink); 
}
/* Meta Data Control (e.g., set to 1.25rem for larger meta text) */
.article-header .article-meta {
    font-family: 'Inter', sans-serif;
    /* **PRIMARY CONTROL FOR ARTICLE META SIZE** */
    font-size: 2.25rem; /* Change this value! */
    color: var(--color-ink); 
    display: block;
    margin-bottom: 1.5rem; 
}
/* --- END NEW ARTICLE HEADER STYLING --- */


/* --- Two-Column Content Layout (Books and Articles) --- */

.content-columns {
    display: flex;
    flex-wrap: wrap;    
    justify-content: center;    
    gap: 1.875rem; 
    padding-top: 1.25rem; 
    
    max-width: 65rem;    
    margin-left: auto;  
    margin-right: auto; 
    
    padding-left: 0;    
    padding-right: 0;   
}


.book-column {
    flex: 1 1 45%;  
    max-width: 31.25rem; 
    padding-right: 1.875rem; 
    padding-left: 0;    
    border-right: 1px solid var(--color-border);
}

.articles-column {
    flex: 1 1 45%;
    max-width: 31.25rem; 
    padding-left: 1.875rem; 
    padding-right: 0;   
}

.column-heading {
    font-family: 'Lora', serif;
    font-size: 1.6em;
    margin-bottom: 1.25rem; 
    color: var(--color-accent);
    text-align: center; 
}

/* Card Grid Layout (Flex Fallback) */
.card-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    
    gap: 1.875rem; 
    align-items: flex-start;
}

/* Content Card Size Control */
.content-card {
    flex: 0 1 17.5rem; 
    max-width: 17.5rem; 
    padding: 1.25rem; 
    text-align: left;   
    border: 1px solid var(--color-border);
    border-radius: 0.5rem; 
    background-color: var(--color-paper);
    margin-left: auto;  
    margin-right: auto;
}

/* Image Sizing inside Cards */
.content-image {
    width: 100%;
    height: auto;
    max-height: 21.875rem; 
    display: block;
    margin: 0.325rem auto 0.9375rem 0; 
    border-radius: 4px;
    object-fit: contain;    
}

.book-column .content-image {
    margin: 1.125rem auto 0.9375rem auto;   
}

/* Paragraph Styling */
.content-card p {
    display: block;
    margin-top: 0.625rem; 
    text-align: left;
}

.book-card p .buy-link {
    display: inline-block;  
    margin-top: 0.625rem; 
    margin-left: 4.125rem; 
}

/* Article card link consistency */
.article-card p.article-link {
    text-align: left;
    display: block;
    color: white;
    margin: 0; 
}

.article-card p.article-link a {
    display: inline-block; 
}

.button-style {
    display: inline-block;
    padding: 0.5rem 1rem; 
    background-color: var(--color-accent);
    color: white !important;
    text-decoration: none;
    border-radius: 2.5rem; 
    flex-shrink: 0; 
    transition: background-color var(--transition-fast) ease;
    margin: 0;
}
.button-style a {
    color: white !important;
}
.button-style:hover {
    background-color: #6a828e;
}

.site-footer {
    text-align: center;
    padding: 1.875rem 0; 
    margin-top: 2.5rem; 
    border-top: 1px solid var(--color-border);
    color: var(--color-ink);
}

/* --------------------------------------------------------------------------------------- */
/* --- 5. ARTICLE/ARCHIVE FEED STYLES (Used in other pages) --- */
/* --------------------------------------------------------------------------------------- */

/* Base Article Card style, reusing .content-card but adding feed-specific adjustments */
.article-card-feed {
    padding: 1.25rem; 
    text-align: left;   
    border: 1px solid var(--color-border);
    border-radius: 0.5rem; 
    background-color: var(--color-paper);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-fast) ease;
    margin-left: 0; 
    margin-right: auto;
}

.article-card-feed:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); 
}

.article-card-feed h3 {
    font-family: 'Lora', serif;
    font-size: 1.4em;
    color: var(--color-accent);
    margin-bottom: 0.625rem; 
    text-align: left;   
}

.article-card-feed .article-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    color: var(--color-border);
    margin-bottom: 0.9375rem; 
    text-align: left;   
}

/* Article summary text */
.article-card-feed p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 1.25rem; 
    text-align: left;   
}

/* Reuse the button-style for 'Read More' links */
.article-card-feed .button-style {
    margin-top: 0.625rem; 
    margin-left: 0; 
}

.center-content {
    /* Critical: Centers the inline/inline-block elements inside the div (like buttons and links) */
    text-align: center; 
    /* Optional: Add some padding/margin for spacing */
    margin-top: 2.5rem; 
}

/* --------------------------------------------------------------------------------------- */
/* --- NEW CRITICAL STYLING FOR ARTICLE FEED GRID (Applies to the /html/articles.html page) --- */
/* --------------------------------------------------------------------------------------- */

.archive-feed .card-grid-container {
    display: grid;
    /* Responsive Grid: 3 columns on desktop, adapts down to 1 column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); 
    gap: 2.5rem; 
    
    /* Override flex-wrap from the .content-columns section to use Grid */
    flex-wrap: nowrap; 
    justify-content: unset; 
    align-items: stretch; 
    
    /* Reset Max Width if necessary, should be constrained by .content-section */
    max-width: var(--content-max-width);
}

.article-card {
    /* Base Article Card style, reusing .content-card base aesthetics */
    display: flex;
    flex-direction: column;
    padding: 1.25rem; 
    border: 1px solid var(--color-border);
    border-radius: 0.5rem; 
    background-color: var(--color-paper);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast) ease;
    
    /* Ensure consistent height across grid row */
    height: 100%; 
}

/* FIX: Converted CSS Nesting `:hover` to standard CSS */
.article-card:hover {
    transform: translateY(-0.1875rem); /* -3px */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-cover {
    width: 100%;
    /* Keep image height consistent within the card */
    height: 12.5rem; 
    object-fit: cover;
    border-radius: 0.3125rem; 
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.article-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

.article-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-ink);
    /* Pushes the link button to the bottom */
    flex-grow: 1; 
}

.article-card .article-link {
    /* Ensures the link section has padding and is at the bottom */
    margin-top: 1rem;
    padding-top: 0.5rem;
    flex-grow: 0;
}


/* --------------------------------------------------------------------------------------- */
/* --- NEW STYLING FOR INVITE ROBYN PAGE (Centering and Form Sizing) --- */
/* --------------------------------------------------------------------------------------- */

/* Center the topic list and limit its width for readability on large screens */
.invite-content-wrapper {
    max-width: 750px; 
    margin: 40px auto; 
    padding: 0 20px;
}

.invite-header, .invite-subheader {
    text-align: center;
}

.topic-card {
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background-color: var(--color-paper);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.topic-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 1em;
    line-height: 1.6;
}

.topic-card .source a {
    font-size: 0.9em;
}

/* Center the form container and limit its width */
.form-container {
    max-width: 700px; 
    margin: 40px auto; 
    padding: 0 20px 80px 20px;
}

.form-container iframe {
    display: block;
    /* Height is fixed by the embed, width is 100% of the parent max-width */
}

/* --------------------------------------------------------------------------------------- */
/* =======================
    ABOUT ROBYN PAGE SPECIFIC LAYOUT (Scoped to .about-page)
======================= */

/* --- TESTIMONIALS SECTION LAYOUT (Side-by-Side Cards) --- */
.about-page .testimonials-header {
    margin-bottom: 2rem;
    text-align: center;
}

.about-page .testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 65rem; 
    margin: 0 auto 5rem auto; 
    padding: 0 1rem;
}

.about-page .testimonial {
    flex: 1 1 45%; 
    background-color: var(--color-paper);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    margin: 0; 
}

.about-page .testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem; 
}
.about-page .testimonial-quote::before {
    content: "\201C"; 
    font-size: 3rem;
    line-height: 0;
    position: absolute;
    top: 0.5rem;
    left: -0.5rem;
    color: var(--color-accent);
}

.about-page .testimonial-author {
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--color-ink);
    text-align: right;
}

.about-page .testimonial-org {
    font-weight: normal;
    font-style: italic;
    color: var(--color-text-secondary);
}

/* --- PROFILE PHOTO & BIO LAYOUT (Balanced Two-Column) --- */
.about-page .robyn-bio {
    display: flex;
    gap: 3rem; 
    align-items: flex-start;
    /* Keeps the wide container size for maximum text flow (80rem = 1280px) */
    max-width: 80rem; 
    
    /* Reduced vertical space on the main container */
    margin: 3rem auto 2rem auto; 
    
    width: 100%;
    padding: 0 1rem; 
    position: relative; 
}

.about-page .robyn-photo {
    /* Photo takes up 20% of the total space */
    flex: 0 0 20%; 
    max-width: 20%; 
    height: auto; 
    object-fit: cover;  
    border-radius: 0.3125rem; 
    border: 2px solid var(--color-accent);  
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    flex-shrink: 0;
    
    /* DESKTOP OFFSET: Photo is pushed down 7rem for unique visual alignment */
    margin-top: 7rem; 
}

.about-page .robyn-bio-text {
    /* Text takes up the remaining 80% of the total space */
    flex: 1 1 80%; 
    max-width: 80%; 
    padding-top: 0rem; 
    /* Ensures the text container has height, aligning with the bottom of the offset photo */
    padding-bottom: 10rem; 
}

.about-page .robyn-bio-text p {
    font-size: 1.15rem; 
    line-height: 1.7;   
    text-align: justify; 
    hyphens: auto;  
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    max-width: 100%; 
}


/* --------------------------------------------------------------------------------------- */
/* --- 6. RESPONSIVE MEDIA QUERIES --- */
/* --------------------------------------------------------------------------------------- */

/* Tablet and Small Desktop Adjustments (Max Width 992px) */
@media (max-width: 992px) {

    /* Article Header Adjustments */
    .article-header .article-title {
        font-size: 1.8em;
    }

    /* ADDED: Meta size for small screens */
    .article-header .article-meta {
        /* Adjusted to a fixed size for better control */
        font-size: 1rem; 
    }
    
    /* Ensure invite page content remains readable on very small screens */
    .invite-content-wrapper,
    .form-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topic-card {
        padding: 1rem;
    }
}

/* --- DEDICATED FIX FOR 912 x 1368 (Viewport Width 912px) --- */
@media (width: 912px) {
    
    .content-section, .archive-feed {
        /* Tighter padding on the right for this specific, common tablet size */
        padding-left: 2.5rem;   
        padding-right: 0.9375rem;   
    }
    
    /* Robyn Bio: Explicitly center components for this wide tablet view */
    .robyn-photo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .robyn-bio {
        margin-left: auto;
        margin-right: auto;
        text-align: center; 
    }
    
    .robyn-bio-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .robyn-bio-text h2 {
        text-align: center; 
    }
    
    /* Content columns are also now centered again for this specific breakpoint */
    .content-columns {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    /* Ensure Content Cards align to the center */
    .content-card {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure the quote and citation remain centered on the 912px view */
    .quote-label,
    .quote-label cite {
        text-align: center;
    }
    
    /* FIX: About Page Testimonial Grid for 912px Tablet */
    .about-page .testimonials-grid {
        gap: 1.5rem; /* Reduce gap slightly */
    }
}

.highlight-scripture {
    /* Use the same styling as before, but with a semantic tag */
    color: red; 
    font-weight: 600;
}
.photo-grid-container {
    display: grid;
    /* This creates a responsive grid: 
       - It will try to fit as many columns as possible
       - Each column will be at least 250px wide, up to 1fr (equal fraction of space) */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; /* Space between the photo cards */
    padding: 2rem; /* Padding around the entire grid */
    max-width: 1200px; /* Limit overall grid width */
    margin: 0 auto; /* Center the grid container */
}

.photo-card {
    border: 1px solid var(--color-border); /* Example border for each card */
    border-radius: 0.5rem; /* Slightly rounded corners */
    overflow: hidden; /* Ensures image corners respect border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effects */
}

.photo-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.photo-card img {
    width: 100%; /* Make images fill their card width */
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover; /* Crop images to fit fixed height without distortion */
    display: block; /* Remove extra space below images */
}

.photo-grid-container a {
    display: block;
    text-decoration: none; /* Remove underline from the link */
    color: inherit;
}

/* Tablet/Medium Mobile Content Adjustments (Max Width 900px) */
/* **This block re-establishes the core tablet stacking and padding.** */
@media (max-width: 900px) {
    
    /* --- GENERAL CONTENT AND LAYOUT --- */
    
    .content-section, .archive-feed {
        padding-left: 0.9375rem; /* 15px */  
        padding-right: 0.9375rem; /* 15px */
        margin-top: 1.875rem; /* 30px */
        margin-bottom: 1.875rem; /* 30px */
    }
    
    .section-heading {
        font-size: 1.8em;
        margin-bottom: 1.25rem; /* 20px */
    }

    /* Navigation Adjustment */
    .main-nav-capsule {
        top: 10px;  
        right: 10px;    
        padding: 0.625rem 0.9375rem; 
    }
    
    .menu-toggle-btn {
        margin: 0 0 0.625rem 0; 
    }
    
    /* --- ROBYN BIO LAYOUT FIX (Stacking for .about-page and general bio) --- */
    
    /* Ensures the main container stacks correctly for both general and .about-page bio */
    .about-page .robyn-bio, .robyn-bio {
        flex-direction: column;
        align-items: center;
        margin: 3.125rem auto; 
        gap: 0;
        max-width: 95%; /* Adjusted max-width for tablet */
    }

    /* CRITICAL FIX: Photo Styling - Applied to BOTH general and .about-page photo */
    .robyn-photo, .about-page .robyn-photo {
        /* This handles both the small photo (12.5rem) and large photo (width: 90%) */
        margin: 0 auto 1.5rem auto; 
        margin-top: 0; /* REMOVES THE DESKTOP OFFSET (7rem) */
        max-width: 90%; 
        width: 90%;
        height: auto; 
    }
    
    /* CRITICAL FIX: Text Styling - Applied to BOTH general and .about-page text */
    .robyn-bio-text, .about-page .robyn-bio-text {
        width: 100%;    
        max-width: 90%; /* Allows text to use full width of the wrapper */
        margin: 0 auto; 
        padding-top: 1.25rem;   
        /* Reset padding-bottom from the large desktop 10rem to a standard mobile value */
        padding-bottom: 1.25rem;
    }
    
    .robyn-bio-text h2 {
        text-align: center; 
    }

    /* CRITICAL FIX: Paragraph text inside the bio box for tablet/mobile */
    .robyn-bio-text p {
        margin-bottom: 1.5em;   
        text-align: center; 
    }
    
    /* --- CONTENT COLUMNS (Books & Articles) --- */

    .content-columns {
        flex-direction: column; 
        gap: 2.5rem;    
        padding-left: 0;    
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-column, .articles-column {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0; 
        border-right: none; 
    }

    .book-column {
        padding-bottom: 1.25rem;    
        border-bottom: 1px solid var(--color-border);
    }
    
    .column-heading {
        text-align: center !important;  
    }

    /* --- CONTENT CARDS AND FEEDS --- */

    .card-grid-container {
        justify-content: center !important; 
        padding-top: 0.9375rem; 
    }
    
    .content-card {
        flex: 1 1 100%; 
        max-width: 100%; 
        margin-left: 0 !important;   
        margin-right: 0 !important;
    }
    
    .content-card p {
        text-align: left;
    }

    .book-card p {
        text-align: center; 
    }
    .book-card p .buy-link {
        margin-left: 0 !important;  
    }
    
    /* Article Feed Grid Adjustments */
    .archive-feed .card-grid-container {
        gap: 1.5rem; 
        grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); 
    }
    .article-cover {
        height: 10rem; 
    }
    .article-card {
        min-height: auto; 
    }
    
    /* --- HERO CARD FIX --- */

    .quote-card-container {
        flex-direction: column; 
        max-width: 95%; 
        align-items: center;
    }
    
    .quote-image-section {
        flex: none; 
        width: 100%; 
        border-right: none;
        border-bottom: 1px solid var(--color-border);   
        padding: 1.25rem 0; 
    }
    .quote-card-image {
        width: 9.375rem; 
        height: 9.375rem; 
        margin: 0 auto 0.9375rem auto; 
    }
    .quote-text-section {
        padding: 1.25rem; 
    }
    .quote-text-section h2, 
    .quote-text-section p { 
        text-align: center; 
    }
    
    .quote-label {
        position: static;
        background-color: transparent;
        color: var(--color-ink);
        padding: 0;
        margin-top: 1rem;
    }
    
    /* --- TESTIMONIALS FIX --- */

    .about-page .testimonials-grid {
        flex-direction: column; 
        gap: 1.5rem;
    }
    .about-page .testimonial {
        flex: 1 1 100%; 
    }
}


/* --- DEDICATED FIX FOR 540px SCREENS (Portrait Tablet/Large Phone) --- */
@media (max-width: 540px) {
    
    /* FIX: Revert horizontal margin on bio text to prevent extreme squish/overlap at this size */
    .robyn-bio p {
        /* Set explicit side padding to control text block width better than margin */
        padding-left: 0.9375rem; /* 15px */
        padding-right: 0.9375rem; /* 15px */
        margin-top: 0.5rem; 
        margin-bottom: 0.5rem;
        /* Ensure font size is comfortable */
        font-size: 1.15rem; 
    }
    
    /* Ensure content padding is tight but readable */
    .content-section, 
    .archive-feed {
        padding-left: 1rem; 
        padding-right: 1rem; 
    }
    
    /* Reduce padding on the quote card text */
    .quote-text-section {
        padding: 1rem;
    }

    /* Reduce font size for the largest heading elements */
    .quote-heading {
        font-size: 2.5em;   
    }
    .quote-text-section .bio-subtitle {
        font-size: 1.5rem;
    }

}

/* Small Mobile Content Adjustments (Max Width 500px) */
@media (max-width: 500px) {
    
    /* Horizontal Padding is confirmed at 1.25rem (20px) for general content */
    .content-section, .archive-feed {
        padding-left: 1.25rem; /* 20px */
        padding-right: 1.25rem; /* 20px */
    }
    
    /* Revert bio text padding to 0 and rely on the wrapper's padding */
    .robyn-bio p {
        padding-left: 0;
        padding-right: 0;
    }

    /* Article feed grid now switches to a single column */
    .archive-feed .card-grid-container {
        grid-template-columns: 1fr; 
    }
}

.photo-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    .photo-card img {
        height: 150px; /* Adjust height for smaller cards */
    }
@media (max-width: 480px) {
    .photo-grid-container {
        grid-template-columns: 1fr; /* Single column on very small screens */
        padding: 0.5rem;
    }
    .photo-card img {
        height: 250px; /* Taller images when they are full width */
    }
}