/* Hello World, Peace!
   =========================================
   SUF STUDIOS: SELF-HOSTED FONT VAULT
   ========================================= */

/* --- CORE ENGLISH & DISPLAY FONTS --- */

@font-face {
    font-family: "Agbalumo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Agbalumo"),
        url("/fonts/agbalumo-v6-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Bakbak One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Bakbak One"),
        url("/fonts/bakbak-one-v11-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Berkshire Swash";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Berkshire Swash"),
        url("/fonts/berkshire-swash-v22-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Caprasimo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Caprasimo"),
        url("/fonts/caprasimo-v6-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Carter One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Carter One"),
        url("/fonts/carter-one-v18-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Chela One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Chela One"),
        url("/fonts/chela-one-v22-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Lobster";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Lobster"),
        url("/fonts/lobster-v32-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Lobster Two";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Lobster Two"),
        url("/fonts/lobster-two-v22-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Poppins"),
        url("/fonts/poppins-v24-latin-regular.woff2") format("woff2");
}

/* --- DEVANAGARI / HINDI COMPATIBLE FONTS --- */

@font-face {
    font-family: "Amita";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Amita"),
        url("/fonts/amita-v20-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Arya";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Arya"),
        url("/fonts/arya-v21-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Gajraj One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Gajraj One"),
        url("/fonts/gajraj-one-v7-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Galada";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Galada"),
        url("/fonts/galada-v21-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Gotu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Gotu"),
        url("/fonts/gotu-v18-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Noto Sans Devanagari";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Noto Sans Devanagari"),
        url("/fonts/noto-sans-devanagari-v30-latin-regular.woff2")
            format("woff2");
}

@font-face {
    font-family: "Noto Serif Devanagari";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Noto Serif Devanagari"),
        url("/fonts/noto-serif-devanagari-v34-latin-regular.woff2")
            format("woff2");
}

@font-face {
    font-family: "Palanquin";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Palanquin"),
        url("/fonts/palanquin-v17-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Palanquin Dark";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Palanquin Dark"),
        url("/fonts/palanquin-dark-v17-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Playpen Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Playpen Sans"),
        url("/fonts/playpen-sans-deva-v4-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Rozha One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Rozha One"),
        url("/fonts/rozha-one-v17-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Sarpanch";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Sarpanch"),
        url("/fonts/sarpanch-v15-latin-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Yatra One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        local("Yatra One"),
        url("/fonts/yatra-one-v16-latin-regular.woff2") format("woff2");
}

/* =========================================
   SUF STUDIOS: CUSTOM FONT WRAPPERS
   ========================================= */

/* Display / Script Fonts */
.lobster-text {
    font-family: "Lobster", cursive !important;
    font-size: 2rem;
    font-weight: normal !important;
    letter-spacing: 1px;
}
.lobster2-text {
    font-family: "Lobster Two", cursive !important;
    font-size: 2rem;
    font-weight: normal !important;
    letter-spacing: 1px;
}
.swash-text {
    font-family: "Berkshire Swash", cursive !important;
}
.amita-text {
    font-family: "Amita", cursive !important;
    font-size: 2rem;
    font-weight: normal !important;
}
.galada-text {
    font-family: "Galada", cursive !important;
    font-size: 2rem;
    font-weight: normal !important;
}

/* Bold / Chunky Headers */
.agbalumo-text {
    font-family: "Agbalumo", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.bakbak-text {
    font-family: "Bakbak One", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.caprasimo-text {
    font-family: "Caprasimo", system-ui, sans-serif !important;
    font-weight: normal !important;
}
.carterone-text {
    font-family: "Carter One", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.chelaone-text {
    font-family: "Chela One", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.gajraj-text {
    font-family: "Gajraj One", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.sarpanch-text {
    font-family: "Sarpanch", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}
.yatra-text {
    font-family: "Yatra One", system-ui, sans-serif !important;
    font-weight: normal !important;
    font-size: 2rem;
}

/* Modern / Clean Sans-Serif */
.poppins-text {
    font-family: "Poppins", system-ui, sans-serif !important;
}
.notosans-text {
    font-family: "Noto Sans Devanagari", system-ui, sans-serif !important;
}
.palanquin-text {
    font-family: "Palanquin", system-ui, sans-serif !important;
}
.palanquindark-text {
    font-family: "Palanquin Dark", system-ui, sans-serif !important;
}
.playpen-text {
    font-family: "Playpen Sans", system-ui, sans-serif !important;
}

/* Elegant Serifs */
.arya-text {
    font-family: "Arya", serif !important;
    font-size: 2rem;
    font-weight: normal !important;
}
.gotu-text {
    font-family: "Gotu", system-ui, sans-serif !important;
    font-size: 2rem;
    font-weight: normal !important;
}
.notoserif-text {
    font-family: "Noto Serif Devanagari", serif !important;
}
.rozha-text {
    font-family: "Rozha One", serif !important;
    font-size: 2rem;
    font-weight: normal !important;
}

/* =========================================
   SUF STUDIOS: THEME FONT OVERRIDES
   ========================================= */

/* Make sure your automated titles still look for your new local definitions! */
body .postShorten .postShorten-title,
body .postShorten .postShorten-title a {
    font-family: "Caprasimo", system-ui, sans-serif !important;
}

body .post-header .post-title,
body .post-header-cover .post-title,
.suf-welcome-banner h2 {
    font-family: "Berkshire Swash", cursive !important;
}

body .header-title,
body .header-title-link,
body .header-right-picture {
    font-family: "Agbalumo", system-ui, sans-serif !important;
}

/* =========================================
   SUF STUDIOS: GLOBAL MACRO-SCALE
   ========================================= */
html {
    zoom: 0.9; /* Scales the entire website down to 90% */
}

/* For Mobile Devices */
@media only screen and (max-width: 768px) {
    html {
        zoom: 0.85;
    }
    #sidebar {
        height: 100vh !important; /* Resets back to normal when zoom is 1.0 */
        max-height: 100vh !important;
    }
}

/* --- HOMEPAGE BANNER (IMAGE ONLY, DETACHED) --- */
.suf-banner-container {
    width: calc(
        100% - 60px
    ) !important; /* Creates the 30px gap on left and right */
    height: 400px !important; /* [10.58 cm] height */
    margin: 20px auto 40px auto !important; /* Top gap, centered horizontally, Bottom gap */
    border-radius: 6px !important;

    /* UPDATED: Now strictly pointing to your new banner file */
    background-image: url("/images/home-banner.webp") !important;

    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* =========================================
   SUF STUDIOS: SIDEBAR LOGO SPACING
   ========================================= */
.sidebar-profile {
    padding-top: 50px !important;
}

/* This targets the <a> tag holding the logo image */
.sidebar-profile a {
    margin-bottom: 25px !important;
}

@media only screen and (max-width: 768px) {
    .sidebar-profile {
        padding-top: 30px !important; /* Shrinks the massive gap above the logo on phones! */
    }

    .sidebar-profile a {
        margin-bottom: 6px !important; /* Shrinks the gap between logo and menus! */
    }
}

/* --- PAGEFIND SEARCH OVERLAY (LIGHT STUDIO MODE) --- */
#suf-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh; /* FIX 1: Added 100 to fix the collapsing background */
    background: rgba(255, 255, 255, 0.553); /* Clean, frosted glass look */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    overflow-y: auto;
    padding-bottom: 10vh;
}

#suf-search-container {
    width: 90%;
    max-width: 800px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); /* Soft, elevated shadow */
    position: relative;
    border: 1px solid #eaeaea;
}

#suf-search-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #333333; /* Dark text so it's visible on the white overlay */
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
}

/* Force Pagefind UI into Light Mode to match Tranquilpeak */
:root {
    --pagefind-ui-primary: #39424e; /* Matches Tranquilpeak's dark text */
    --pagefind-ui-text: #39424e;
    --pagefind-ui-background: #ffffff;
    --pagefind-ui-border: #eeeeee;
    --pagefind-ui-tag: #f4f4f4;
    --pagefind-ui-border-width: 2px;
    --pagefind-ui-border-radius: 4px;
    --pagefind-ui-font: inherit;
}

/* FIX 2: Target the input text directly to kill the white-on-white bug */
.pagefind-ui__search-input {
    color: #2d2d32 !important;
}
.pagefind-ui__search-input::placeholder {
    color: rgba(45, 45, 50, 0.5) !important;
}

/* --- ARTICLE FEED TYPOGRAPHY --- */

/* 1. Shrink the Homepage Article Titles */
.postShorten-title {
    font-size: 2.3rem !important; /* Adjust this number (Default is usually 1.7rem) */
    line-height: 1.2 !important; /* Keeps multi-line titles looking tight and clean */
    margin-bottom: 10px !important;
}

/* --- THE PERFECT 404 STUDIO CARD --- */
#suf-error-card {
    background: rgba(87, 62, 102, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 60px 50px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    max-width: 600px !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
}

#suf-error-card h1 {
    color: #ffffff !important;
    font-size: 5rem !important;
    margin: 0 0 10px 0 !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    border-bottom: 30px !important; /* Kills the theme's default underline */
}

#suf-error-card p {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    font-weight: 550 !important;
    margin-bottom: 30px !important;
}

#suf-error-card a {
    display: inline-block !important;
    padding: 15px 35px !important;
    background: #ffffff !important;
    color: #111111 !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease !important;
}

#suf-error-card a:hover {
    background: #cccccc !important;
    transform: translateY(-2px) !important;
}

/* --- STUDIO BLOCKQUOTE TYPOGRAPHY --- */
.post blockquote,
.post blockquote p {
    font-size: 1.5rem !important; /* Shrinks the text (default is usually 1rem or 1.1rem) */
    font-weight: 500 !important;
    line-height: 1.5 !important; /* Keeps the lines breathing comfortably */
    color: #7b7b7b !important; /* Optional: Fades the text slightly to look more like a citation */
}

/* --- SECONDARY "MORE" SIDEBAR MENU --- */
.suf-hidden-list {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out !important;
    padding-left: 0px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* 1. The Glassmorphism Base */
    background: rgba(255, 255, 255, 0.08) !important; /* Subtle white tint */
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    border: 1px solid transparent !important; /* Hidden border until it opens */
}

/* 2. Premium Dark Mode Support */
body.suf-is-dark .suf-hidden-list {
    background: rgba(0, 0, 0, 0.2) !important; /* Dark tint for dark mode */
}

body .suf-hidden-list .sidebar-button-link {
    padding-right: 15px !important;
}

/* 3. The "Open" State */
.suf-hidden-list.suf-list-open {
    max-height: 400px;
    opacity: 1;
    margin-bottom: 10px !important;
    border-color: rgba(
        255,
        255,
        255,
        0.1
    ) !important; /* Reveals a sleek border when open */
}

/* Force exact native sizing with high specificity */
body .suf-hidden-list .sidebar-button-icon {
    font-size: 1.25rem !important; /* Matches the fa-lg size of main links */
}

body .suf-hidden-list .sidebar-button-desc {
    font-size: 16px !important; /* Standard theme base size */
    color: #d1d1d1 !important;
    text-shadow: 2px 2px 4px #000000d0;
    letter-spacing: normal !important;
    font-weight: 600 !important;
}

body .suf-hidden-list .sidebar-button-link:hover .sidebar-button-desc {
    color: #ffffff !important;
}

/* --- THE ACTUAL DOM 16:9 OVERRIDE --- */

/* 1. Target the Article Tag directly. Turn off the legacy floats/tables. */
body article.postShorten:not(.postShorten--thumbnailimg-top) {
    display: flex !important;
    /* This is the magic trick: The image is 2nd in the HTML, so row-reverse puts it on the left! */
    flex-direction: row-reverse !important;
    align-items: flex-start !important; /* Absolute top alignment for both */
    justify-content: flex-end !important;
    gap: 25px !important;
}

/* 2. The Text Wrapper */
body article.postShorten:not(.postShorten--thumbnailimg-top) .postShorten-wrap {
    width: 100% !important; /* Allows text to fluidly fill remaining space */
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. The Image Link Wrapper (Direct child of the article) */
body article.postShorten:not(.postShorten--thumbnailimg-top) > a {
    display: block !important;
    width: 260px !important; /* High-quality Widescreen Width */
    flex-shrink: 0 !important; /* Prevents text from squishing the image */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 4. The 16:9 Container & Image Crop */
body
    article.postShorten:not(.postShorten--thumbnailimg-top)
    .postShorten-thumbnailimg {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
}

body
    article.postShorten:not(.postShorten--thumbnailimg-top)
    .postShorten-thumbnailimg
    img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

/* 5. Mobile Override (Snaps image to the top on phones) */
@media only screen and (max-width: 767px) {
    body article.postShorten:not(.postShorten--thumbnailimg-top) {
        flex-direction: column-reverse !important; /* Image jumps to the top */
        gap: 15px !important;
    }
    body article.postShorten:not(.postShorten--thumbnailimg-top) > a {
        width: 100% !important;
    }
}

/* --- HOMEPAGE BANNER SPACING --- */
.suf-banner-container {
    margin-bottom: 30px !important; /* Adjust this value to dial in the exact gap */
}

/* --- HOMEPAGE TITLE & EXCERPT SPACING --- */

/* 1. Reduce the bottom margin of the header (which holds the title and date) */
body .postShorten .postShorten-header {
    margin-bottom: -10px !important; /* Default is usually around 15-20px */
}

/* 2. Ensure the excerpt text itself isn't pushing down */
body .postShorten .postShorten-excerpt {
    margin-top: 0px !important;
}

/* Optional: If you also want to tighten the gap between the Title and the Date/Meta info */
body .postShorten .postShorten-title {
    margin-bottom: 0px !important;
}

/* --- HOMEPAGE TITLE COLOR --- */

/* 1. The dark purple variant for the resting state */
body .postShorten .postShorten-title a {
    color: #5d3c6e !important;
    transition: color 0.2s ease-in-out !important; /* Makes the hover effect smooth */
}

/* 2. The bright #b700ff glow on hover */
body .postShorten .postShorten-title a:hover {
    color: #b700ff !important;
}

/* --- HOMEPAGE EXCERPT TEXT & SEPARATOR COLOR --- */

/* 1. The Separator Line between articles */
body .postShorten {
    /* Adjust the #333333 to make the line darker or lighter */
    border-bottom: 1px solid #d2d0d0 !important;
    padding-bottom: 40px !important; /* Breathing room above the line */
    margin-bottom: 80px !important; /* Breathing room below the line */
}

/* 2. Remove the separator line from the very last article in the list */
body .postShorten:last-of-type {
    border-bottom: none !important;
}

/* --- LIGHT THEME CONTRAST & TYPOGRAPHY TWEAKS --- */

/* 1. Date and Meta Info on the Homepage Article List */
body .postShorten .postShorten-meta,
body .postShorten .postShorten-meta a,
body .postShorten .postShorten-meta time {
    color: #555555 !important; /* Darkens the date/category text */
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* 2. Pagination Buttons (Older/Newer Posts) */
body .pagination .btn,
body .post-actions-pagination .btn {
    color: #333333 !important; /* Darkens the button text and arrows */
    border-color: #cccccc !important; /* Slightly darkens the button outline so it doesn't vanish */
}

/* 3. Share Buttons (Inside the article) */
body #share-options-bar .btn,
body .post-actions .btn {
    color: #333333 !important; /* Darkens the share icons */
}

/* 4. "SUF Studios" Text Weight in the Top Header Bar */
body .header-title,
body .header-title-link,
body .header-right-picture {
    /* Targets the text specifically */
    font-weight: 800 !important; /* Bumps it up to Extra Bold */
    letter-spacing: 0.5px !important; /* Adds a tiny bit of spacing to balance the heavy weight */
    color: #747474 !important; /* Ensures the header text is a sharp, near-black */
    font-family: "Agbalumo";
    font-size: 2rem;
}

/* --- HOMEPAGE "READ MORE" LINK TYPOGRAPHY --- */

body .postShorten .postShorten-excerpt_link {
    font-weight: 700 !important; /* Bumps it to bold */
    letter-spacing: 0.5px !important; /* Gives the bold letters room to breathe */
    text-transform: uppercase !important; /* Optional: Makes it look more like a button/call to action */
    font-size: 1.4rem !important; /* Optional: Keeps it slightly smaller than body text for a clean UI look */
}

/* Add a subtle underline when hovering over it */
body .postShorten .postShorten-excerpt_link:hover {
    text-decoration: underline !important;
}

/* --- SIDEBAR MENU BOTTOM ALIGNMENT (FIXED) --- */

/* 1. Make the master sidebar nav the Flex column */
#sidebar {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Reset the inner container so your main menus stay grouped at the top */
#sidebar .sidebar-container {
    display: block !important;
    min-height: 0 !important;
}

#sidebar .sidebar-buttons:first-of-type {
    margin-top: 0 !important;
}

/* 3. The Flex Spring: Targets your custom Legal Drawer div and pushes ONLY it to the bottom */
#sidebar > div:last-of-type {
    margin-top: auto !important; /* Forces it to the floor */
    padding-bottom: 5px !important; /* Breathing room off the bottom edge */
    width: 100% !important;
}

/* --- LOCK SIDEBAR HEIGHT --- */
#sidebar {
    /* Compensates for the 0.9 zoom so the sidebar physically touches the bottom of the screen! */
    height: calc(100vh / 0.9) !important;
    max-height: calc(100vh / 0.9) !important;
    overflow-y: auto !important;
}

/* --- MORE DRAWER ICON SHADOWS (BULLETPROOF) --- */

/* Targets the icon whether it is a font character (i) or an image graphic (svg) */
body #sidebar #suf-more-list i,
body #sidebar #suf-more-list svg,
body #sidebar #suf-more-list .sidebar-button-icon {
    /* For webfont rendering */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4) !important;

    /* For SVG rendering */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

/* --- MORE DRAWER ICON SIZING --- */

body #sidebar #suf-more-list i,
body #sidebar #suf-more-list svg,
body #sidebar #suf-more-list .sidebar-button-icon {
    font-size: 1.2em !important; /* 1.2em means 20% larger than the text. Adjust to 1.1em or 1.3em to dial it in! */
    vertical-align: middle !important; /* Ensures the larger icon stays perfectly centered next to the text */
}

/* --- HOMEPAGE WELCOME BANNER & SEPARATOR --- */
.suf-welcome-banner {
    text-align: left !important;
    padding: 0 20px 40px 20px !important; /* The 40px pushes the separator line down away from the text */
    margin-top: 0 !important;
    margin-bottom: 50px !important; /* The 50px pushes the first article down away from the line */
    border-bottom: 1px solid #d2d0d0 !important; /* Matches your article separators perfectly */
}

.suf-welcome-banner h2 {
    margin-top: 0 !important;
    font-size: 3rem !important;
    font-family: "Berkshire Swash" !important;
    color: #5d3c6e !important;
    margin-bottom: 15px !important;
    border-bottom: none !important; /* Kills the default Hugo underline */
}

/* the default font welcome code block */
.suf-welcome-banner p {
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    color: #4e4e4e !important; /* Crisp dark grey for readability */
    max-width: 800px !important; /* Keeps the text from stretching too wide on big screens */
    margin: 0 auto !important; /* Centers the paragraph perfectly */
    font-weight: 550 !important;
    font-family:
        "Merriweather", "PT Serif", Georgia, "Times New Roman", serif !important;
}

/* My attempt at styling the h2 title in welcome banner - worked but it doesn't look good */
/* .suf-welcome-banner h2 {
/*    font-family: 'Lobster', cursive !important;
} */

/* Mobile Adjustments */
@media (max-width: 768px) {
    .suf-welcome-banner {
        margin-bottom: 30px !important;
    }
    .suf-welcome-banner h2 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .suf-welcome-banner p {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* --- THE GLOBAL SCROLL INDICATOR --- */

/* 1. The Homepage Version (Inline) */
.suf-scroll-arrow {
    display: block !important;
    text-align: center !important;
    font-size: 2rem !important;
    color: #c050c8 !important; /* Matches your separator line perfectly */
    margin: -30px auto 25px auto !important; /* Spaces it between the welcome text and the line */
    animation: suf-bounce 2s infinite ease-in-out !important;
    transition: color 0.3s ease !important;
}

.suf-scroll-arrow:hover {
    color: #b700ff !important; /* Studio purple on hover */
}

/* 2. The Article Cover Version (Pinned below the Title) */
.suf-cover-scroll {
    position: absolute !important;
    top: calc(50% + 180px) !important;
    left: 50% !important;
    transform: translateX(
        -50%
    ); /* REMOVED !important so the animation can actually move it! */
    font-size: 2.5rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    animation: suf-bounce 2s infinite ease-in-out !important;
    z-index: 100 !important;
    transition: color 0.3s ease !important;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8) !important;
}

.suf-cover-scroll:hover {
    color: #ffffff !important;
}

.suf-cover-scroll:hover {
    color: #ffffff !important;
}

/* The Smooth Bounce Physics */
@keyframes suf-bounce {
    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    } /* Includes translateX to keep absolute centering intact */
    50% {
        transform: translateY(15px) translateX(-50%);
    }
}

/* Override for the inline homepage arrow to not use translateX */
.suf-scroll-arrow {
    animation-name: suf-bounce-inline !important;
}
@keyframes suf-bounce-inline {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

/* --- GLOBAL SMOOTH SCROLLING --- */
html {
    scroll-behavior: smooth !important;
}

/* =========================================
   SUF STUDIOS: ARTICLE SEPARATORS (LIGHT MODE)
   ========================================= */

/* Forces Markdown '---' breaks to perfectly match the homepage lines */
hr {
    border: none !important;
    border-top: 1px solid #d2d0d0 !important; /* Your crisp Studio Gray */
    background-color: transparent !important;
    height: 0 !important;
    margin: 40px 0 !important; /* Adds beautiful breathing room between sections */
}

/* Forces the Article Footer and Metadata blocks to match the same color */
.post-footer,
.post-meta {
    border-color: #d2d0d0 !important;
}

/* --- LOCK THE ARROW TO THE COVER IMAGE --- */
/*.suf-relative-cover {
    position: relative !important;
} */

/* =========================================
   SUF STUDIOS: DARK READER EXCEPTIONS
   ========================================= */

/* 1. Stop the wrappers from painting solid backgrounds */
body.suf-is-dark,
body.suf-is-dark #blog {
    background-color: transparent !important;
}

/* 2. Paint ONLY the reading area (Now with 93% Frosted Glass!) */
body.suf-is-dark #main {
    background-color: rgba(45, 45, 50, 0.8) !important;
}

/* 3. Maintain the Frosted Glass on the Sidebar */
body.suf-is-dark #sidebar,
body.suf-is-dark .sidebar-container {
    background-color: rgba(24, 26, 27, 0.093) !important;
}

/* 4. Protect the Article Cover Titles */
body.suf-is-dark .post-header-cover .post-title,
body.suf-is-dark .post-header-cover .post-meta time,
body.suf-is-dark .post-header-cover .post-meta a {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* =========================================
   SUF STUDIOS: MINIMALIST SCROLLBARS
   ========================================= */

/* 1. For Chrome, Opera, and Safari (Chromium/Webkit) */
#sidebar::-webkit-scrollbar {
    width: 4px; /* Very thin [4mm approx on standard DPI] */
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(85, 174, 215, 0.2); /* Makes the track invisible */
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(
        163,
        188,
        203,
        0.8
    ); /* Your signature purple, but subtle */
    border-radius: 7px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(170, 203, 214, 1); /* Pops when you actually use it */
}

/* 2. For Firefox and Zen (Standardized CSS) */
#sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 178, 207, 0.8) transparent;
}

/* =========================================
   SUF STUDIOS: MOBILE SIDEBAR SAFE ZONE
   ========================================= */

/* Hardware Detection: Only activates on screens smaller than 768px (Phones/Small Tablets) */
@media only screen and (max-width: 768px) {
    /* Target the bottom section containing the Theme Toggle and More Drawer */
    #sidebar > div:last-of-type {
        /* * The Magic Formula:
         * We tell it to add a massive 80px padding to the bottom.
         * The 'env(safe-area-inset-bottom)' protects against iPhones with the bottom swipe bar.
         * The 'max()' function picks whichever number is bigger to guarantee clearance.
         */
        padding-bottom: max(50px, env(safe-area-inset-bottom, 90px)) !important;
    }
}

/* =========================================
   SUF STUDIOS: PAGEFIND BUG FIXES & DARK MODE
   ========================================= */

/* 1. Mobile Freeze Fix (Forces hardware acceleration so the input doesn't lock up) */
#suf-search-overlay {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* 2. Kill the Default Browser Yellow Highlights (Light Mode) */
#suf-search-container mark,
.pagefind-ui__mark {
    background-color: rgba(
        183,
        0,
        255,
        0.15
    ) !important; /* Subtle Studio Purple highlight */
    color: #2d2d32 !important; /* Keeps the text dark and legible */
    padding: 0 3px !important;
    border-radius: 3px !important;
}

/* 3. Dark Mode: Search Box Tweaks */
body.suf-is-dark #suf-search-container .pagefind-ui__search-input {
    border: 1px solid #5a5a60 !important; /* Subtle dark border */
    color: #f5f3ef !important; /* Crisp light text */
    background-color: transparent !important;
}

body.suf-is-dark #suf-search-container .pagefind-ui__search-input::placeholder {
    color: rgb(245, 243, 239) !important; /* Soft light-grey placeholder */
}

/* 4. Dark Mode: Word Highlights */
body.suf-is-dark #suf-search-container mark,
body.suf-is-dark .pagefind-ui__mark {
    background-color: rgba(
        183,
        0,
        255,
        0.5
    ) !important; /* Stronger Studio Purple for dark bg */
    color: #ffffff !important; /* White text inside the highlight */
}

/* =========================================
   SUF STUDIOS: BERKSHIRE SWASH MAIN TITLES
   ========================================= */

/* 1. Homepage Article Feed Titles */
body .postShorten .postShorten-title,
body .postShorten .postShorten-title a {
    font-family: "Caprasimo", system-ui !important;
    font-weight: normal !important;
    font-size: 2.6rem;
    letter-spacing: 0.5px !important;
}

/* 2. Inside the Article (Top Headers & Cover Images) */
body .post-header .post-title,
body .post-header-cover .post-title {
    font-family: "Berkshire Swash", cursive !important;
    font-weight: normal !important;
    letter-spacing: 1px !important;
}

/* =========================================
   SUF STUDIOS: DYNAMIC PROMO DRAWER
   ========================================= */

/* 1. The Main Hidden Drawer */
#suf-promo-drawer {
    position: fixed;
    top: 75%; /* Places it exactly where you asked */
    right: -320px; /* Hides it completely off the right edge */
    width: 320px;
    transform: translateY(
        -50%
    ); /* Keeps it perfectly vertically centered at the 70% mark */

    background: rgba(240, 240, 240, 0.6); /* Dark frosted glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 12px 0 0 12px;
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.4);

    /* The sliding animation */
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 9998;
}

/* When the JS adds this class, it slides into view! */
#suf-promo-drawer.suf-drawer-open {
    right: 0px !important;
}

/* 2. The Interactive Tab */
#suf-promo-tab {
    position: absolute;
    left: -40px; /* Pushes the tab out to the left of the hidden box */
    top: 20px;
    width: 40px;
    background: #55068a; /* Studio Purple */
    padding: 15px 0;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: -4px 0px 15px rgba(183, 0, 255, 0.4);
    transition: background 0.2s ease;
}

#suf-promo-tab:hover {
    background: #c833ff; /* Lighter purple on hover */
}

/* 3. The Vertical Text */
.suf-vertical-text {
    writing-mode: vertical-rl; /* Turns the text sideways! */
    text-orientation: mixed;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* 4. The "Live" Pulsing Dot Animation */
.suf-live-pulse {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    /* The animation calls the keyframes below */
    animation: suf-radar-pulse 2s infinite;
}

@keyframes suf-radar-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 5. Typography Inside the Drawer */
#suf-promo-content {
    padding: 25px;
}

#suf-promo-content h3 {
    color: #41294c !important;
    margin-top: 0 !important;
    font-size: 1.7rem !important;
    font-family: "Caprasimo" !important;
    border-bottom: none !important;
}

#suf-promo-content p {
    color: #464646 !important;
    font-size: 1.4rem !important;
    font-family: "Montserrat", sans-serif !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

.suf-promo-btn {
    display: block;
    text-align: center;
    background: #55068a;
    color: #ffffff !important;
    padding: 4px;
    border-radius: 4px;
    font-weight: 700;
    font-family: "Carter One" !important;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.suf-promo-btn:hover {
    transform: translateY(-2px);
}

/* =========================================
   SUF STUDIOS: BASE MESH GRADIENT
   ========================================= */

/* Target ONLY the main reading column, protecting the sidebar */
#main {
    /* The 93% Translucent Base (Light mode) */
    background-color: rgba(245, 245, 245, 0.8) !important;

    /* The Frosted Glass Blur */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    /* The Glowing Mesh Orbs */
    background-image:
        radial-gradient(at 0% 0%, rgba(183, 0, 255, 0.11) 0px, transparent 50%),
        radial-gradient(
            at 100% 100%,
            rgba(100, 0, 200, 0.12) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 80% 50%,
            rgba(0, 150, 255, 0.08) 0px,
            transparent 50%
        ) !important;

    /* Keeps the gradient locked in place while the user scrolls */
    background-size: cover;
}

/* =========================================
   SUF STUDIOS: SIDEBAR GLASS BUTTONS
   ========================================= */

#sidebar .sidebar-buttons .sidebar-button-link {
    /* 1. The Glass Background */
    background-color: rgba(74, 140, 255, 0.2) !important; /* 60% White */
    backdrop-filter: blur(1px); /* Blurs the mountain behind the button */
    -webkit-backdrop-filter: blur(1px);

    /* 2. The Shape & Uniformity */
    border-radius: 18px !important; /* Smooth, modern rounded corners */
    display: flex !important;
    align-items: center !important;
    margin: 4px 20px !important; /* Pushes the buttons slightly away from the edges */
    padding: 0.2px 7px !important; /* Plumps the button up */

    /* 3. Text & Contrast Fixes */
    /* color: #1a1a1a !important; /* Dark, sharp text for contrast against the white glass */
    /* text-shadow: none !important; /* Turns off the heavy black inline shadow so it doesn't look muddy on white */
    /* transition: all 0.2s ease !important; */
    /* border: 0px solid rgba(255, 255, 255, 0.4) !important; /* Tiny highlight edge */
}

/* Make the icons pop with your Studio Purple! */
/* #sidebar .sidebar-buttons .sidebar-button-icon {
    color: #b700ff !important;
    margin-right: 15px !important; /* Gives breathing room between the icon and text */
/*}

/* The Hover Animation */
#sidebar .sidebar-buttons .sidebar-button-link:hover {
    background-color: rgba(
        74,
        140,
        255,
        0.3
    ) !important; /* Gets brighter when hovered */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Soft shadow appears below it */
}

/* =========================================
   SUF STUDIOS: THE ABSOLUTE POSITIONING KILLER
   ========================================= */

/* 1. Force the main card to be a clean vertical stack */
body article.postShorten {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

/* 2. Target ANY thumbnail wrapper, kill its float, and force it to the top */
body article.postShorten [class*="thumbnail"] {
    position: static !important; /* Kills the theme's absolute/relative traps */
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    order: -1 !important; /* Forces the wrapper above the text */
}

/* 3. STRIP the centering hacks from the image and cage it properly */
body article.postShorten [class*="thumbnail"] img {
    position: static !important; /* Brings the image back into document flow */
    transform: none !important; /* Kills the hidden translate(-50%) math */
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    object-fit: cover !important; /* Keeps the 16:9 ratio perfect */
    border-radius: 8px !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* 4. Let the text flow naturally below */
body article.postShorten .postShorten-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: static !important;
    float: none !important;
    padding: 0 !important;
}

/* =========================================
   SUF STUDIOS: FEED SUMMARY SPACING FIX
   ========================================= */

/* Adds healthy breathing room between the summary text and the Date/Category footer */
body .postShorten .postShorten-excerpt {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    line-height: 1.6 !important;
}

/* =========================================
   SUF STUDIOS: NESTED DETAILS UI
   ========================================= */

/* 1. The Main Outer Box */
.suf-master-details {
    font-weight: 600;
    background: #4ebbb0;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 10px;
    margin: 5px 0;
    transition: background 0.5s ease;
    box-shadow: 0 4px 15px rgba(64, 154, 144, 0.4);
}

/* The Hover State (Your Custom Code!) */
.suf-master-details:hover {
    background: #4ebbb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 154, 144, 0.4);
}

/* 2. The Main "Click Me" Title */
.suf-master-details > summary {
    color: #ffffff; /* Studio Purple */
    font-size: 1.5rem;
    font-family: "Caprasimo", system-ui;
    cursor: pointer;
    outline: none;
    letter-spacing: 1px;
    text-align: center;
}

/* 3. The Container for the Nested Items */
.suf-nested-wrap {
    margin-top: 15px;
    padding-left: 15px; /* Indents the sub-menus */
    border-left: 4px solid #ffffff; /* Sleek purple accent line on the left */
}

/* 4. The Nested Titles */
.suf-nested-wrap details summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    outline: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.suf-nested-wrap details summary:hover {
    color: #c80280;
}

/* 5. The Nested Text */
.suf-nested-wrap p {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
    padding-left: 15px; /* Indents the text slightly away from the drop-down arrow */
}

/* =========================================
   SUF STUDIOS: SMART YOUTUBE PROMO EMBED
   ========================================= */

.suf-yt-promo-box {
    margin: 30px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 1. The Image Wrapper */
.suf-yt-thumbnail-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.suf-yt-thumbnail-wrapper:hover {
    transform: translateY(-3px); /* Subtle lift on hover */
}

/* 2. The Auto-Fetched Image */
.suf-yt-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.suf-yt-thumbnail-wrapper:hover .suf-yt-image {
    filter: brightness(
        0.9
    ); /* Dims the image slightly on hover to make the play button pop */
}

/* 3. The Play Button Overlay (Glassmorphism!) */
.suf-yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 55px;
    background: rgba(45, 45, 50, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 3rem;
    padding-left: 5px; /* Optically centers the play triangle */
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.suf-yt-thumbnail-wrapper:hover .suf-yt-play-btn {
    border-color: #b700ff;
    box-shadow: 0 0 30px rgba(183, 0, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 4. The Fallback Button below */
.suf-yt-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    text-align: center !important;

    /* FIX: Stops the button from bleeding off the right edge of mobile screens */
    box-sizing: border-box !important;

    background: rgba(204, 0, 0, 1);
    color: #ffffff !important;
    font-family: "Caprasimo", system-ui;
    padding: 6px 25px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 1.5rem;
    max-width: 500px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

.suf-yt-fallback-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: translateY(-2px);
}

/* =========================================
   SUF STUDIOS: YT BOTTOM ROW LAYOUT
   ========================================= */
.suf-yt-bottom-row {
    display: flex;
    width: 100%;
    max-width: 700px;
    gap: 25px;
    align-items: flex-start; /* CRITICAL: Prevents the YT button from stretching downward when details expand */
    justify-content: space-between;
}

/* Left side (Button) */
.suf-yt-btn-column {
    flex: 0 0 auto; /* Tells the button not to stretch */
}

/* Right side (Details) */
.suf-yt-details-column {
    flex: 1 1 auto; /* Tells the details box to fill the remaining space */
    min-width: 0;
}

/* Strip the top margin off the details box so it aligns with the YT button perfectly */
.suf-yt-details-column .suf-master-details {
    margin-top: 0 !important;
}

/* Update the button column to allow side-by-side buttons */
.suf-yt-btn-column {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Space between the Red button and your Green button */
}

/* 5. The Custom 3rd Button (Base State) */
.suf-vid3rd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    text-align: center !important;

    /* FIX: Stops the button from bleeding off the right edge of mobile screens */
    box-sizing: border-box !important;

    background: #59c855;
    max-width: 500px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(89, 200, 85, 0.5);
    color: #ffffff !important;
    font-family: "Caprasimo", system-ui !important;
    padding: 6px 25px;
    border-radius: 12px;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* The Hover State (Your Custom Code!) */
.suf-vid3rd-button:hover {
    background: #59c855;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(89, 200, 85, 0.5);
    border-color: #59c855;
}

/* =========================================
   SUF STUDIOS: MOBILE LAYOUT OVERRIDES
   ========================================= */
@media (max-width: 768px) {
    /* 1. Force the main layout to stack vertically but stretch to the edges */
    .suf-yt-bottom-row {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    /* 2. Keep the two top buttons side-by-side! */
    .suf-yt-btn-column {
        flex-direction: row !important;
        width: 100% !important;
        justify-content: space-between !important;
        gap: 10px !important; /* Slightly tighter gap for mobile */
    }

    /* 3. Force the buttons to perfectly split the width 50/50 */
    .suf-yt-fallback-btn,
    .suf-vid3rd-button {
        flex: 1 1 0 !important; /* The magic rule: Forces exactly equal widths regardless of text length */
        padding: 5px 5px !important; /* Slimmer horizontal padding to fit small screens */
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
        white-space: nowrap !important; /* Prevents awkward text stacking */
    }

    /* 4. Force the Details block to take the full width below them */
    .suf-yt-details-column {
        width: 100% !important;
        margin: 0 !important;
    }

    .suf-master-details {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Center the main "Info, Credits..." Title on Mobile! */
    .suf-master-details > summary {
        text-align: center !important;
    }
}

/* =========================================
   MOBILE FIX: YT/PEERTUBE EMBED BUTTONS
   ========================================= */
@media only screen and (max-width: 768px) {
    /* Stack the buttons and the details box on top of each other */
    .suf-yt-bottom-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    /* Make the button column take up the full screen width */
    .suf-yt-btn-column {
        width: 100% !important;
        flex-direction: column !important; /* Stacks multiple buttons if present */
        gap: 15px !important;
    }

    /* Force the actual buttons to stretch full width and center text */
    .suf-yt-fallback-btn,
    .suf-vid3rd-button {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
}

/* =========================================
   SUF STUDIOS: THE UNBREAKABLE DARK MODE (V3 FINAL)
   ========================================= */

/* 1. TEXT BLANKET: Fix Muddy/Yellow Text */
/* Removed the aggressive text-fill-color so child buttons and links naturally keep their own colors! */
body.suf-is-dark p,
   body.suf-is-dark h1,
   body.suf-is-dark h2,
   body.suf-is-dark h3,
   body.suf-is-dark h4,
   body.suf-is-dark h5,
   body.suf-is-dark h6,
   body.suf-is-dark li,
   body.suf-is-dark .post-content span, /* Your dotted tooltips */
   body.suf-is-dark .postShorten-excerpt {
    color: #e3e3e3 !important;
}

/* 1.5. HEADER & UI ICONS */
/* These are strictly targeted so they don't turn yellow, without affecting the rest of the site */
body.suf-is-dark .header-title-link,
body.suf-is-dark .header-right-picture,
body.suf-is-dark .header-right-picture i,
body.suf-is-dark .btn-menu,
body.suf-is-dark .btn-menu i {
    color: #e3e3e3 !important;
    -webkit-text-fill-color: #e3e3e3 !important;
}

body.suf-is-dark .post-content a:hover,
body.suf-is-dark .postShorten-excerpt a:hover,
body.suf-is-dark .postShorten-excerpt_link:hover {
    color: #b700ff !important; /* Studio Purple on hover */
    -webkit-text-fill-color: #b700ff !important;
}

/* 2. TEXT EXCEPTIONS: Restore your custom Studio colors! */
body.suf-is-dark .suf-welcome-banner h2 {
    color: #e49ce4 !important;
    -webkit-text-fill-color: #e49ce4 !important;
}

/* Pink Article Titles + The Hover Effect */
body.suf-is-dark .postShorten .postShorten-title a {
    color: #c788c9 !important;
    -webkit-text-fill-color: #c788c9 !important;
    transition: all 0.2s ease !important;
}

body.suf-is-dark .postShorten .postShorten-title a:hover {
    color: #b700ff !important;
    -webkit-text-fill-color: #b700ff !important;
}

/* 3. THE STEALTH SEPARATORS (Border-Image Hack) */
/* Dark Reader alters border-color, but totally ignores border-image gradients! */

/* REMOVED .post-meta so the date/category block stays clean! */
body.suf-is-dark .postShorten,
body.suf-is-dark .suf-welcome-banner,
body.suf-is-dark .post-footer {
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.25)
        )
        1 !important;
}

/* Fix the metadata top border in articles ONLY for the bottom footer */
body.suf-is-dark .post-footer {
    border-top: 1px solid transparent !important;
}

/* Prevent the very last article from having an awkward floating line */
body.suf-is-dark .postShorten:last-of-type {
    border-bottom: none !important;
    border-image: none !important;
}

/* Fix native <hr> tags inside your markdown articles */
body.suf-is-dark hr {
    border: none !important;
    background-color: transparent !important;
    border-top: 1px solid transparent !important;
    border-image: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.25)
        )
        1 !important;
    height: 0 !important;
}

/* Protect the STUDIO NEWS pulsing dot from Dark Reader */
body.suf-is-dark .suf-live-pulse {
    background-color: transparent !important;
    /* Dark Reader cannot hack an encoded image file! */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: none !important;
}

/* PROTECT BUTTONS: Stop Dark Mode from turning button text purple on hover! */
body.suf-is-dark .post-content a.suf-vault-btn:hover,
body.suf-is-dark .post-content a.suf-vid3rd-button:hover,
body.suf-is-dark .post-content a.suf-yt-fallback-btn:hover,
body.suf-is-dark #suf-native-card a.suf-vid3rd-button:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* =========================================
   SUF STUDIOS: TABLET "GLASS ORB" DOCK (MEDIUM SIDEBAR FIX)
   ========================================= */

/* Targets ONLY tablet screens where the sidebar is in "Icon Only" mode */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* 1. Shrink the bleeding pills into perfect circles */
    #sidebar .sidebar-buttons .sidebar-button-link {
        width: 45px !important;
        height: 45px !important;
        padding: 0 !important;
        margin: 12px auto !important; /* Centers the orb perfectly in the narrow sidebar */
        justify-content: center !important;
        border-radius: 50% !important; /* The magic rule that makes it a circle */
    }

    /* 2. Re-center the icons inside the new orbs */
    #sidebar .sidebar-buttons .sidebar-button-icon {
        margin-right: 0 !important; /* Kills the spacing meant for text */
        font-size: 1.8rem !important; /* Bumps the icon size slightly */
    }

    /* 3. Ensure all text is dead and gone */
    #sidebar .sidebar-buttons .sidebar-button-desc {
        display: none !important;
    }
}

/* =========================================
   SUF STUDIOS: VIDEO HOVER ENGINE (V2)
   ========================================= */

/* 1. The Container (High Specificity to beat the Absolute Killer!) */
body article.postShorten .suf-thumb-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    transform: translateZ(
        0
    ) !important; /* Fixes rounded corner clipping on Safari/iOS */
}

/* 2. The Static Image (Bottom Layer) */
body article.postShorten .suf-static-thumb {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: opacity 0.4s ease-in-out !important;
}

/* 3. The Animated Video (Top Layer - Hidden by default) */
body article.postShorten .suf-video-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease-in-out !important;
    pointer-events: none !important; /* CRITICAL: Lets your mouse click pass through the video to the link underneath! */
}

/* 4. The Crossfade */
.suf-thumb-wrapper:hover .suf-static-thumb {
    opacity: 0 !important;
}
.suf-thumb-wrapper:hover .suf-video-thumb {
    opacity: 1 !important;
}

/* =========================================
   SUF STUDIOS: DYNAMIC NATIVE CARD UI
   ========================================= */

/* 1. The Magic Fade (Hides the site to reveal the cover image) */
#blog {
    transition: opacity 0.4s ease !important;
}

body.suf-vault-active #blog {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. The Invisible Overlay Container */
#suf-native-vault {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important; /* Forces card to the top half */
    padding-top: 10vh !important; /* Distance from ceiling */
    pointer-events: none !important; /* Lets clicks pass through when closed */
    visibility: hidden !important;
    transition: visibility 0.4s ease !important;
}

#suf-native-vault.suf-vault-open {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 3. The Drop-Down Card (Polished Glass & Mesh) */
#suf-native-card {
    /* The 93% Translucent Base */
    background-color: rgba(245, 245, 245, 0.93) !important;

    /* The Glowing Mesh Orbs (Matches your Main BG) */
    background-image:
        radial-gradient(at 0% 0%, rgba(183, 0, 255, 0.11) 0px, transparent 50%),
        radial-gradient(
            at 100% 100%,
            rgba(100, 0, 200, 0.12) 0px,
            transparent 50%
        ),
        radial-gradient(
            at 80% 50%,
            rgba(0, 150, 255, 0.08) 0px,
            transparent 50%
        ) !important;

    /* The Frosted Glass Blur */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;

    box-sizing: border-box !important; /* FIX: Forces the 80px padding inside the card! */
    width: calc(
        100% - 20px
    ) !important; /* FIX: Guarantees exactly a 10px gap on left and right */
    margin: 0 auto !important; /* FIX: Absolute mechanical centering */
    max-width: 750px !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    padding: 45px 40px !important;
    border-radius: 8px !important; /* Slightly rounder, modern corners */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;

    transform: translateY(-50px) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative !important;
}

#suf-native-vault.suf-vault-open #suf-native-card {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Mobile Fix for Vault Padding */
@media only screen and (max-width: 768px) {
    #suf-native-card {
        padding: 30px 20px !important; /* Shrinks the internal padding so text has more room on phones */
    }
}

/* 3.5. Light Mode Typography */
#suf-native-card .suf-card-payload h2 {
    color: #5d3c6e !important; /* Studio Purple */
    font-family: "Caprasimo", system-ui !important;
    text-align: center !important;
    font-size: 2.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    border-bottom: none !important;
}

/* THE FIX: Global Standard Markdown Text inside the Vault! */
#suf-native-card .suf-card-payload p,
#suf-native-card .suf-card-payload li {
    color: #464646 !important; /* Crisp Dark Grey */
    font-size: 1.6rem !important; /* Bumped up for effortless reading! */
    line-height: 1.6 !important;
}

#suf-native-card .suf-card-payload a {
    font-size: 2rem !important;
    font-weight: 250 !important;
    font-family: "Caprasimo", system-ui !important;
}

/* Ensures bullet points have good breathing room */
#suf-native-card .suf-card-payload li {
    margin-bottom: 10px !important;
}

/* 4. The Close Button */
#suf-native-close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #999999 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}

#suf-native-close:hover {
    color: #b700ff !important;
}

/* 5. Dark Mode Support */
body.suf-is-dark #suf-native-card {
    /* 93% Dark Base */
    background-color: rgba(45, 45, 50, 0.83) !important;

    /* Slightly brighter Mesh Orbs to punch through the dark */
    background-image:
        radial-gradient(at 0% 0%, rgba(183, 0, 255, 0.15) 0px, transparent 50%),
        radial-gradient(
            at 100% 100%,
            rgba(100, 0, 200, 0.15) 0px,
            transparent 50%
        ),
        radial-gradient(at 80% 50%, rgba(0, 150, 255, 0.1) 0px, transparent 50%) !important;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8) !important;
}

body.suf-is-dark #suf-native-card .suf-card-payload h2 {
    color: #e49ce4 !important; /* Your signature Dark Mode Pink */
    -webkit-text-fill-color: #e49ce4 !important;
}

body.suf-is-dark #suf-native-card .suf-card-payload p,
body.suf-is-dark #suf-native-card .suf-card-payload li {
    color: #e3e3e3 !important; /* Crisp White Text */
    -webkit-text-fill-color: #e3e3e3 !important;
}

/* =========================================
   SUF STUDIOS: VAULT BUTTON STYLE
   ========================================= */

a.suf-vault-btn {
    display: flex !important; /* Changed from inline-block/inline-flex */
    width: 250px !important; /* Prevents it from stretching full width */
    margin: 0 auto !important; /* The magic rule that pushes it to the center! */
    justify-content: center !important;
    align-items: center !important;
    background: #55068a !important; /* Deep Studio Purple */
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 8px !important;
    font-family: "Caprasimo", system-ui !important;
    font-size: 1.4rem !important;
    font-weight: normal !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(85, 6, 138, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

a.suf-vault-btn:hover {
    background: #b700ff !important; /* Bright Neon Purple on hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(183, 0, 255, 0.6) !important;
    color: #ffffff !important;
}

/* =========================================
   SUF STUDIOS: SMART COLUMN CONTAINERS
   ========================================= */

/* 1. Tell the browser to monitor the width of grids and cards ONLY */
.suf-grid-box,
.suf-card-payload {
    container-type: inline-size;
}

/* 2. THE MAGIC RULE: If the column shrinks below 320px, rescue the buttons! */
@container (max-width: 320px) {
    /* Targets ONLY the Vault Buttons inside those squished grids */
    a.suf-vault-btn {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 1.25rem !important;
    }
}

/* =========================================
   SUF STUDIOS: ICON ROW LAYOUT
   ========================================= */

.suf-icon-row {
    display: flex !important;
    align-items: center !important; /* Centers the text vertically with the image */
    gap: 20px !important; /* The space between the image and the text */
    margin-bottom: 25px !important;
}

.suf-icon-row img {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important; /* CRITICAL: Prevents mobile screens from squishing your icon! */
    object-fit: contain !important;
}

.suf-icon-text {
    display: flex !important;
    flex-direction: column !important; /* Stacks the Title and Description */
    gap: 5px !important;
}

/* Strips the default margins off the paragraph so it stacks tightly */
.suf-icon-text p {
    margin: 0 !important;
    font-size: 1.4rem !important;
}

.suf-icon-text a {
    font-size: 1.7rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* =========================================
   SUF STUDIOS: GRID LAYOUT SYSTEM (V2)
   ========================================= */
.suf-grid-wrapper {
    display: grid !important;

    /* THE MAGIC FORMULA: Automatically create as many columns as possible that are at least 280px wide. If two can't fit, drop to 1! */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;

    gap: 30px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    align-items: stretch !important; /* Forces both boxes to be the exact same height! */
}

/* Bulletproofing against Hugo's invisible <p> tags */
.suf-grid-wrapper > * {
    min-width: 0 !important;
}

.suf-grid-box {
    background-color: rgba(128, 128, 128, 0.11) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
}

.suf-grid-box {
    background-color: rgba(128, 128, 128, 0.11) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    border: none !important; /* REMOVED the transparent border hack */
}

/* Premium Dark Mode support for the Grid Boxes */
body.suf-is-dark .suf-grid-box {
    background-color: rgba(45, 45, 50, 0.4) !important;
    border: none !important; /* NO borders that change the physical size */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important; /* Draws a 1px white line INSIDE the box! */
}

/* =========================================
   SUF STUDIOS: FEDIVERSE COMMENTS ENGINE
   ========================================= */
.suf-fedi-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.suf-fedi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.suf-fedi-header h2 {
    margin: 0 !important;
    border-bottom: none !important;
    font-family: "Caprasimo" !important; /* Semicolon moved to the end */
    font-weight: 200 !important; /* Semicolon moved to the end */
    letter-spacing: 0.5px;
}

/* Individual Comment Box */
.suf-fedi-comment {
    background-color: rgba(128, 128, 128, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

body.suf-is-dark .suf-fedi-comment {
    background-color: rgba(45, 45, 50, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.suf-fedi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.suf-fedi-meta {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.suf-fedi-author {
    font-weight: bold;
    font-size: 1.2rem;
    color: #5d3c6e; /* Studio Purple */
}

body.suf-is-dark .suf-fedi-author {
    color: #e49ce4;
}

.suf-fedi-content p {
    margin: 5px 0 0 0 !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
}

/* Fediverse Scrolling & Button UX */
.suf-fedi-scrollable {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px; /* Gives the scrollbar room */
}

/* Custom Scrollbar for the Comments Box */
.suf-fedi-scrollable::-webkit-scrollbar {
    width: 6px;
}
.suf-fedi-scrollable::-webkit-scrollbar-track {
    background: rgba(128, 128, 128, 0.05);
    border-radius: 4px;
}
.suf-fedi-scrollable::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 4px;
}

/* The Show More Button */
.suf-fedi-show-more {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px dashed rgba(128, 128, 128, 0.3);
    color: inherit;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: "Caprasimo";
    font-weight: 200;
    transition: all 0.2s ease;
}

.suf-fedi-show-more:hover {
    background: rgba(128, 128, 128, 0.2);
    border-style: solid;
}

/* --- FORCE UNIFORM API FONT SIZING --- */
.suf-fedi-content,
.suf-fedi-content p,
.suf-fedi-content span,
.suf-fedi-content a {
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

/* Make mentioned usernames a nice studio purple/pink */
.suf-fedi-content a.mention {
    color: #e49ce4 !important;
    text-decoration: none !important;
}

/* --- THREADED REPLY STYLING --- */
.suf-fedi-reply-line {
    border-left: 2px solid rgba(128, 128, 128, 0.3);
    border-radius: 0 12px 12px 0;
    padding-left: 15px !important;
}

/* =========================================
   SUF STUDIOS: UNIVERSAL BUTTON SYSTEM
   ========================================= */

/* The Row Wrapper (Centers multiple buttons) */
.suf-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box !important;
}

/* Base Button Style */
.suf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Caprasimo", system-ui;
    padding: 8px 25px;
    border-radius: 12px;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    width: fit-content;
    box-sizing: border-box !important;
}

.suf-btn:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Color Tags */
.suf-btn-red {
    background: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.5);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}
.suf-btn-blue {
    background: #1976d2;
    border: 1px solid rgba(25, 118, 210, 0.5);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}
.suf-btn-green {
    background: #388e3c;
    border: 1px solid rgba(56, 142, 60, 0.5);
    box-shadow: 0 4px 15px rgba(56, 142, 60, 0.4);
}
.suf-btn-orange {
    background: #f57c00;
    border: 1px solid rgba(245, 124, 0, 0.5);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
}
.suf-btn-purple {
    background: #7b1fa2;
    border: 1px solid rgba(123, 31, 162, 0.5);
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}
.suf-btn-blurple {
    background: #6364ff;
    border: 1px solid rgba(99, 100, 255, 0.5);
    box-shadow: 0 4px 15px rgba(99, 100, 255, 0.4);
} /* Mastodon Color */

/* Protect Dark Mode Hover */
body.suf-is-dark .post-content a.suf-btn:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Mobile Overrides: Stack & Stretch */
@media only screen and (max-width: 768px) {
    .suf-btn-row {
        flex-direction: column;
        align-items: stretch;
    }
    .suf-btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================
   SUF STUDIOS: NATIVE FEDIVERSE EMBED
   ========================================= */
.suf-fedi-embed-card {
    background-color: rgba(128, 128, 128, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(128, 128, 128, 0.2);
    box-sizing: border-box !important; /* <--- FIX: Keeps the card inside the screen */
    width: 100% !important;
}

body.suf-is-dark .suf-fedi-embed-card {
    background-color: rgba(45, 45, 50, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: none;
}

.suf-fedi-embed-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.suf-fedi-embed-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.suf-fedi-embed-author {
    font-size: 1.6rem;
    font-weight: bold;
    color: #5d3c6e;
    margin: 0;
    line-height: 1.2;
}
body.suf-is-dark .suf-fedi-embed-author {
    color: #e49ce4;
}
.suf-fedi-embed-handle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 0;
}

.suf-fedi-embed-content {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Styles Lemmy Titles natively! */
.suf-fedi-embed-content h3 {
    margin-top: 0;
    border-bottom: none;
    font-family: system-ui;
}

.suf-fedi-embed-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* =========================================
   SUF STUDIOS: ORIGINAL TOAST UI
   ========================================= */
#suf-toast {
    position: fixed !important;
    bottom: 50px !important;
    right: 20px !important; /* Anchors to the right edge */
    background: #2d2d32 !important; /* Your original dark grey */
    color: #f5f3ef !important; /* Your original off-white */
    padding: 15px 20px !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6) !important;
    z-index: 999999 !important;
    max-width: 320px !important;
    border-left: 4px solid #bea3cb !important; /* Your original purple accent */

    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;

    /* The sliding animation math */
    transition: all 0.4s ease-in-out !important;
    opacity: 0 !important;
    transform: translateX(120%) !important; /* Hidden off-screen to the right */
    pointer-events: none !important;
}

/* The Trigger Class */
#suf-toast.suf-toast-show {
    opacity: 1 !important;
    transform: translateX(0) !important; /* Slides into position */
    pointer-events: auto !important;
}

#suf-toast-msg {
    line-height: 1.4 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

#suf-toast-close {
    background: none !important;
    border: none !important;
    color: #bea3cb !important;
    font-size: 16px !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    padding: 0 !important;
    font-weight: bold !important;
    transition: color 0.2s ease !important;
}

#suf-toast-close:hover {
    color: #ffffff !important;
}

/* =========================================
   SUF STUDIOS: TOAST LIGHT MODE OVERRIDES
   ========================================= */
body:not(.suf-is-dark) #suf-toast {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #333333 !important;
    border-left: 4px solid #b700ff !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
}

body:not(.suf-is-dark) #suf-toast-msg {
    color: #333333 !important;
    font-weight: 600 !important;
}

body:not(.suf-is-dark) #suf-toast-close {
    color: #888888 !important;
}

body:not(.suf-is-dark) #suf-toast-close:hover {
    color: #b700ff !important;
}

/* =========================================
   SUF STUDIOS: VAULT NATIVE TYPOGRAPHY MATCH
   ========================================= */

/* 1. Force the Vault to perfectly match Tranquilpeak's default article text! */
#suf-native-card,
#suf-native-card p,
#suf-native-card li,
#suf-native-card div {
    font-family:
        "Merriweather", "PT Serif", Georgia, "Times New Roman", serif !important;
    font-size: 1.5rem !important;
    line-height: 1.6 !important;
    color: #777777 !important; /* Tranquilpeak's standard crisp dark grey */
    font-weight: 400 !important;
}

/* Add breathing room for paragraphs inside the card */
#suf-native-card p {
    margin-bottom: 25px !important;
}

/* 2. Premium Dark Mode Text Adaptation */
body.suf-is-dark #suf-native-card,
body.suf-is-dark #suf-native-card p,
body.suf-is-dark #suf-native-card li,
body.suf-is-dark #suf-native-card div {
    color: #e3e3e3 !important; /* Standard crisp white for dark mode */
}

/* 3. Keep Vault Headings bold and branded! */
#suf-native-card h1,
#suf-native-card h2,
#suf-native-card h3 {
    font-family: "Caprasimo", system-ui, sans-serif !important;
    color: #5d3c6e !important; /* Studio Purple */
    font-weight: 200 !important;
    border-bottom: none !important;
}

body.suf-is-dark #suf-native-card h1,
body.suf-is-dark #suf-native-card h2,
body.suf-is-dark #suf-native-card h3 {
    color: #e49ce4 !important; /* Studio Pink */
}

/* 4. Fix Code Blocks so they never vanish */
#suf-native-card code {
    font-family: monospace !important;
    font-size: 1.2rem !important;
    color: darkslategray !important;
    background: rgba(128, 128, 128, 0.05) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

body.suf-is-dark #suf-native-card code {
    color: #e49ce4 !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

/* =========================================
   SUF STUDIOS: EMAIL BUTTON SIZING OVERRIDE
   ========================================= */
a.suf-vid3rd-button[href^="mailto:"] {
    font-family: "Agbalumo" !important;
    font-size: 1.6rem !important; /* Massive bump so you can definitely see it working */
    padding: 12px 25px !important; /* Plumps the button up to match the giant text */
    line-height: 1.2 !important;
}
