my-tag {
    /* Flexbox for perfect centering */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Spacing: Reduced by ~25% */
    padding: 0.4rem 0.75rem;
    margin: 0.2rem 0.1rem;
    height: auto;
    
    /* Visuals */
    vertical-align: middle;
    text-decoration: none;
    cursor: default;
    
    /* Theme Variables for Button Look */
    border: 2px solid var(--am-button-border-color);
    border-radius: var(--button-radius);
    color: var(--color-page-text);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    
    /* Font adjustments */
    font-weight: bold;
    font-family: inherit;
    font-size: 0.75em;
    text-transform: uppercase;
    line-height: 1.1; 
    letter-spacing: 0.03em;
}

my-tag:hover {
    border-color: var(--am-button-hover-border-color);
    color: var(--color-page-text);
}

/* Custom Gradient Inline Tags */
gradi-01,
gradi-02,
gradi-03,
gradi-04,
gradi-05,
gradi-06 {
    display: inline;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

gradi-01 {
    background-image: linear-gradient(120deg, #fee140 0%, #fa709a 100%);
}

gradi-02 {
    background-image: linear-gradient(120deg, #2af598 0%, #009efd 100%);
}

gradi-03 {
    background-image: linear-gradient(120deg, #2575fc 0%, #6a11cb 100%);
}

gradi-04 {
    background-image: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
}

gradi-05 {
    background-image: linear-gradient(120deg, #16a085 0%, #f4d03f 100%);
}

gradi-06 {
    background-image: linear-gradient(120deg, #FF057C 0%, #321575 100%);
}

/* Heading & Paragraph Spacing Fixes */
h2 {
    font-weight: 580 !important; /* Globally override h2 to have 580 weight */
}

h2 + h2,
h1 + h2 {
    margin-top: 0.65em !important; /* Preserve custom spacing when H2 follows H1 or H2 */
}

/* Make H1 look identical to H2 only on the Home page */
.pasha-home h1 {
    font-size: var(--h2-font-size) !important;
    line-height: var(--h2-line-height) !important;
    font-weight: 580 !important;
    margin-bottom: 1.5rem !important; /* Match H2 bottom margin */
    letter-spacing: -.016em !important;
}

p + p {
    margin-top: 0.75rem !important;
}

/* Global Blockquote Quote Removal & Clear Defaults */
blockquote {
    quotes: none !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    font-size: var(--h5-font-size) !important; /* Dynamically matches h5 heading size (1.25rem) */
    line-height: 1.55 !important; /* Spacious, elegant line-height */
    font-family: 'Source Serif 4', serif !important; /* Applied Source Serif 4 Font */
    font-style: normal !important; /* Non-italicized, standard upright serif style */
}
blockquote::before,
blockquote::after {
    content: none !important;
}

/* Style the entire quote block parent container with left border line */
am-quote {
    display: block; /* Force block layout for predictable block-level margins */
}

am-quote figure,
figure:has(blockquote) {
    border-left: 1px solid #000000 !important; /* Sleek 1px full black vertical line */
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Add vertical spacing between consecutive stacked quote blocks */
am-quote + am-quote,
am-quote + figure:has(blockquote),
figure:has(blockquote) + am-quote,
figure:has(blockquote) + figure:has(blockquote) {
    margin-top: 2rem !important; /* Breatheable spacing of 2rem between stacked quote blocks */
}

/* Push child text blocks (quote & byline) to the right from the line */
am-quote figure blockquote,
am-quote figure figcaption,
figure:has(blockquote) blockquote,
figure:has(blockquote) figcaption {
    padding-left: 1.5rem !important;
    margin-left: 0 !important;
}

/* Ensure any paragraphs inside blockquotes have clean, custom margins */
blockquote p {
    margin-top: 0 !important; /* Wipe out browser/user-agent unwanted top margins */
    margin-bottom: 0 !important;
    margin-block-start: 0 !important; /* Clear user-agent logical margin properties */
    margin-block-end: 0 !important;
}

blockquote p + p {
    margin-top: 1rem !important; /* Controlled vertical separation between paragraphs */
    margin-block-start: 1rem !important;
}

/* Shrink the large space in figcaption between the em-dash and the text */
blockquote + figcaption::before {
    padding-right: 0.25rem !important;
}

/* Expand Inline Custom Tag Styles */
expand-inline {
    display: inline;
}

.expand-inline-wrapper {
    display: inline;
}

/* Paragraph Support inside Expanded Text */
.expand-expanded-text p {
    display: block !important; /* Force all paragraphs to break to new lines */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-block-start: 0 !important; /* Clear browser logical margin defaults */
    margin-block-end: 0 !important;
    padding: 0 !important;
}

.expand-expanded-text p + p {
    display: block !important;
    margin-top: 1rem !important; /* Controlled vertical space between expanded paragraphs */
    margin-block-start: 1rem !important;
}

.expand-trigger-link {
    display: inline; /* Back to inline so it behaves as standard text stream and glues itself */
    white-space: nowrap; /* Prevents FULL and arrow from splitting */
    background-image: linear-gradient(120deg, #2575fc 0%, #6a11cb 100%); /* Applied gradient-03 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important; /* Removed standard text decoration */
    border-bottom: none !important; /* Removed standard-v1 border underline */
    font-size: 0.8rem; /* Absolute size, guaranteed smaller than standard paragraph text (1rem) */
    font-family: var(--font-family) !important; /* Forces default Inter font, overriding blockquote serif */
    font-weight: normal !important; /* Restored back to normal weight */
    font-style: normal !important; /* Forces standard upright style, overriding blockquote italicization */
    text-transform: uppercase; /* Restored to make it all-caps (FULL →) */
    vertical-align: middle; /* Aligns perfectly in the middle of the text line */
    letter-spacing: 0.05em;
    margin-left: 0.55em; /* Increased spacing to separate it clearly from the text */
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.expand-trigger-link:hover {
    opacity: 1;
    color: var(--am-button-hover-border-color, inherit);
}

/* Expand Inline Segment Highlights */
.highlight-segment {
    display: inline;
    background-image: linear-gradient(120deg, #2575fc 0%, #6a11cb 100%); /* gradient-03 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: currentColor; /* Hides the gradient initially (displays standard text color) */
    transition: -webkit-text-fill-color 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Ultra-fast, responsive fade-in (0.3s) */
}

.highlight-segment.animate-gradient {
    -webkit-text-fill-color: transparent; /* Smoothly unmasks the text, revealing the gradient-03 slowly */
}




