/*************************************************
 * 1. Dhivehi fonts (Faseyha)
 *************************************************/
@font-face {
    font-family: 'Faseyha';
    src: url('https://maldivians4chagos.com/wp-content/uploads/2025/11/faseyha.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Faseyha';
    src: url('https://maldivians4chagos.com/wp-content/uploads/2025/11/MV_Faseyha.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Utility class for Dhivehi content */
.dhivehi,
.dhivehi * {
    font-family: 'Faseyha', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    direction: rtl;
    unicode-bidi: embed;
    text-align: right;
    line-height: 1.8;
}

/* Stronger weight for Dhivehi headings */
.dhivehi h1,
.dhivehi h2,
.dhivehi h3,
.dhivehi h4,
.dhivehi h5,
.dhivehi h6 {
    font-weight: 700;
}

/*************************************************
 * 2. Jetpack / Sharedaddy share buttons
 *************************************************/
.sharedaddy.sd-sharing-enabled {
    text-align: center;
}

.sd-content ul li {
    display: inline-block !important;
    float: none !important;
}

/* Force center alignment for Jetpack official sharing buttons */
.sharedaddy.sd-sharing-enabled {
    text-align: center !important;
}

.sharedaddy.sd-sharing-enabled .sd-content {
    display: inline-block;
}

/* Align "Share this:" text on same line to the left of buttons */
.sharedaddy .sd-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center; /* use flex-start if you prefer left alignment */
    gap: 12px;
    margin-top: 16px;
}

.sharedaddy .sd-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
    order: -1;
}

/*************************************************
 * 3. Mobile / desktop visibility helpers
 *************************************************/
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}

/*************************************************
 * 4. Hero visibility helpers (if you use them)
 *************************************************/
.hero-desktop-only {
    display: block;
}

.hero-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .hero-desktop-only {
        display: none !important;
    }
    .hero-mobile-only {
        display: block !important;
    }
}

/*************************************************
 * 5. Feedzy RSS styling
 *************************************************/
/* Reduce spacing between feed items */
.feedzy-rss .rss_item {
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #eee !important;
}

/* Remove gap after the last item */
.feedzy-rss .rss_item:last-child {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Slight top padding for first item */
.feedzy-rss .rss_item:first-child {
    padding-top: 2px !important;
}

/* Tidy up excerpt spacing and style */
.feedzy-rss .rss_content {
    margin-top: 2px !important;
    font-size: 0.95em !important;
    color: #444 !important;
    line-height: 1.45em;
}

/* Style the date line */
.feedzy-rss .rss_item .rss_date {
    color: #888 !important;
    font-size: 0.85em !important;
    margin-bottom: 1px;
    display: block;
}

/*************************************************
 * 6. Global typography tightening
 *************************************************/
p {
    line-height: 1.5em !important;
    margin-bottom: 1em;
}

/* Tighten line spacing in Classic Editor and block output */
.entry-content p,
.post-content p,
.page-content p,
#content p,
#main p,
.editor-post-title__block textarea {
    line-height: 1.5em !important;
    margin-top: 0;
    margin-bottom: 1em;
}

/* Ensure heading spacing is not too wide */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3em !important;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

/* Optional: tighten spacing in widgets and sidebar content */
.widget p,
.widget-area p {
    line-height: 1.4em !important;
    margin-bottom: 0.8em;
}
/* Reduce gap below header on homepage */
.home .site-header {
    margin-bottom: 0 !important;
}

.home .content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Featured images and archive thumbnails only */
:where(.wp-post-image, .post-thumbnail img, .entry-thumb img, .kadence-post-image img) {
  aspect-ratio: 7 / 4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Global content spacing: paragraphs + lists (site-wide) */
body .entry-content {
  line-height: 1.35;
}

body .entry-content p {
  margin-top: 0;
  margin-bottom: 0.75em;
}

body .entry-content ul,
body .entry-content ol {
  margin-top: 0.35em;
  margin-bottom: 0.75em;
  padding-left: 1.25em;
}

body .entry-content li {
  margin-bottom: 0.25em;
  line-height: 1.35;
}

/* Reduce excessive spacing Gutenberg adds between blocks */
body .entry-content > * {
  margin-top: 0;
}

/* Tame WordPress block list spacing (common culprit) */
body .entry-content .wp-block-list {
  margin-top: 0.35em;
  margin-bottom: 0.75em;
}

body .entry-content .wp-block-list li {
  margin-bottom: 0.25em;
}

