<style>
/* =========================================
   GLOBAL STYLES
   ========================================= */
html, body { 
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; 
}
body {
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: .25px;
    color: #111;
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
}
.wrapper {
    max-width: 1150px;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 0 0 1px;
    box-sizing: border-box;
}

a {
    color: #006bd6;
    text-decoration: none;
    transition: color 0.2s ease, outline 0.2s ease;
}
a:hover {
    text-decoration: underline;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid #ff3385;
    outline-offset: 4px;
    border-radius: 2px;
}
p a, .footer-description a, footer p a {
    font-weight: 700;
}

/* --- HEADER --- */
.header-outer {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid #eaeaea;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    max-width: 1150px;
    width: calc(100% - 48px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    flex-wrap: wrap;
    padding: 18px 0;
}
.logo-link {
    display: inline-block;
    padding: 4px 0;
    transition: opacity 0.2s ease;
}
.logo-link:hover { text-decoration: none; }
.logo-link:hover .logo-therapy,
.logo-link:hover .logo-domain {
    color: #006bd6;
    opacity: 1;    
}
.logo-wordmark {
    font-family: Georgia, "Times New Roman", serif; 
    font-size: 2.4rem; 
    line-height: 1; 
    display: block; 
    letter-spacing: -0.03em; 
}
.logo-therapy {
    color: #111; 
    font-weight: 800; 
    transition: color 0.2s ease;
}
.logo-domain {
    color: #111; 
    font-weight: 400; 
    opacity: 0.8; 
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* --- NAVIGATION --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    fill: #111;
    transition: fill 0.2s ease;
}
@media (hover: hover) {
    .mobile-menu-toggle:hover { fill: #ff3385; }
}
.mobile-menu-toggle:active { fill: #ff3385; }

nav { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-end; 
    align-items: center; 
    gap: 0 25px; 
}
nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    font-weight: 400;
    font-size: 1.1rem;
    white-space: nowrap;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
nav a:hover {
    color: #006bd6; 
    text-decoration: none;
}
nav a.current { 
    font-weight: 800;
    text-decoration: none;
}
nav a.current:hover { text-decoration: none; }

.nav-icon {
    width: 20px;
    height: 20px;
    fill: #006bd6; 
    transition: transform 0.2s ease, fill 0.2s ease;
}
nav a:hover .nav-icon { 
    transform: scale(1.1); 
    fill: #ff3385; 
}
.mobile-search-text { display: none; }

/* =========================================
   ARTICLE STYLES
   ========================================= */
:root {
    /* Slightly darker pink to pass WCAG 4.5:1 contrast against white */
    --electric-pink: #E91E63; 
    --azure-blue: #006BD6;    
    --deep-onyx: #111111;     
    --crisp-gray: #EAEAEA;    
}

.page-wrapper {
    max-width: 1150px; 
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 20px 0 10px 0; 
    text-align: left; 
}

@media (max-width: 1023px) {
    .page-wrapper {
        padding-bottom: 0;
    }
    .article-layout {
        gap: 30px; 
    }
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 800px) 300px;
        justify-content: space-between;
    }

    .sticky-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 105px; 
        align-self: start;
        height: max-content; 
        display: flex;
        flex-direction: column;
        z-index: 10;
        transform: translateZ(0);
    }
}

.article-main {
    text-align: left;
    padding-bottom: 0; 
    min-width: 0; 
    max-width: 100%;
}

/* Sidebar List & Items */
.sidebar-heading {
    background: white;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--crisp-gray);
    padding-bottom: 5px;
    margin-bottom: 5px;
}
.sidebar-list {
    display: flex;
    flex-direction: column;
}
.sidebar-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--crisp-gray);
    align-items: flex-start;
}
.sidebar-item:last-child {
    border-bottom: none;
}
.sidebar-number {
    font-family: ui-serif, Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--electric-pink);
    opacity: 0.8;
    line-height: 1;
    min-width: 25px;
    margin-top: 2px;
}
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.sidebar-link {
    display: block;
    font-family: ui-serif, Georgia, serif;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--deep-onyx);
    text-decoration: none;
    transition: color 0.2s ease;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.sidebar-link:hover {
    color: var(--azure-blue);
}
/* Update the meta text to be darker */
.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    color: #555; /* Darkened from #888 */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-meta svg {
    flex-shrink: 0;
    opacity: 0.6;
}
.sidebar-list .sidebar-item:first-child {
    padding-top: 5px; 
}

/* Article Typography */
article h1 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--deep-onyx);
    margin: 0 0 15px 0;
}
article h2 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.8rem; 
    font-weight: 800;
    color: var(--deep-onyx);
    border-top: 2px solid var(--crisp-gray); 
    padding-top: 15px; 
    margin: 35px 0 12px 0; 
    line-height: 1.2;
}
article h2.sidebar-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--electric-pink);
    border-top: none;
    padding-top: 0;
    margin: 0 0 15px 0;
    line-height: inherit;
}
.tagline {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 25px 0;
}

/* Editorial Byline */
.editorial-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--crisp-gray);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.editorial-byline .author-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--electric-pink);
    padding: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.byline-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.byline-part {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.byline-part svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.byline-part a {
    color: var(--deep-onyx);
    font-weight: 700;
    text-decoration: none;
}

.byline-part a:hover {
    color: var(--azure-blue);
    text-decoration: underline;
}

.byline-separator {
    color: #ccc;
    margin: 0 2px;
    font-weight: 300;
}

.date-part {
    color: #555; /* Darkened from #888 */
}

@media (max-width: 600px) {
    .byline-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .desktop-only {
        display: none;
    }
}

/* Body Text */
article p, article ul, article ol {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-onyx);
    margin-bottom: 1em; 
}
article a {
    color: var(--azure-blue);
    font-weight: 700;
    text-decoration: none;
}
article a:hover {
    text-decoration: underline;
}

/* Flat Card */
.flat-card {
    border: 1px solid var(--crisp-gray);
    border-radius: 4px;
    padding: 15px 20px; 
    margin-top: 30px;    
    margin-bottom: 0;   
    background: #F9F9F9;
}
.sidebar-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--electric-pink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 15px 0;
    border-bottom: 1px solid var(--crisp-gray);
    padding-bottom: 10px;
}
.author-card-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-card-content img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.author-card-content p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin: 0;
}
.author-bio-link {
    color: var(--azure-blue);
    font-weight: 700;
    text-decoration: none;
}
.author-bio-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    article h1 { font-size: 2.1rem; }
    .flat-card .sidebar-title { text-align: left; }
    .author-card-content { 
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left; 
    }
    .author-card-content img { margin: 0; }
    .author-card-content p { margin-top: 0; }
}

/* Hero Image */
.article-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
}
@media (min-width: 1024px) {
    .article-hero-image { aspect-ratio: 21 / 9; }
}

/* Styled Lists */
article ul, article ol {
    padding-left: 20px;
    margin-bottom: 1.6em;
}
article ul { list-style: none; }
article ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 0.8em;
}
article ul li::before {
    content: "•"; 
    color: var(--electric-pink);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
    font-size: 1.2rem;
}
article ol {
    counter-reset: my-counter;
    list-style: none;
}
article ol li {
    counter-increment: my-counter;
    position: relative;
    padding-left: 15px;
    margin-bottom: 0.8em;
}
article ol li::before {
    content: counter(my-counter) ".";
    color: var(--electric-pink);
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
}

/* Drop Cap */
.story-start::first-letter {
    font-family: ui-serif, Georgia, serif;
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 4px;
    color: var(--deep-onyx);
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--electric-pink);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Recommendations Section */
.recommendations-wrapper {
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}
.section-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-top: none;
    border-bottom: 2px solid var(--crisp-gray);
    padding-top: 0;
    padding-bottom: 8px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}
.section-label::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 4px;
    background-color: var(--electric-pink);
    margin-right: 10px;
    flex-shrink: 0;
}
.recommendations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 20px; 
}
@media (min-width: 600px) {
    .recommendations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}
.rec-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0; /* Removed generic gap so we can control rhythm precisely */
}
.rec-card a {
    text-decoration: none;
    color: inherit;
}
.rec-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 12px; /* Distinct breathing room below the image */
    transition: opacity 0.2s ease;
}
.rec-card a:hover img { opacity: 0.9; }

.rec-card .article-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem; /* Bumped up from 0.72rem to pass the 12px mobile threshold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666; /* Darkened from #888 for better contrast */
    margin: 0 0 6px 0; 
}
/* Ensure the category labels use the updated accessible pink */
.rec-card .article-meta .cat { 
    color: var(--electric-pink); 
}

.rec-card h3 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.15rem; /* Bumped up a fraction for better hierarchy */
    font-weight: 800;
    line-height: 1.35;
    color: var(--deep-onyx);
    margin: 0 0 8px 0; /* Room before the description */
    transition: color 0.2s ease;
}
.rec-card a:hover h3 { color: var(--azure-blue); }

.rec-card .article-desc {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0px; 
    margin-bottom: 0px;
}
@media (min-width: 600px) {
    .video-grid { grid-template-columns: 1fr 1fr; }
}
.video-grid iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    display: block;
}

ul.recommendations-grid {
    list-style: none;
    padding: 0;
}
ul.recommendations-grid li::before { display: none; }

/* Desktop sticky nav fix */
@media (min-width: 1024px) {
    .sticky-sidebar nav {
        display: block;
        width: 100%;
        flex: 1 1 100%;
    }
}
.sticky-sidebar nav {
    display: block !important;
    border: none;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* =========================================
   RESPONSIVE HEADER / FOOTER
   ========================================= */
footer {
    margin-top: 15px;
    border-top: 1.5px solid #eaeaea; 
    padding: 15px 0 30px;
}

/* Force the sans-serif font and larger size on the heading */
.wrapper footer .footer-heading {
    margin: 0 0 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.1rem; 
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--deep-onyx); 
    display: flex;
    align-items: center;
}

.wrapper footer .footer-heading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 4px;
    background-color: var(--electric-pink);
    margin-right: 10px;
    flex-shrink: 0;
}

/* Force sans-serif and explicitly set the size to 1.15rem */
.wrapper footer .footer-description {
    margin-bottom: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.15rem; 
    line-height: 1.6;
    color: #444;
}

/* Force sans-serif and matching size for the links */
.wrapper footer .footer-links,
.wrapper footer .footer-links a,
.wrapper footer .footer-links span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.15rem; 
}

.wrapper footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.wrapper footer .footer-links a {
    font-weight: bold; /* Added the missing semicolon here! */
    display: inline-flex;
    align-items: center;
}

.wrapper footer .footer-links a.home-link { transition: color 0.2s ease; }
.wrapper footer .footer-links a.home-link:hover { color: #ff3385; }
.home-icon-footer { width: 18px; height: 18px; fill: currentColor; }
.wrapper footer .footer-links span { color: #ccc; }

/* Override the inline 12px style on the copyright paragraph */
.wrapper footer p:last-of-type {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem !important; 
    margin-top: 18px;
}

@media (max-width: 900px) {
    /* Header Responsive */
    .header-inner { padding: 10px 0; } 
    .logo-wordmark { font-size: 1.6rem; } 
    .logo-link { gap: 10px; } 
    
    .mobile-menu-toggle { display: block; }
    
    nav { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        align-items: flex-start;
        margin-top: 10px; 
        padding-top: 5px;
        border-top: 1px solid #eaeaea; 
        gap: 0; 
    }
    
    nav.is-open { display: flex; }
    nav a {
        font-size: 1.1rem; 
        width: 100%;
        padding: 10px 0; 
        border-bottom: 1px solid rgba(0,0,0,0.04); 
    }
    nav a:last-child { 
        border-bottom: none; 
        padding-bottom: 2.5px; 
    }
    .mobile-search-text { display: inline; }
    main {
        padding-top: 15px; 
    }

    /* Footer Responsive */
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px 0; 
    }
    .footer-links span { display: none; }
    .footer-links a { padding: 3px 0; }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--electric-pink);
    color: white;
    padding: 8px 15px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

</style>
