/* General Styles */
.container {
    text-align: left; 
    /* padding: 0 20px; */
}

/* Fix for Bricks Theme centering */
#glossary-term-main .brxe-archive-title,
#glossary-term-main .bricks-archive-title-wrapper,
#glossary-term-main .brxe-container {
    text-align: left !important;
}

/* WCAG 2.1 Accessibility Utilities */
.sr-only,
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.sr-only:focus,
.screen-reader-text:focus {
    clip: auto !important;
    position: static !important;
    height: auto;
    width: auto;
    overflow: visible;
    background-color: #f1f1f1;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
}

/* Skip Links */
.skip-link {
    background-color: #f1f1f1;
    color: #21759b;
    text-decoration: none;
    padding: 8px 16px;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 100000;
    transition: top 0.3s;
    border: 2px solid transparent;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
    border-color: #0073e6;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glossary-az-nav a {
        border: 2px solid currentColor;
    }
    
    .glossary-az-nav a:focus {
        outline: 4px solid #0073e6;
        outline-offset: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Section-based Layout for Single Term Pages */
.glossary-definition-section {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

.glossary-synonyms-section {
    margin-bottom: 1rem;
    padding: 1.5rem 0;
}

.glossary-topics-section {
    margin-bottom: 0;
    padding: 1.5rem 0;
}

.glossary-links-section {
    margin-bottom: 1rem;
    padding: 1.5rem 0;
}

.glossary-navigation-section {
    padding-top: 2rem;
}

/* Back to Glossary Button */
.glossary-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.glossary-back-link:hover {
    color: #000;
    text-decoration: underline;
}

.glossary-back-arrow {
    font-size: 1.2em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.glossary-back-link:hover .glossary-back-arrow {
    transform: translateX(-2px);
}

/* Alternative: Replace arrow with CSS icon */
.glossary-back-arrow.css-arrow {
    font-size: 0; /* Hide the text arrow */
    position: relative;
    width: 12px;
    height: 12px;
}

.glossary-back-arrow.css-arrow::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

/* Section Headings */
.glossary-synonyms-section h2,
.glossary-topics-section h2,
.glossary-links-section h2 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    font-size: 2em;
}

/* Definition Section Specific */
.glossary-definition-section .entry-content {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Links Section - no indentation, aligned left */
.glossary-external-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.glossary-external-links li {
    margin: 0.5rem 0;
    padding: 0;
}

.glossary-az-nav {
    margin-bottom: 1em;
    margin-right: 20px; /* Add 20px right margin */
    font-size: 2em;
    text-align: left; /* Ensure left alignment */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 4px; /* Balanced gap - not too tight, not too loose */
    align-items: baseline; /* Baseline alignment for all letters */
    line-height: 1.2; /* Consistent line height */
    overflow-x: auto; /* Allow horizontal scroll if needed on very small screens */
}

.glossary-az-nav a {
    margin: 0; /* Remove inconsistent spacing */
    padding: 4px 6px; /* Consistent padding for touch targets */
    font-weight: normal; /* Default to normal weight - only actives are bold */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1em; /* Use full font size from parent */
    line-height: 1.2; /* Consistent line height */
    display: inline-flex; /* Better baseline alignment */
    align-items: baseline;
    color: #1a1a1a; /* Default black color - will be overridden by specific classes */
}

.glossary-az-nav a:hover {
    text-decoration: underline;
    background-color: #f0f0f0;
}

.glossary-az-nav a:focus {
    outline: 2px solid #0073e6; /* WCAG-compliant focus indicator */
    outline-offset: 2px;
}

.glossary-list dl {
    list-style: none;
    margin: 0 0 1em 0;
    padding: 0;
    text-align: left; /* Ensure left alignment */
}

.glossary-list dt {
    font-weight: 500; /* Match single page term title weight */
    margin-top: 1em;
    font-size: 1.2em;
   /* color: #1a1a1a; /* WCAG-compliant text color */
    text-align: left; /* Ensure left alignment */
}

.glossary-list dd {
    margin-left: 20px; /* Indent definition */
    margin-bottom: 0.5em;
   /* color: #333; /* WCAG-compliant text color */
    text-align: left; /* Ensure left alignment */
}

/* ===================================================
 * REUSABLE EXTERNAL LINK CLASS WITH ANIMATED ARROW
 * =================================================== */

/* Base external link style - can be used anywhere */
.external-link-animated {
    display: inline;
    text-decoration: none;
    color: #0073e6;
    position: relative;
    transition: color 0.2s ease;
}

.external-link-animated:hover {
    text-decoration: underline;
    color: #005bb5;
}

.external-link-animated:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* Animated arrow - appears on hover */
.external-link-animated::after {
    content: " ←";
    transform: rotate(135deg) translateX(-5px);
    display: inline-block;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 2px;
}

.external-link-animated:hover::after {
    opacity: 1;
    transform: rotate(135deg) translateX(0);
}

/* Apply to existing glossary external links */
.glossary-external-link,
.glossary-external-link-url {
    display: inline;
    text-decoration: none;
    color: #0073e6; /* WCAG-compliant link color */
    text-align: left; /* Ensure left alignment */
    position: relative;
    transition: color 0.2s ease;
}

.glossary-external-link:hover,
.glossary-external-link-url:hover {
    text-decoration: underline;
    color: #005bb5; /* Darker blue on hover */
}

.glossary-external-link:focus,
.glossary-external-link-url:focus {
    outline: 2px solid #0073e6; /* WCAG-compliant focus indicator */
    outline-offset: 2px;
}

/* External link arrow - same style as back arrow, hidden by default */
.glossary-external-link::after,
.glossary-external-link-url::after {
    content: " ←";
    transform: rotate(135deg) translateX(-5px); /* Pre-rotated and positioned */
    display: inline-block;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Longer, smoother transition */
    margin-left: 2px;
}

/* Show arrow on hover with smooth slide-in */
.glossary-external-link:hover::after,
.glossary-external-link-url:hover::after {
    opacity: 1;
    transform: rotate(135deg) translateX(0); /* Keep rotation, slide in */
}

/* Spacing and Readability for Glossary Page */
.entry-content > * {
    margin-bottom: 2em;
    text-align: left; /* Ensure left alignment */
}

/* Consistent font sizes for all meta sections on single term pages */
.glossary-synonyms,
.glossary-categories,
.glossary-external-links {
    margin-bottom: 2em; /* Increased from 1.2em for better spacing */
    font-size: 1em; /* Consistent base font size */
    text-align: left; /* Ensure left alignment */
}

/* Meta labels consistent sizing */
.glossary-meta-label {
    font-size: 1em; /* Same as other text */
    margin-bottom: 0.5em; /* Reduce spacing between label and content */
}

/* Single Term Page - Clean H2 Structure */
.synonyms-title,
.topics-title,
.links-title {
    font-size: 1em; /* Same size as original glossary-meta-label */
    font-weight: 600; /* Bold like the original */
    margin: 0 0 0.5em 0; /* Same spacing as glossary-meta-label */
}

.glossary-synonyms {
    font-size: inherit; /* Ensure same size as parent element */
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 8px gap between synonym pills */
    margin: 0;
    padding: 0;
}

/* Synonyms in shortcode listings - inline display */
.glossary-list .glossary-synonyms {
    opacity: 0.7; /* Make synonyms lighter than main text in listings only */
    display: inline; /* Ensure inline display with the term */
    font-style: normal; /* Remove any italic styling */
}

.glossary-single-fields {
    background: #f7f7f7;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 1em;
    text-align: left; /* Ensure left alignment */
}

.glossary-single-fields p {
    margin: 0.4em 0;}

.glossary-category-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 1em 0;
    padding: 0;
    text-align: left; /* Ensure left alignment */
}

.glossary-category-menu li {
    margin: 0;
}

.glossary-category-menu a, .pill-button {
    background: #E4E9EC;
    padding: 6px 14px;
    border: 1px solid #232323;
    border-radius: 16px;
    text-decoration: none;
    color: #232323; /* WCAG-compliant text color */
    font-weight: 500;
    font-size: 1em; /* Consistent font size with other elements */
    transition: background 0.2s, color 0.2s;
    text-align: left; /* Ensure left alignment */
}

.glossary-category-menu a:hover, .pill-button:hover {
    background: #BFCAD1;
    color: #000000; /* Hover effect for pill buttons */
}

.glossary-category-menu a:focus, .pill-button:focus {
    outline: 2px solid #BFCAD1; /* WCAG-compliant focus indicator */
    outline-offset: 2px;
}

/* Auto-linking specific styles */
.glossary-auto-link {
    /* Add any specific styles for auto-linked terms here */
    /* e.g., border-bottom: 1px dotted #0073aa; */
    text-decoration: underline;
    text-decoration-style: dotted;
}

.glossary-footnotes {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    text-align: left; /* Ensure left alignment */
}

.glossary-footnotes h4 {
    margin-bottom: 0.5em;
    font-size: 1em;
    color: #1a1a1a; /* WCAG-compliant text color */
}

.glossary-footnotes ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.glossary-footnotes li {
    margin-bottom: 0.2em;
}

/* Search Form Styles */
.glossary-search-form {
    margin-bottom: 1em;
    text-align: left; /* Ensure left alignment */
}

.glossary-search-form label {
    margin-bottom: 0;
}

.glossary-search-form .search-form {
    display: flex;
    gap: 12px;
    align-items: baseline;
    text-align: left; /* Ensure left alignment */
}

.glossary-search-form .search-field {
    flex: 1;
    width: 450px; /* Increased width to make the search field longer */
    padding: 8px 12px;
    border: 1px solid #232323;
    border-radius: 16px;
    font-size: 1em;
    line-height: 1.1em; /* Added for better vertical alignment */
    outline: none; /* Removed default focus outline */
    transition: border-color 0.2s;
    color: #232323; /* WCAG-compliant text color */
}

.glossary-search-form .search-field:focus {
    border-color: #0073e6; /* WCAG-compliant focus border color */
    outline: 2px solid #0073e6; /* WCAG-compliant focus indicator */
    outline-offset: 2px;
}

.glossary-search-form .search-submit {
    appearance: none; /* Reset default browser styles */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
    background: #000; /* Black background */
    color: #fff; /* White text */
    padding: 8px 16px;
    border: none;
    border-radius: 16px; /* Pill shape */
    font-size: 1em;
    line-height: 1.1em; /* Added for better vertical alignment */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s; /* Smooth transitions */
}

.glossary-search-form .search-submit:hover {
    background: #333; /* Darker black on hover */
}

.glossary-search-form .search-submit:focus {
    outline: 2px solid #0073e6; /* WCAG-compliant focus indicator */
    outline-offset: 2px;
}

.glossary-search-form .search-submit:active {
    background: #000; /* Reset background on click */
}

/* Pills Container Styles */
.glossary-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 1em 0 1em 0; /* Increased top margin to match external links spacing */
    padding: 0;
    text-align: left; /* Ensure left alignment */
}

/* Support both ul/li, dl/dt and div structures for pills */
.glossary-pills-container li,
.glossary-pills-container dt,
.glossary-pills-container > div {
    margin: 0;
    list-style: none;
    padding: 0;
}

/* Glossary Meta Labels - consistent spacing */
.glossary-meta-label {
    margin-bottom: 0.5em; /* Reduce spacing between label and content */
}

/* External Links Section */
.glossary-external-links .glossary-links-list {
    margin-top: 0; /* No top margin - align directly with Links heading */
    margin-bottom: 1em;
    margin-left: 0; /* Align list with "Links" label - no indentation */
    padding-left: 0; /* Remove default padding */
    list-style-position: outside; /* Ensure bullets are outside */
}

.glossary-external-links .glossary-links-list li {
    margin-left: 1em; /* Just enough space for the bullet */
    padding-left: 0;
}

/* Override for single term page - with bullets but aligned left */
.glossary-links-section .glossary-external-links {
    margin: 0;
    padding: 0;
    list-style-type: disc; /* Show bullets */
}

.glossary-links-section .glossary-external-links li {
    margin: 0.5rem 0;
    padding: 0;
    margin-left: 1.2rem; /* Just enough space for the bullet to show */
    list-style-position: outside; /* Bullet outside the content */
}

/* Glossary Archive Page Styles */
.glossary-archive-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Back to original 30/70 split */
    grid-template-rows: auto auto;
    gap: 3em 2em; /* Reduced row-gap for less space between navigation and list */
    margin-bottom: 2em;
    align-items: baseline; /* Ensure baseline alignment across grid items */
}

.glossary-archive-title {
    font-size: 2.5em; /* Match single template title size */
    margin: 0;
    text-align: left;
    grid-column: 1;
    grid-row: 1;
    line-height: 1.2; /* Consistent line height for baseline alignment */
    font-weight: 600; /* Match glossar-term-title weight */
}

/* Alphabetical Navigation - positioned next to title on desktop */
.glossary-az-nav {
    font-size: 1.8em; /* Increased font size for better harmony */
    text-align: left;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 4px; /* Balanced gap - matches shortcode */
    line-height: 1.2; /* Match title line height for baseline alignment */
    margin: 0;
    margin-right: 20px; /* Reduced right margin */
    padding-left: 0; /* Remove any padding to align with list */
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
    align-self: baseline; /* Align with title baseline */
    align-items: baseline; /* Baseline alignment for all letters */
    overflow: visible; /* No scroll - keep all letters visible */
}

/* Tablet Portrait and smaller - switch to single column layout */
@media (max-width: 1024px) {
    .glossary-archive-container {
        grid-template-columns: 1fr !important; /* Single column */
        grid-template-rows: auto auto auto !important; /* Three rows */
        gap: 2em !important;
    }
    
    .glossary-archive-title {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .glossary-az-nav {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-right: 0; /* Remove right margin */
    }
    
    /* Move list to row 3, column 1 */
    .glossary-list {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin: 0;
        padding-left: 0;
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* 15px left and right padding on mobile */
    }
    
    .glossary-archive-title {
        font-size: 2em; /* Smaller title on mobile */
    }
    
    .glossary-az-nav {
        font-size: 1.4em; /* Smaller navigation on mobile */
        gap: 8px; /* More space for touch targets */
    }
}

.glossary-az-nav a {
    margin: 0; /* Remove inconsistent spacing */
    padding: 4px 6px; /* Base padding for all letters */
    font-weight: normal; /* Default to normal weight - only actives are bold */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 1em; /* Use full font size from parent */
    line-height: 1.2; /* Consistent line height */
    display: inline-flex; /* Better baseline alignment */
    align-items: baseline;
    color: #1a1a1a; /* Default black color - will be overridden by specific classes */
}

.glossary-az-nav a.glossary-nav-active {
    color: #0073e6; /* Active letters - blue and clickable */
    background-color: transparent;
    font-weight: bold; /* Only active letters are bold */
    padding: 4px 8px; /* More padding/spacing for active letters */
}

.glossary-az-nav a.glossary-nav-active:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
}

.glossary-az-nav a.glossary-nav-inactive {
    color: #1a1a1a; /* Inactive letters - normal text color like other text */
    cursor: default;
    pointer-events: none;
    font-weight: normal; /* Inactive letters stay normal weight */
    padding: 4px 4px; /* Less padding for inactive letters */
}

.glossary-az-nav a:hover {
    text-decoration: underline;
    background-color: #f0f0f0;
}

.glossary-az-nav a:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* Archive Page Term List */
.glossary-list {
    grid-column: 2; /* Same column as navigation on desktop */
    grid-row: 2; /* Second row on desktop */
    margin: 0; /* Reset margins - grid handles positioning */
    padding-left: 0; /* Ensure no left padding */
}

/* Tablet Portrait and smaller - switch to single column layout */
@media (max-width: 1024px) {
    .glossary-archive-container {
        grid-template-columns: 1fr !important; /* Single column */
        grid-template-rows: auto auto auto !important; /* Three rows */
        gap: 2em !important;
    }
    
    .glossary-archive-title {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .glossary-az-nav {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-right: 0; /* Remove right margin */
    }
    
    /* Move list to row 3, column 1 */
    .glossary-list {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin: 0;
        padding-left: 0;
    }
}

.glossary-list .glossary-list-letterh2 {
    font-size: 1.8em; /* Match archive letter headers */
    margin: 2em 0 0.5em 0;
    color: #1a1a1a; /* Match single template color scheme */
    text-align: left;
    padding-left: 6px; /* Align with navigation links (match their 6px left padding) */
    font-weight: 600; /* Match single template font weight */
}

.glossary-list .glossary-list-letterh2:first-child {
    margin-top: 0; /* Start at same level as navigation */
}

.glossary-list dl {
    margin: 0 0 2em 0;
    padding: 0;
    text-align: left;
}

.glossary-list dt {
    font-weight: 500; /* Match single template weight */
    margin: 0.8em 0 0 0;
    font-size: 1.1em; /* Match single template term size */
    text-align: left;
}

.glossary-list .glossary-term-link {
    color: #0073e6; /* Match single template link color */
    text-decoration: none;
    text-align: left;
    font-weight: 500; /* Match single template link weight */
}

.glossary-list .glossary-term-link:hover {
    text-decoration: underline;
}

.glossary-list .glossary-term-link:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* Back to Glossary Link - should match breadcrumb link styling */
.glossary-back {
    margin-top: 3em !important; /* Increase spacing to match breadcrumb-to-h1 distance */
    margin-bottom: 1em;
}

.glossary-back-link {
    color: #0073e6; /* Same blue as breadcrumb links */
    text-decoration: none;
    font-weight: normal; /* Same weight as breadcrumb links */
}

.glossary-back-link:hover {
    text-decoration: underline;
    color: #005bb5; /* Darker blue on hover */
}

.glossary-back-link:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* Category/Taxonomy Page Styles - harmonisch wie Single Template */
.related-terms-section {
    margin: 2em 0 3em 0; /* Increased bottom margin for better spacing */
}

.related-terms-title {
    font-size: 1em; /* Gleiche Größe wie Single Template H2s */
    margin-bottom: 1em;
    font-weight: 600; /* Wie Single Template */
}

/* OLD: Grid layout no longer needed - now using pills like single page */
/* .glossary-terms-list removed - now using .glossary-pills-container */

.glossary-term-item {
    margin: 0;
}

/* OLD: Term link styles no longer needed - now using pill buttons */
/* .glossary-category-page .glossary-term-link styles removed */

/* Back to Glossary Link in taxonomy pages */
.glossary-category-page .glossary-back {
    margin-top: 3em !important; /* Match single template spacing */
    margin-bottom: 1em;
}

.glossary-category-page .glossary-back-link {
    color: #0073e6;
    text-decoration: none;
    font-weight: 500;
}

.glossary-category-page .glossary-back-link:hover {
    text-decoration: underline;
}

.glossary-category-page .glossary-back-link:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* ===================================================
 * CUSTOMIZABLE GLOSSARY LINK CLASSES
 * =================================================== */

/* Navigation Links - Alphabet A-Z */
.glossary-nav-link-active {
    color: #0073e6; /* Blue for active navigation letters */
    font-weight: bold;
}

.glossary-nav-link-inactive {
    color: #ccc; /* Gray for inactive navigation letters */
    font-weight: normal;
}

/* Term Links - Links to glossary term pages */
.glossary-term-link {
    color: #0073e6; /* Blue for term links */
    font-weight: 500;
    text-decoration: none;
}

.glossary-term-link:hover {
    color: #005bb5; /* Darker blue on hover */
    text-decoration: underline;
}

.glossary-term-link:focus {
    outline: 2px solid #0073e6;
    outline-offset: 2px;
}

/* External Links - Links to external websites */
.glossary-external-link {
    color: #2563eb; /* Different blue for external links */
    font-weight: normal;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.glossary-external-link:hover {
    color: #1d4ed8; /* Darker blue on hover */
    text-decoration: underline;
}

.glossary-external-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.glossary-external-link::after {
    content: "↗";
    font-size: 0.9em;
    display: inline-block;
}

/* Category/Topic Links */
.glossary-category-link {
    color: #059669; /* Green for category links */
    font-weight: normal;
    text-decoration: none;
}

.glossary-category-link:hover {
    color: #047857; /* Darker green on hover */
    text-decoration: underline;
}

.glossary-category-link:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Back to Glossary Links - NOTE: Specific .glossary-back-link styles defined above */
/* These classes are available for customization but the specific styles take precedence */

/* Glossary List No Links Shortcode Styling */
.glossary-list-no-links h2 {
    font-size: 1.8em; /* Match archive letter headers */
    margin: 2em 0 0.5em 0;
    color: #1a1a1a; /* Match single template color scheme */
    text-align: left;
    padding-left: 6px; /* Align with navigation links (match their 6px left padding) */
    font-weight: 600; /* Match single template font weight */
}

.glossary-list-no-links h2:first-child {
    margin-top: 0; /* Start at same level as navigation */
}

.glossary-list-no-links dl {
    margin: 0 0 2em 0;
    padding: 0;
    text-align: left;
}

.glossary-list-no-links dt {
    font-weight: 400; 
    margin: 0 0 0.5em 0;
    padding: 0;
    text-align: left;
}

.glossary-list-no-links dd {
    margin: 0 0 1.5em 1.2em; /* Indent descriptions */
    padding: 0;
    text-align: left;
    line-height: 1.6;
}

/* External links in no-links shortcode - apply bullet point and hover styling */
.glossary-list-no-links .glossary-external-links {
    list-style: disc;
    margin: 0.5em 0 0 1.2em;
    padding: 0;
}

.glossary-list-no-links .glossary-external-links li {
    margin-bottom: 0.3em;
}

/* Ensure external links in no-links shortcode use animated hover styling */
.glossary-list-no-links .external-link-animated,
.glossary-list-no-links .glossary-external-link,
.glossary-list-no-links .glossary-external-link-url,
.glossary-list-no-links .glossary-external-links a {
    display: inline;
    text-decoration: none;
    color: #0073e6;
    position: relative;
    transition: color 0.2s ease;
}

.glossary-list-no-links .external-link-animated:hover,
.glossary-list-no-links .glossary-external-link:hover,
.glossary-list-no-links .glossary-external-link-url:hover,
.glossary-list-no-links .glossary-external-links a:hover {
    text-decoration: underline;
    color: #005bb5;
}

.glossary-list-no-links .external-link-animated::after,
.glossary-list-no-links .glossary-external-link::after,
.glossary-list-no-links .glossary-external-link-url::after,
.glossary-list-no-links .glossary-external-links a::after {
    content: " ←";
    transform: rotate(135deg) translateX(-5px);
    display: inline-block;
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 2px;
}

.glossary-list-no-links .external-link-animated:hover::after,
.glossary-list-no-links .glossary-external-link:hover::after,
.glossary-list-no-links .glossary-external-link-url:hover::after,
.glossary-list-no-links .glossary-external-links a:hover::after {
    opacity: 1;
    transform: rotate(135deg) translateX(0);
}