@font-face {
  font-family: "Waheed";
  src: url("/assets/fonts/waheed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* www.naares.com atoll section date stamp (Elementor MV_Faseyha) */
@font-face {
  font-family: "MV Faseyha";
  src: url("/assets/fonts/MV_Faseyha.otf") format("opentype");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Randhoo";
  src: url("/assets/fonts/randhoo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MV Typewriter";
  src: url("/assets/fonts/MV_Typewriter_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MV Typewriter";
  src: url("/assets/fonts/MV_Typewriter_SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MV Typewriter";
  src: url("/assets/fonts/MV_Typewriter_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Frontend brand blue */
  --color-primary: #3050d1;
  --color-primary-dark: #243eae;
  --color-accent-gold: #6980d1;
  --color-brand-secondary: #f4511e;
  --color-breaking: #e11d48;
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-surface-pink: #f3f5ff;
  --color-border: #e8e8e8;
  --color-text: #1a1a1a;
  --color-muted: #888888;
  --color-top-bar-bg: #3050d1;
  --color-top-bar-text: #ffffff;
  --color-card-bg: #ffffff;
  --color-card-border: #e5e5e5;
  --color-image-bg: #eeeeee;
  --color-logo-bg: #ffffff;
  --color-header-shadow: rgba(255, 255, 255, 0.8);
  --color-input-bg: transparent;
  --color-panel-bg-start: #f4f4f6;
  --color-panel-bg-end: #ececef;
  --color-panel-border: rgba(0, 0, 0, 0.06);
  --color-panel-inset: rgba(255, 255, 255, 0.7);
  --color-panel-shadow: rgba(0, 0, 0, 0.04);
  --color-divider-line: #e2e2e2;
  --color-card-shadow: rgba(0, 0, 0, 0.05);
  --color-card-hover-shadow: rgba(0, 0, 0, 0.09);
  --color-ad-bg: #fafafa;
  --color-ad-border: #ececec;
  --color-ad-label-bg: #f3f3f3;
  --color-ad-label-text: #aaaaaa;
  --color-form-bg: #ffffff;
  --color-form-border: #dddddd;
  --color-muted-surface: #f8f8f8;
  --color-secondary-text: #444444;
  --color-tertiary-text: #666666;
  --color-quote-bg-start: #fcfcfd;
  --color-quote-bg-end: #f6f6f8;
  --color-quote-text: #24242a;
  --color-quote-border: rgba(0, 0, 0, 0.06);
  --color-comment-reply-bg: #fafafa;
  --color-btn-submit-bg: #141414;
  --color-btn-submit-text: #ffffff;
  --hero-featured-text-bg: linear-gradient(165deg, #f5f7ff 0%, #ffffff 55%, #fafafa 100%);
  --hero-featured-text-bg-hover: linear-gradient(165deg, #eef2ff 0%, #ffffff 55%, #f8f8f8 100%);
  --hero-featured-footer-border: rgba(0, 0, 0, 0.07);
  --hero-featured-read-bg: rgba(255, 255, 255, 0.7);
  --font-typewriter: "MV Typewriter", "Waheed", "Randhoo", ui-sans-serif, system-ui, sans-serif;
  --font-dhivehi: var(--font-typewriter);
  --font-article: "Randhoo", "MV Typewriter", "Waheed", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Waheed", "Randhoo", ui-sans-serif, system-ui, sans-serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading-en: Georgia, "Times New Roman", serif;
  --max-width: 1140px;
  --site-gutter: 1rem;
  --header-height: 80px;
  --top-bar-height: 0px;
  --frontend-admin-bar-height: 0px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0f1115;
  --color-surface: #181b22;
  --color-surface-pink: #1a1f33;
  --color-border: #2a3038;
  --color-text: #eceef2;
  --color-muted: #9aa3af;
  --color-top-bar-bg: #14171d;
  --color-top-bar-text: #9aa3af;
  --color-card-bg: #181b22;
  --color-card-border: #2f3540;
  --color-image-bg: #252a33;
  --color-logo-bg: #181b22;
  --color-header-shadow: rgba(0, 0, 0, 0.35);
  --color-input-bg: #14171d;
  --color-panel-bg-start: #14171d;
  --color-panel-bg-end: #12151a;
  --color-panel-border: #2a3038;
  --color-panel-inset: rgba(255, 255, 255, 0.03);
  --color-panel-shadow: rgba(0, 0, 0, 0.35);
  --color-divider-line: #2f3540;
  --color-card-shadow: rgba(0, 0, 0, 0.28);
  --color-card-hover-shadow: rgba(0, 0, 0, 0.42);
  --color-ad-bg: #181b22;
  --color-ad-border: #2f3540;
  --color-ad-label-bg: #14171d;
  --color-ad-label-text: #9aa3af;
  --color-form-bg: #14171d;
  --color-form-border: #3a404c;
  --color-muted-surface: #1a1d24;
  --color-secondary-text: #c5cad3;
  --color-tertiary-text: #9aa3af;
  --color-quote-bg-start: #1a1d24;
  --color-quote-bg-end: #14171d;
  --color-quote-text: #eceef2;
  --color-quote-border: rgba(255, 255, 255, 0.08);
  --color-comment-reply-bg: #14171d;
  --color-btn-submit-bg: #eceef2;
  --color-btn-submit-text: #0f1115;
  --hero-featured-text-bg: linear-gradient(165deg, #1c1516 0%, var(--color-card-bg) 55%, var(--color-surface) 100%);
  --hero-featured-text-bg-hover: linear-gradient(165deg, #231819 0%, var(--color-card-bg) 55%, var(--color-surface) 100%);
  --hero-featured-footer-border: var(--color-divider-line);
  --hero-featured-read-bg: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .hero-featured-lead-panel {
  border-color: var(--color-border);
  background:
    linear-gradient(160deg, rgba(49, 90, 254, 0.12) 0%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(0deg, #171a20 0%, var(--color-card-bg) 55%, var(--color-surface) 100%);
}

html[data-theme="dark"] .hero-featured-lead-panel::before {
  background-image:
    linear-gradient(rgba(120, 150, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 255, 0.06) 1px, transparent 1px);
}

html[data-theme="dark"] .hero-featured-lead-badge {
  background: rgba(49, 90, 254, 0.22);
  color: #9db0ff;
}

html[data-theme="dark"] .hero-featured-lead-author {
  color: #e8eaed;
}

html[data-theme="dark"] .hero-featured-lead-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hero-featured-lead-cta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 150, 255, 0.28);
  color: #9db0ff;
}

html[data-theme="dark"] .hero-featured-lead-media {
  background: var(--color-surface);
}

html[data-theme="dark"] .mobile-drawer {
  background: var(--color-card-bg);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .mobile-drawer-overlay {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .mobile-drawer-header,
html[data-theme="dark"] .mobile-drawer-footer {
  border-color: var(--color-border);
}

html[data-theme="dark"] .mobile-nav-row,
html[data-theme="dark"] .mobile-nav-submenu a {
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .mobile-nav-submenu {
  background: var(--color-surface);
}

html[data-theme="dark"] .mobile-nav-toggle:hover {
  background: var(--color-surface);
}

html[data-theme="dark"] .mobile-nav-submenu a:hover {
  background: var(--color-muted-surface);
}

html[data-theme="dark"] .post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .hero-bottom-outer {
  background: linear-gradient(180deg, var(--color-panel-bg-start) 0%, var(--color-panel-bg-end) 100%);
  border-color: var(--color-panel-border);
  box-shadow: inset 0 1px 0 var(--color-panel-inset), 0 4px 20px var(--color-panel-shadow);
}

html[data-theme="dark"] .hero-bottom-card,
html[data-theme="dark"] .post-strip-card,
html[data-theme="dark"] .hm-cat-grid-card,
html[data-theme="dark"] .hm-cat-spotlight-section,
html[data-theme="dark"] .hm-cat-spotlight-featured,
html[data-theme="dark"] .hm-cat-spotlight-item,
html[data-theme="dark"] .hm-cat-section-header-more {
  background: var(--color-card-bg);
  border-color: var(--color-card-border);
  color: var(--color-text);
}

html[data-theme="dark"] .hero-bottom-card:hover,
html[data-theme="dark"] .post-strip-card:hover {
  box-shadow: 0 4px 14px var(--color-card-hover-shadow);
}

html[data-theme="dark"] .hm-cat-grid-card {
  border-color: var(--color-card-border);
  box-shadow: 0 1px 4px var(--color-card-shadow);
}

html[data-theme="dark"] .hm-cat-grid-card:hover {
  box-shadow: 0 6px 22px var(--color-card-hover-shadow);
}

html[data-theme="dark"] .hm-cat-spotlight-section {
  box-shadow: 0 4px 24px var(--color-card-shadow);
}

html[data-theme="dark"] .hm-cat-spotlight-featured:hover,
html[data-theme="dark"] .hm-cat-spotlight-item:hover {
  box-shadow: 0 8px 28px var(--color-card-hover-shadow);
}

html[data-theme="dark"] .hm-cat-section-header-line {
  background: var(--color-divider-line);
}

html[data-theme="dark"] .hero-bottom-card-image,
html[data-theme="dark"] .post-strip-card-image {
  background: var(--color-image-bg);
}

html[data-theme="dark"] .hero-bottom-card-time,
html[data-theme="dark"] .post-strip-card-time,
html[data-theme="dark"] .hm-cat-grid-card-meta {
  color: var(--color-muted);
}

html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-card-border) 50%, var(--color-surface) 75%);
}

html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

html[data-theme="dark"] .pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

html[data-theme="dark"] .gallery-page-card {
  background: var(--color-card-bg);
  border-color: var(--color-card-border);
  color: var(--color-text);
}

html[data-theme="dark"] .gallery-page-card:hover {
  box-shadow: 0 6px 20px var(--color-card-hover-shadow);
}

html[data-theme="dark"] .gallery-album-hero {
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .gallery-album-hero-intro {
  color: var(--color-secondary-text);
}

body.has-frontend-admin-bar {
  --frontend-admin-bar-height: 42px;
}

body.has-frontend-admin-bar .site-shell {
  padding-top: var(--frontend-admin-bar-height);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  height: 100%;
}

body {
  font-family: var(--font-dhivehi);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100%;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100vh;
}

.site-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Back to top — fixed to the physical bottom-right corner */
.scroll-to-top {
  --top-progress: 0%;
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 110;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at center, #4d6af0 0 58%, #3050d1 59% 70%, transparent 71%),
    conic-gradient(from -90deg, #fff var(--top-progress), rgba(255, 255, 255, 0.28) 0);
  box-shadow: 0 12px 28px rgba(48, 80, 209, 0.38);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.86);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s, box-shadow 0.2s ease;
}

.scroll-to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.scroll-to-top svg {
  display: block;
  animation: scroll-top-bob 1.8s ease-in-out infinite;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(48, 80, 209, 0.5);
}

.scroll-to-top:hover svg {
  animation: none;
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.96);
}

.scroll-to-top:focus-visible {
  outline: 2px solid #8ea4ff;
  outline-offset: 3px;
}

@keyframes scroll-top-bob {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 640px) {
  .scroll-to-top {
    width: 46px;
    height: 46px;
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top,
  .scroll-to-top svg {
    animation: none;
    transition: none;
  }
}

@media print {
  .scroll-to-top {
    display: none !important;
  }
}

/* Top progress line loader */
.hm-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99990;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hm-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hm-preloader-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: rgba(50, 90, 255, 0.12);
}

.hm-page-loader .hm-preloader-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.hm-preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--color-primary), #6980d1);
  box-shadow: 0 0 10px rgba(50, 90, 255, 0.35);
  animation: hm-preloader-top 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hm-page-loader {
  position: relative;
  flex: 1;
  min-height: 16rem;
  padding: 0;
}

@keyframes hm-preloader-top {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-preloader-bar {
    animation: none;
    width: 55%;
    opacity: 0.65;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* English dates must stay LTR inside the RTL site */
time,
.hm-date {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

/* Top utility bar */
.top-bar {
  background: var(--color-top-bar-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-top-bar-bg) 82%, #000);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-top-bar-text);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--top-bar-height);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.top-bar-right {
  flex-shrink: 0;
}

.top-bar-divider {
  color: var(--color-muted);
  font-size: 0.7rem;
  user-select: none;
}

.top-bar-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--color-top-bar-text);
  direction: ltr;
  unicode-bidi: isolate;
}

.top-bar-left a {
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 400;
  color: var(--color-top-bar-text);
  transition: color 0.15s;
  white-space: nowrap;
}

.top-bar-right a {
  color: var(--color-top-bar-text);
  transition: color 0.15s;
  white-space: nowrap;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
  color: color-mix(in srgb, var(--color-top-bar-text) 85%, #fff);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-social-link {
  color: color-mix(in srgb, var(--color-top-bar-text) 78%, transparent);
  display: flex;
  transition: color 0.15s;
}

.top-social-link:hover {
  color: var(--color-top-bar-text);
}

.top-bar-login {
  font-weight: 500;
}

.top-bar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--color-text) !important;
}

/* Logged-in editor toolbar (WordPress-style) */
.frontend-admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 42px;
  min-height: 42px;
  padding: 0 0.85rem 0 0.55rem;
  background: #1d2327;
  color: #f0f0f1;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 42px;
  direction: ltr;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.frontend-admin-bar-left,
.frontend-admin-bar-right {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.frontend-admin-bar-right {
  position: relative;
  flex-shrink: 0;
}

.frontend-admin-bar-link,
.frontend-admin-bar-account {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 42px;
  padding: 0 0.65rem;
  border: none;
  background: transparent;
  color: #f0f0f1;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  line-height: 42px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.frontend-admin-bar-site {
  font-weight: 600;
}

.frontend-admin-bar-link:hover,
.frontend-admin-bar-account:hover {
  background: #2c3338;
  color: #72aee6;
}

.frontend-admin-bar-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.frontend-admin-bar-comments-count {
  font-size: 15px;
  font-weight: 400;
  color: #f0f0f1;
  line-height: 1;
}

.frontend-admin-bar-views {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 42px;
  padding: 0 0.55rem;
  color: #c3c4c7;
  font-size: 15px;
  line-height: 42px;
  white-space: nowrap;
  flex-shrink: 0;
}

.frontend-admin-bar-views svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.frontend-admin-bar-views strong {
  color: #f0f0f1;
  font-weight: 600;
}

.frontend-admin-bar-menu {
  position: relative;
}

.frontend-admin-bar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #2c3338;
  border: 1px solid #1d2327;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0;
  z-index: 220;
}

.frontend-admin-bar-dropdown.is-open {
  display: block;
}

.frontend-admin-bar-dropdown--right {
  left: auto;
  right: 0;
}

.frontend-admin-bar-dropdown a,
.frontend-admin-bar-dropdown button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: transparent;
  color: #f0f0f1;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.frontend-admin-bar-dropdown a:hover,
.frontend-admin-bar-dropdown button:hover {
  background: #2271b1;
  color: #fff;
}

.frontend-admin-bar-account strong {
  font-weight: 600;
  color: #fff;
}

.frontend-admin-bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.frontend-admin-bar-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2271b1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.frontend-admin-bar .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .frontend-admin-bar-left .frontend-admin-bar-link:not(.frontend-admin-bar-site):not(.frontend-admin-bar-comments):not(.frontend-admin-bar-edit) {
    display: none;
  }

  .frontend-admin-bar-views-label {
    display: none;
  }

  .frontend-admin-bar-account span:first-child {
    display: none;
  }
}

/* Main header — www.naares.com single-row nav */
.site-top-accent {
  height: 5px;
  width: 100%;
  background: #3050d1;
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: var(--frontend-admin-bar-height);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

html[data-theme="dark"] .site-header {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}

html[data-theme="dark"] .site-top-accent {
  background: #3050d1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-block: 0.35rem;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  line-height: 0;
  transition: none;
}

.site-logo:hover {
  transform: none;
  box-shadow: none;
}

.site-logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(220px, 46vw);
  object-fit: contain;
  object-position: right center;
}

html[data-theme="dark"] .site-logo-img,
html[data-theme="dark"] .mobile-drawer-logo img {
  filter: brightness(0) invert(1);
}

.site-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}

.site-logo-mark--sm {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  display: inline-flex;
  vertical-align: middle;
  margin-inline-end: 0.4rem;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo-name {
  font-family: var(--font-dhivehi);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--color-accent-gold);
  letter-spacing: -0.02em;
}

.site-logo-sub {
  font-family: var(--font-dhivehi);
  font-size: 0.8rem;
  color: var(--color-text);
}

.main-nav {
  min-width: 0;
  overflow: visible;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  overflow: visible;
  direction: rtl;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links > li > a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: "Waheed", "MV Waheed", "Mv Waheed", var(--font-dhivehi), sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #000;
  transition: color 0.15s;
  padding: 0.35rem 0 0.35rem 1.75rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-home {
  flex-shrink: 0;
}

.nav-home-link,
.nav-home a {
  color: #3050d1 !important;
  padding: 0.35rem 0.15rem 0.35rem 1.75rem !important;
}

.nav-home-link:hover,
.nav-home a:hover {
  color: #243eae !important;
}

.nav-chevron {
  opacity: 0.55;
  margin-top: 1px;
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  order: 3;
  flex-shrink: 0;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: 0;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  height: 44px;
  padding: 0;
  color: #777;
  line-height: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}

.header-social-link:hover {
  color: #3050d1;
}

.header-social-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.header-social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-social-link .header-social-telegram-plane {
  fill: var(--color-bg, #fff);
}

/* Optical balance vs filled Telegram disk */
.header-social-link--facebook .header-social-icon {
  transform: scale(1.08) translateY(-0.5px);
}

.header-social-link--x .header-social-icon {
  transform: scale(1.05);
}

.header-utility .header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 44px;
  color: #777;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  line-height: 0;
}

.header-utility .header-search-btn svg {
  display: block;
}

.header-utility .header-search-btn:hover {
  color: #3050d1;
  background: transparent;
}

.mobile-drawer-footer .header-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.mobile-drawer-footer .header-social-link {
  width: 40px;
  height: 40px;
}

.top-bar-menu-group {
  display: inline-flex;
  align-items: center;
}

.nav-item-has-children {
  position: relative;
}

.nav-item-has-children::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 0.5rem;
}

.nav-item-has-children:hover .nav-submenu,
.nav-item-has-children:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  min-width: 12rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  background: var(--color-card-bg, #fff);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-submenu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.98rem;
  white-space: nowrap;
  color: #000;
}

.nav-submenu a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

html[data-theme="dark"] .nav-links > li > a,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-submenu a {
  color: var(--color-text);
}

html[data-theme="dark"] .nav-home-link,
html[data-theme="dark"] .nav-home a {
  color: #3050d1 !important;
}

/* Breaking news ticker — homepage only */
.breaking-news {
  background: var(--color-breaking);
  color: #fff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.breaking-news-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem var(--site-gutter);
}

.breaking-news-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  color: #fff;
  min-width: 0;
}

.breaking-news-link:hover {
  color: #fff;
  opacity: 0.92;
}

.breaking-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  background: #fff;
  color: var(--color-breaking);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.breaking-news-title {
  font-family: var(--font-dhivehi);
  font-size: 1.15rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  order: 3;
  min-width: 0;
  flex-shrink: 0;
}

.header-otd-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 90, 255, 0.18);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.08) 0%, rgba(50, 90, 255, 0.03) 100%);
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.header-otd-link:hover {
  border-color: rgba(50, 90, 255, 0.42);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(50, 90, 255, 0.12);
  transform: translateY(-1px);
}

.header-otd-link.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(50, 90, 255, 0.28);
}

.header-otd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(50, 90, 255, 0.12);
  color: var(--color-primary);
  flex-shrink: 0;
}

.header-otd-link.is-active .header-otd-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.header-otd-label {
  padding-inline-end: 0.1rem;
}

html[data-theme="dark"] .header-otd-link {
  border-color: rgba(255, 107, 112, 0.28);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.18) 0%, rgba(50, 90, 255, 0.06) 100%);
}

html[data-theme="dark"] .header-otd-icon {
  background: rgba(50, 90, 255, 0.22);
}

/* Full-page search overlay */
.search-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}

.search-overlay-root.is-open {
  pointer-events: auto;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.search-overlay-root.is-open .search-overlay-backdrop {
  opacity: 1;
}

.search-overlay-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.search-overlay-root.is-open .search-overlay-panel {
  opacity: 1;
  transform: translateY(0);
}

.search-overlay-close {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #9ca3af;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.search-overlay-close:hover {
  border-color: #9ca3af;
  color: #6b7280;
}

.search-overlay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.search-overlay-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.search-overlay-logo img {
  height: 34px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
}

.search-overlay-logo--hero {
  margin-bottom: 2rem;
}

.search-overlay-logo--hero img {
  height: auto;
  max-width: min(200px, 52vw);
  max-height: 56px;
}

.search-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  min-height: 0;
}

.search-overlay-body--idle {
  justify-content: center;
}

.search-overlay-body--results {
  justify-content: flex-start;
  padding-top: 1.25rem;
  overflow: hidden;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(520px, 88vw);
  padding: 0.8rem 1.35rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.search-overlay-form:focus-within {
  border-color: #9ca3af;
  box-shadow: none;
}

.search-overlay-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.search-overlay-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  color: var(--color-text);
  text-align: right;
}

.search-overlay-input::placeholder {
  color: var(--color-muted);
}

.search-overlay-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-overlay-results {
  width: min(1200px, 100%);
  margin-top: 1.75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.search-overlay-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
  text-align: right;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-muted);
}

.search-overlay-status {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-dhivehi);
  color: var(--color-muted);
}

.search-overlay-status--error {
  color: var(--color-primary);
}

.search-overlay-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.search-overlay-more {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.search-overlay-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 180px;
  padding: 0.78rem 1.65rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card-bg);
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.search-overlay-more-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(50, 90, 255, 0.12);
  transform: translateY(-1px);
}

.search-overlay-more-btn:active:not(:disabled) {
  transform: translateY(0);
}

.search-overlay-more-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.search-overlay-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.12) 0%, rgba(50, 90, 255, 0.06) 100%);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Search result cards */
.search-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.search-result-card {
  position: relative;
  border-radius: 14px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  box-shadow:
    0 1px 2px var(--color-card-shadow),
    0 6px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

.search-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 0 14px 0 0;
  transition: height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.search-result-card:hover {
  transform: translateY(-5px);
  border-color: rgba(50, 90, 255, 0.22);
  box-shadow:
    0 4px 8px var(--color-card-shadow),
    0 16px 36px rgba(50, 90, 255, 0.1),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-result-card:hover::before {
  height: 100%;
}

.search-result-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.search-result-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-image-bg);
}

.search-result-card-media img,
.search-result-card-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-result-card-media-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(15, 23, 42, 0.42) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.search-result-card:hover .search-result-card-media img,
.search-result-card:hover .search-result-card-media .placeholder-image {
  transform: scale(1.07);
}

.search-result-card:hover .search-result-card-media-shine {
  opacity: 1;
}

.search-result-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.05rem;
  text-align: right;
}

.search-result-card-title {
  font-family: var(--font-dhivehi);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  transition: color 0.22s ease;
}

.search-result-card:hover .search-result-card-title {
  color: var(--color-primary);
}

.search-result-card-excerpt {
  font-family: var(--font-dhivehi);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.search-result-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

.search-result-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.search-result-card-author {
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  color: var(--color-secondary-text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-card-meta time {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--color-surface);
}

.search-result-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(50, 90, 255, 0.08);
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}

.search-result-card:hover .search-result-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.search-result-card--enter {
  animation: search-result-enter 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--search-i, 0) * 55ms);
}

@keyframes search-result-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-result-card--skeleton {
  pointer-events: none;
}

.search-result-card--skeleton .search-result-card-body {
  gap: 0.65rem;
}

.search-result-skeleton-block,
.search-result-skeleton-line {
  background: linear-gradient(
    90deg,
    var(--color-surface) 0%,
    var(--color-muted-surface) 45%,
    var(--color-surface) 90%
  );
  background-size: 220% 100%;
  animation: search-result-shimmer 1.35s ease-in-out infinite;
}

.search-result-skeleton-block {
  aspect-ratio: 16 / 10;
}

.search-result-skeleton-line {
  height: 0.72rem;
  border-radius: 6px;
}

.search-result-skeleton-line--title {
  height: 0.95rem;
  width: 88%;
  margin-inline-start: auto;
}

.search-result-skeleton-line--short {
  width: 62%;
  margin-inline-start: auto;
}

.search-result-skeleton-line--meta {
  width: 42%;
  height: 0.58rem;
  margin-top: 0.35rem;
  margin-inline-start: auto;
}

@keyframes search-result-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.search-page {
  width: 100%;
  padding-bottom: 3.5rem;
}

.search-page-hero {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 2.25rem 0 1.85rem;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(168deg, #4d6ae6 0%, #3050d1 48%, #1a2f8f 100%);
  border-bottom: 0;
  overflow: hidden;
}

.search-page-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: otd-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.search-page-hero-inner {
  position: relative;
  z-index: 1;
}

.search-page-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.search-page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.35rem;
  font-family: var(--font-dhivehi);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.85;
  color: #fff;
  letter-spacing: normal;
  unicode-bidi: isolate;
}

.search-page-title-label {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-dhivehi);
}

.search-page-title-query {
  color: #fff;
  font-family: var(--font-dhivehi);
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: normal;
  line-height: 1.85;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 44rem;
  margin: 0;
  padding: 0.45rem 0.45rem 0.45rem 0.45rem;
  border: 1px solid rgba(50, 90, 255, 0.18);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 28px rgba(50, 90, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: rgba(50, 90, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(50, 90, 255, 0.12),
    0 12px 32px rgba(50, 90, 255, 0.12);
}

.search-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-primary);
  background: rgba(50, 90, 255, 0.08);
  flex-shrink: 0;
}

.search-form-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-dhivehi);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  outline: none;
  padding: 0.45rem 0.15rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-form-input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.search-form-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.search-form-submit {
  flex-shrink: 0;
  border: 0;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.search-form-submit:hover {
  filter: brightness(1.05);
}

.search-form-submit:active {
  transform: translateY(1px);
}

.search-page-hint {
  margin: 1rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
}

.search-page[dir="ltr"] .search-page-hint {
  text-align: left;
}

.search-page-count {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  padding: 0.35rem 0.45rem 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px !important;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: #fff;
}

.search-page-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px !important;
  background: #fff;
  color: #3050d1;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.search-page-count-label {
  color: rgba(255, 255, 255, 0.88);
}

.search-page-body {
  padding-top: 0.25rem;
}

.search-page-stage {
  display: grid;
  grid-template-columns: minmax(16rem, 20.5rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  direction: ltr;
}

.search-page[dir="rtl"] .search-page-results {
  direction: rtl;
}

.search-rail-ad {
  position: sticky;
  top: calc(var(--frontend-admin-bar-height) + var(--header-height) + var(--top-bar-height) + 0.85rem);
  align-self: start;
  z-index: 2;
  width: 100%;
  max-height: calc(100dvh - var(--frontend-admin-bar-height) - var(--header-height) - var(--top-bar-height) - 1.6rem);
  aspect-ratio: 1;
  overflow: hidden;
  background: #071a4a;
  border-radius: var(--radius-panel) !important;
  box-shadow: 0 18px 40px rgba(26, 48, 140, 0.14);
}

.search-rail-ad-link {
  display: block;
  width: 100%;
  height: 100%;
}

.search-rail-ad img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-panel) !important;
}

.search-page-welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-height: 20.5rem;
  padding: 2rem 1.7rem;
  border: 1px solid color-mix(in srgb, #3050d1 16%, var(--color-border));
  border-radius: var(--radius-panel) !important;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
  box-shadow: 0 14px 32px rgba(26, 48, 140, 0.06);
}

.search-page[dir="rtl"] .search-page-welcome {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
}

.search-page-welcome-kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3050d1;
}

.search-page-welcome h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.45;
  color: var(--color-text);
}

.search-page-welcome p {
  margin: 0;
  max-width: 34rem;
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.search-page-grid {
  margin-bottom: 2rem;
}

.search-page-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
}

/* Search-page result cards — editorial, brand-forward */
.search-page .search-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.search-page .search-result-card-link {
  display: grid;
  grid-template-columns: 9.25rem minmax(0, 1fr);
  align-items: stretch;
  min-height: 7.4rem;
}

.search-page .search-result-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 2px solid transparent;
  box-shadow: none;
  overflow: hidden;
  transition:
    border-color 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-page .search-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 2;
}

.search-page .search-result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 90, 255, 0.22);
  border-bottom-color: var(--color-primary);
  box-shadow: 0 18px 40px rgba(50, 90, 255, 0.1);
}

.search-page .search-result-card:hover::before {
  opacity: 1;
  height: 3px;
}

.search-page .search-result-card-media {
  aspect-ratio: auto;
  min-height: 7.4rem;
  height: 100%;
  background: linear-gradient(135deg, #e8ecff 0%, #f3f4f6 100%);
}

.search-page .search-result-card-media-shine {
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(30, 68, 212, 0.35) 100%
  );
}

.search-page .search-result-card-body {
  gap: 0.45rem;
  justify-content: center;
  padding: 0.85rem 1rem;
}

.search-page .search-result-card-title {
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.7;
}

.search-page .search-result-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.8;
}

.search-page .search-result-card-meta time {
  border-radius: 0;
  background: rgba(50, 90, 255, 0.08);
  color: var(--color-primary-dark);
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
}

.search-page .search-result-card-arrow {
  border-radius: 0;
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  color: #fff;
}

.search-page .search-result-card:hover .search-result-card-arrow {
  background: var(--color-primary-dark);
}

html[data-theme="dark"] .search-page-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(168deg, #3d58d4 0%, #243ea8 52%, #121c4e 100%);
  border-bottom-color: transparent;
}

html[data-theme="dark"] .search-form {
  background: var(--color-surface);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

html[data-theme="dark"] .search-form:focus-within {
  border-color: rgba(50, 90, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(50, 90, 255, 0.16);
}

html[data-theme="dark"] .search-form-icon {
  background: rgba(50, 90, 255, 0.16);
}

html[data-theme="dark"] .search-page-count {
  background: rgba(50, 90, 255, 0.12);
  border-color: rgba(50, 90, 255, 0.2);
}

html[data-theme="dark"] .search-page .search-result-card {
  background: var(--color-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .search-page .search-result-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .search-page-stage {
    grid-template-columns: 1fr;
  }

  .search-rail-ad {
    position: static;
    max-height: none;
    aspect-ratio: 1;
    order: 2;
    max-width: 22rem;
    margin-inline: auto;
  }

  .search-page-welcome {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .search-page-hero {
    padding: 1.5rem 0 1.35rem;
  }

  .search-page-title {
    font-size: 1.35rem;
  }

  .search-form {
    flex-wrap: wrap;
    padding: 0.55rem;
  }

  .search-form-submit {
    width: 100%;
    order: 3;
  }

  .search-page .search-result-card-link {
    grid-template-columns: 6.2rem minmax(0, 1fr);
    min-height: 0;
  }

  .search-page .search-result-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .search-result-card {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .search-result-card:hover {
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .search-result-card-meta time {
  background: var(--color-surface);
}

html[data-theme="dark"] .search-overlay-count-badge {
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.22) 0%, rgba(50, 90, 255, 0.1) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .search-result-card--enter {
    animation: none;
  }

  .search-result-card,
  .search-result-card-media img,
  .search-result-card-media .placeholder-image,
  .search-result-card-arrow,
  .search-result-card-title,
  .search-overlay-more-btn {
    transition: none;
  }

  .search-result-skeleton-block,
  .search-result-skeleton-line {
    animation: none;
  }
}

html[data-theme="dark"] .search-overlay-backdrop {
  background: var(--color-bg);
}

html[data-theme="dark"] .search-overlay-close {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  color: var(--color-muted);
}

html[data-theme="dark"] .search-overlay-close:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

html[data-theme="dark"] .search-overlay-form {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  box-shadow: none;
}

html[data-theme="dark"] .search-overlay-form:focus-within {
  border-color: var(--color-muted);
  box-shadow: none;
}

@media (max-width: 1100px) {
  .search-overlay-grid,
  .search-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-overlay-grid,
  .search-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .search-overlay-header {
    padding-inline: 1rem;
  }

  .search-overlay-body {
    padding-inline: 1rem;
  }

  .search-overlay-form {
    padding: 0.75rem 1.1rem;
  }

  .search-overlay-grid,
  .search-result-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-overlay-close {
    top: 1rem;
    inset-inline-end: 1rem;
    width: 40px;
    height: 40px;
  }

  .search-overlay-logo--hero {
    margin-bottom: 1.5rem;
  }

  .search-overlay-logo--hero img {
    max-height: 48px;
  }

  .search-overlay-logo:not(.search-overlay-logo--hero) img {
    height: 30px;
  }
}


@media (min-width: 961px) {
  /* Original: util left | menu centered | logo right */
  .site-header .container.header-inner,
  .header-inner {
    direction: ltr;
    display: grid;
    grid-template-columns: auto minmax(24px, 1fr) auto auto;
    align-items: center;
    max-width: var(--max-width);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--site-gutter);
    gap: 0.85rem;
    min-height: 80px;
  }

  .header-utility {
    grid-column: 1;
    justify-self: start;
    flex: unset;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    order: unset;
  }

  .main-nav {
    grid-column: 3;
    justify-self: end;
    flex: unset;
    min-width: 0;
    margin: 0 2rem 0 0;
    padding: 0;
    order: unset;
    overflow: visible;
  }

  .nav-links {
    justify-content: flex-end;
    width: auto;
    overflow: visible;
  }

  .site-logo {
    grid-column: 4;
    justify-self: end;
    flex: unset;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 8px 0;
    order: unset;
  }

  .site-logo:hover {
    transform: none;
    box-shadow: none;
    opacity: 1;
  }

  .site-logo-img {
    object-position: right center;
    height: 58px;
    max-width: 210px;
    width: auto;
  }

  .header-tools {
    display: none;
  }
}

.header-icon-btn,
.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.header-icon-btn:hover:not(:disabled),
.header-search-btn:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.header-icon-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch:disabled {
  opacity: 0.45;
  cursor: default;
}

.theme-switch-track {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px !important;
  background: #e8eaef;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  direction: ltr;
  overflow: hidden;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.theme-switch:hover:not(:disabled) .theme-switch-track {
  border-color: rgba(50, 90, 255, 0.28);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 0 0 3px rgba(50, 90, 255, 0.08);
}

.theme-switch.is-dark .theme-switch-track {
  background: linear-gradient(135deg, #2b3558 0%, #171d2e 100%);
  border-color: rgba(120, 150, 255, 0.35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.theme-switch.is-dark:hover:not(:disabled) .theme-switch-track {
  border-color: rgba(157, 176, 255, 0.55);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(50, 90, 255, 0.16);
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: #ffffff;
  color: #f0a202;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
  z-index: 2;
}

.theme-switch-thumb svg {
  display: block;
  flex-shrink: 0;
}

/* Only one icon visible — don't rely on [hidden] (overridden by svg display:block) */
.theme-switch.is-light .theme-icon-moon,
.theme-switch.is-dark .theme-icon-sun {
  display: none !important;
}

.theme-switch.is-light .theme-icon-sun,
.theme-switch.is-dark .theme-icon-moon {
  display: block !important;
}

.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(20px);
  background: linear-gradient(160deg, #7d92d4 0%, #3050d1 100%);
  color: #ffffff;
  box-shadow:
    0 1px 5px rgba(50, 90, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-switch:focus-visible {
  outline: none;
}

.theme-switch:focus-visible .theme-switch-track {
  outline: 2px solid rgba(50, 90, 255, 0.5);
  outline-offset: 3px;
  border-radius: 999px !important;
}

.mobile-drawer-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px !important;
  background: var(--color-surface);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
}

.mobile-drawer-theme-label {
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-text);
}

.mobile-drawer-theme .theme-switch {
  width: auto;
  height: auto;
  padding: 0.15rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  order: 4;
}

@media (min-width: 961px) {
  .header-utility,
  .main-nav,
  .site-logo {
    grid-row: unset;
  }

  .header-tools {
    display: none;
  }
}

.header-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.header-menu-btn:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.header-mobile-overlay {
  display: none;
}

.header-mobile-nav {
  display: none;
}

.header-mobile-links {
  display: none;
}

/* Mobile slide-out drawer */
.mobile-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.mobile-drawer-root.is-open {
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-root.is-open .mobile-drawer-overlay {
  opacity: 1;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  color: var(--color-text);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
  transform: translateX(104%);
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.mobile-drawer-root.is-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.mobile-drawer-close:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.mobile-drawer-logo {
  display: inline-flex;
  align-items: center;
}

.mobile-drawer-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.mobile-drawer-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.25rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-otd {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(50, 90, 255, 0.16);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.1) 0%, rgba(50, 90, 255, 0.03) 100%);
  color: var(--color-text);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.mobile-drawer-otd:hover {
  border-color: rgba(50, 90, 255, 0.38);
  box-shadow: 0 6px 18px rgba(50, 90, 255, 0.12);
  transform: translateY(-1px);
}

.mobile-drawer-otd.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.mobile-drawer-otd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(50, 90, 255, 0.14);
  color: var(--color-primary);
  flex-shrink: 0;
}

.mobile-drawer-otd.is-active .mobile-drawer-otd-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mobile-drawer-otd-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
  text-align: right;
}

.mobile-drawer-otd-copy strong {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.mobile-drawer-otd-copy small {
  font-family: var(--font-dhivehi);
  font-size: 0.75rem;
  opacity: 0.78;
  line-height: 1.4;
}

.mobile-drawer-otd-arrow {
  flex-shrink: 0;
  opacity: 0.45;
}

.mobile-drawer-otd.is-active .mobile-drawer-otd-arrow {
  opacity: 0.9;
}

html[data-theme="dark"] .mobile-drawer-otd {
  border-color: rgba(255, 107, 112, 0.24);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.2) 0%, rgba(50, 90, 255, 0.06) 100%);
}

html[data-theme="dark"] .mobile-drawer-otd-icon {
  background: rgba(50, 90, 255, 0.24);
}

.mobile-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  opacity: 0;
  transform: translateX(18px);
}

.mobile-drawer-root.is-open .mobile-nav-item {
  animation: mobileNavItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.06s + var(--mobile-nav-i, 0) * 0.045s);
}

@keyframes mobileNavItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-toggle--spacer {
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.mobile-nav-chevron {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-chevron--open {
  transform: rotate(180deg);
}

.mobile-nav-link {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.95rem 0.35rem 0.95rem 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
  text-align: right;
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

.mobile-nav-submenu-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item.is-expanded .mobile-nav-submenu-wrap {
  grid-template-rows: 1fr;
}

.mobile-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.mobile-nav-submenu a {
  display: block;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--color-secondary-text);
  text-align: right;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.15s, background 0.15s;
}

.mobile-nav-submenu li:last-child a {
  border-bottom: none;
}

.mobile-nav-submenu a:hover {
  color: var(--color-primary);
  background: var(--color-muted-surface);
}

.mobile-drawer-divider {
  height: 1px;
  margin: 0.5rem 1.15rem;
  background: var(--color-border);
  flex-shrink: 0;
}

.mobile-drawer-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 1.15rem 0.75rem;
  flex-shrink: 0;
}

.mobile-drawer-secondary-link {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-secondary-text);
  text-align: right;
  text-decoration: none;
  transition: color 0.15s;
}

.mobile-drawer-secondary-link:hover {
  color: var(--color-primary);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 1rem 1.15rem 1.35rem;
  flex-shrink: 0;
  border-top: 1px solid var(--color-border);
}

.mobile-drawer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.85;
}

.mobile-drawer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.mobile-drawer-social-link {
  display: inline-flex;
  color: var(--color-muted);
  transition: color 0.15s, transform 0.15s;
}

.mobile-drawer-social-link:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    direction: ltr;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-block: 0.55rem;
    gap: 0.35rem;
  }

  .site-logo-img {
    height: 44px;
    max-width: min(170px, 46vw);
  }

  .top-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-block: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-bar-inner::-webkit-scrollbar {
    display: none;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .top-bar-social {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .header-menu-btn {
    display: inline-flex;
  }

  .header-tools {
    order: 1;
    margin: 0;
    flex-shrink: 0;
  }

  .header-utility {
    order: 2;
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-start;
    gap: 0;
  }

  .header-social {
    display: none;
  }

  .site-logo {
    order: 3;
    margin-inline-start: auto;
    flex-shrink: 0;
    padding: 0.32rem 0 0.32rem 0.35rem;
    border-radius: 7px;
  }

  .header-otd-link {
    padding: 0.38rem;
    gap: 0;
  }

  .header-otd-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-logo-img {
    height: 40px;
    max-width: min(150px, 48vw);
  }
}

/* Hero — adhadhu-style: image | lead text | sidebar + 5-card strip */
.hero-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0 1.15rem;
}

.hero-top {
  width: 100%;
}

.hero-featured-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-featured-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
    direction: rtl;
  }

  .hero-featured-lead {
    grid-column: span 9;
  }

  .hero-featured-row:has(.hero-featured-promo .hm-ad-slot) .hero-featured-promo {
    grid-column: span 3;
  }

  .hero-featured-row:not(:has(.hero-featured-promo .hm-ad-slot)) .hero-featured-lead {
    grid-column: span 12;
  }
}

.hero-featured-lead {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: inherit;
  min-width: 0;
  /* Image left / text right — matches www.naares.com .naares-featured */
  direction: ltr;
  transition: color 0.15s;
  background: var(--color-bg);
}

@media (min-width: 1024px) {
  .hero-featured-lead {
    flex-direction: row;
    align-items: stretch;
  }
}

.hero-featured-lead:hover {
  color: inherit;
}

.hero-featured-lead:hover .hero-featured-title {
  color: var(--color-primary);
}

.hero-featured-lead-media {
  flex: 0 0 50%;
  width: 100%;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
  background: transparent;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 1024px) {
  .hero-featured-lead-media {
    padding: 0;
    min-height: 351px;
    align-self: stretch;
    background: transparent;
  }
}

/* www.naares.com: .naares-featured .post-img::after blue bar */
.hero-featured-lead-media::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -1%;
  width: 10px;
  height: 80%;
  border-radius: 999px;
  background-color: #315afe;
  z-index: 2;
  pointer-events: none;
}

.hero-featured-lead-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 12.5rem;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-image-bg);
  isolation: isolate;
}

@media (min-width: 1024px) {
  .hero-featured-lead-media-frame {
    aspect-ratio: auto;
    min-height: 351px;
    height: 100%;
    border-radius: 0;
  }
}

.hero-featured-lead-img,
.hero-featured-lead-media-frame .placeholder-image,
.hero-featured-lead-media-frame .featured-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: none;
}

@media (min-width: 1024px) {
  .hero-featured-lead-img,
  .hero-featured-lead-media-frame .placeholder-image,
  .hero-featured-lead-media-frame .featured-image-placeholder {
    min-height: 351px;
  }
}

.hero-featured-lead:hover .hero-featured-lead-img,
.hero-featured-lead:hover .hero-featured-lead-media-frame .placeholder-image {
  transform: none;
}

.hero-featured-lead-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg, rgba(49, 90, 254, 0.05) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, #f7f8fb 0%, #ffffff 55%, #fafbfd 100%);
  border: none;
  border-radius: 0;
  position: relative;
  margin: 0;
  min-width: 0;
  z-index: 1;
  /* Keep text RTL even though lead row is LTR for image|text split */
  direction: rtl;
  text-align: right;
  overflow: hidden;
}

.hero-featured-lead-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 90, 254, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 90, 254, 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 15%, transparent 72%);
  pointer-events: none;
  opacity: 0.9;
}

.hero-featured-lead-panel::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 90, 254, 0.12) 0%, transparent 70%);
  top: -48px;
  inset-inline-start: -36px;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-featured-lead-panel {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    min-height: 351px;
  }
}

.hero-featured-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(49, 90, 254, 0.1);
  color: #315afe;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-featured-lead-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: #315afe;
  flex-shrink: 0;
}

.hero-featured-lead-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  flex: 1;
  min-width: 0;
  min-height: 0;
  direction: rtl;
  text-align: right;
}

@media (min-width: 1024px) {
  .hero-featured-lead-copy {
    /* Extra inset on the visual right (text start) so copy breathes from the edge */
    padding-block: 1.4rem 1.3rem;
    padding-inline-start: 1.75rem;
    padding-inline-end: 1.5rem;
    min-height: 351px;
  }
}

.hero-featured-lead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-featured-lead-accent {
  display: block;
  width: 2.75rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #315afe);
  flex-shrink: 0;
}

.hero-featured-lead-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.hero-featured-lead-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(49, 90, 254, 0.12);
}

.hero-featured-lead-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.hero-featured-lead-author {
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: #364349;
  line-height: 1.4;
}

.hero-featured-lead-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 90, 254, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #315afe;
  font-family: var(--font-dhivehi);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hero-featured-lead:hover .hero-featured-lead-cta {
  background: #315afe;
  color: #fff;
  border-color: #315afe;
}

.hero-featured-promo {
  display: none;
  min-width: 0;
  direction: ltr;
}

@media (min-width: 1024px) {
  .hero-featured-row:has(.hero-featured-promo .hm-ad-slot) .hero-featured-promo {
    display: block;
  }
}

.hero-featured-text {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.35rem 1.5rem 1.15rem;
  color: inherit;
  background: var(--hero-featured-text-bg);
  position: relative;
  overflow: hidden;
  transition: color 0.15s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-featured-text::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    #9ca3af 0%,
    #e5e7eb 38%,
    #f8fafc 52%,
    #cbd5e1 100%
  );
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.05);
}

.hero-featured-text:hover {
  color: var(--color-primary);
  background: var(--hero-featured-text-bg-hover);
}

.hero-featured-category {
  display: none;
}

.hero-featured-body {
  flex: 1;
}

.hero-featured-title {
  /* www.naares.com: MV_Waheed 38px / line-height 60.8 */
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 38px);
  font-weight: 400;
  line-height: 1.6;
  color: #364349;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-featured-excerpt {
  /* www.naares.com: MV_Faseyha 15px / rgba(2,1,1,0.43) */
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(2, 1, 1, 0.43);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hero-featured-footer-border);
}

.hero-featured-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: isolate;
}

.hero-featured-meta svg {
  flex-shrink: 0;
  opacity: 0.75;
}

html[data-theme="dark"] .hero-featured-title {
  color: #e8eaed;
}

html[data-theme="dark"] .hero-featured-excerpt {
  color: rgba(232, 234, 237, 0.55);
}

html[data-theme="dark"] .hero-featured-meta {
  color: #8b93a0;
}

.hero-featured-read {
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  color: var(--color-primary);
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(50, 90, 255, 0.25);
  border-radius: 999px;
  background: var(--hero-featured-read-bg);
  transition: background 0.15s, border-color 0.15s;
}

.hero-featured-text:hover .hero-featured-read {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.hero-sidebar {
  width: 100%;
  max-width: 300px;
  padding-inline-start: 0.25rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.hero-sidebar-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.hero-sidebar-title-bar {
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero-sidebar-list {
  display: flex;
  flex-direction: column;
}

.hero-sidebar-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  transition: color 0.15s;
}

.hero-sidebar-item:last-child {
  border-bottom: none;
}

.hero-sidebar-item:hover {
  color: var(--color-primary);
}

.hero-sidebar-item-text {
  flex: 1;
  min-width: 0;
}

.hero-sidebar-item-text h4 {
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-sidebar-item-text time {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
  display: block;
  margin-top: 0.4rem;
}

.hero-sidebar-item-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 68px;
  overflow: hidden;
  background: var(--color-surface);
}

.hero-sidebar-item-thumb img,
.hero-sidebar-item-thumb .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-sidebar-item-thumb .placeholder-image {
  font-size: 0.6rem;
}

.hero-bottom-outer {
  background: linear-gradient(180deg, var(--color-panel-bg-start) 0%, var(--color-panel-bg-end) 100%);
  margin-top: 0;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 12px;
  border: 1px solid var(--color-panel-border);
  box-shadow: inset 0 1px 0 var(--color-panel-inset), 0 4px 20px var(--color-panel-shadow);
}

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  align-items: stretch;
  direction: rtl;
}

.hero-bottom-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  overflow: hidden;
  color: var(--color-text);
  box-shadow: 0 1px 4px var(--color-card-shadow);
  transition: box-shadow 0.2s, color 0.15s, transform 0.2s;
  min-height: 100%;
}

.hero-bottom-card:hover {
  color: var(--color-primary);
  box-shadow: 0 4px 14px var(--color-card-hover-shadow);
  transform: translateY(-1px);
}

.hero-bottom-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
  flex-shrink: 0;
}

.hero-bottom-card-image img,
.hero-bottom-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bottom-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.85rem 0.85rem;
  text-align: right;
  direction: rtl;
}

.hero-bottom-card-title {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.65rem;
  flex: 1;
}

.hero-bottom-card-time {
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  display: block;
  margin-top: auto;
  align-self: flex-start;
  width: fit-content;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: isolate;
}

@media (max-width: 1023px) {
  .hero-featured-lead-copy {
    padding-top: 0.5rem;
  }

  .hero-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero-featured-title {
    font-size: 1.3rem;
  }

  .hero-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .hero-bottom-card {
    border-radius: 8px;
  }

  .hero-bottom-card-body {
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .hero-bottom-card-title {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0.4rem;
    -webkit-line-clamp: 3;
  }

  .hero-bottom-card-time {
    font-size: 11px;
  }
}

/* Post strip — 5-column grid after hero */
.post-strip-section {
  margin: 2rem 0 2.5rem;
}

/* www.naares.com atoll columns — under hero / after latest strip */
.hm-atoll-section {
  --hm-atoll-bg: #e9e9e9;
  --hm-atoll-line: #e0dada;
  --hm-atoll-dot: #3050d1;
  --hm-atoll-title: #364349;
  --hm-atoll-date: #b3b3b3;
  --hm-atoll-text: #364349;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-block: 0.75rem 1.25rem;
  padding: 1.35rem 0 1.1rem;
  background: var(--hm-atoll-bg);
  box-sizing: border-box;
}

.hm-atoll-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.hm-atoll-col {
  min-width: 0;
  padding-inline: 0.85rem;
}

.hm-atoll-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.hm-atoll-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  line-height: 0;
}

.hm-atoll-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.hm-atoll-title {
  margin: 0;
  /* Original Elementor: MV_Waheed ~27.7px */
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.73rem);
  font-weight: 400;
  color: var(--hm-atoll-title);
  line-height: 1.6;
}

.hm-atoll-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-atoll-item {
  position: relative;
  margin: 0;
  padding: 0.45rem 0.85rem 0.55rem 0.35rem;
  border-inline-start: 2px dotted var(--hm-atoll-line);
}

.hm-atoll-item + .hm-atoll-item {
  margin-top: 0.15rem;
}

.hm-atoll-item-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
  padding: 0.1rem 0.15rem 0.2rem;
  transition: background-color 0.15s ease;
}

.hm-atoll-item-link:hover {
  background: #efefef;
}

.hm-atoll-item-date {
  display: block;
  /* Original Elementor: MV_Faseyha 10px / #b3b3b3 */
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: var(--hm-atoll-date);
  line-height: 1.8;
  letter-spacing: 0;
  direction: rtl;
  unicode-bidi: isolate;
}

.hm-atoll-item-title {
  position: relative;
  display: block;
  /* Original Elementor: MV_Waheed 18px */
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--hm-atoll-text);
}

.hm-atoll-item-title::before {
  content: "";
  position: absolute;
  top: 0.5em;
  inset-inline-start: calc(-0.85rem - 5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hm-atoll-dot);
  z-index: 1;
}

html[data-theme="dark"] .hm-atoll-section {
  --hm-atoll-bg: #1a1d24;
  --hm-atoll-line: #2e3440;
  --hm-atoll-title: #e8eaed;
  --hm-atoll-date: #8b93a0;
  --hm-atoll-text: #d5d9e0;
}

html[data-theme="dark"] .hm-atoll-item-link:hover {
  background: #242830;
}

@media (max-width: 960px) {
  .hm-atoll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .hm-atoll-grid {
    grid-template-columns: 1fr;
  }

  .hm-atoll-section {
    padding-block: 1rem;
  }

  .hm-atoll-icon {
    width: 58px;
    height: 58px;
  }

  .hm-atoll-icon img {
    width: 48px;
    height: 48px;
  }
}

/* www.naares.com ރިޕޯޓް column */
.hm-report-section {
  margin: 2rem 0 2.5rem;
}

.hm-report-heading {
  margin: 0 0 0.85rem;
  padding: 0 0 14px;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #364349;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.hm-report-heading a {
  color: inherit;
  text-decoration: none;
}

.hm-report-heading a:hover {
  color: var(--color-primary);
}

.hm-report-heading::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #315afe;
  order: -1;
}

.hm-report-featured-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hm-report-featured-row {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 1.25rem;
    direction: rtl;
  }

  .hm-report-featured-row:not(:has(.hm-report-ad .hm-ad-slot)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-report-featured-row:not(:has(.hm-report-ad .hm-ad-slot)) .hm-report-ad {
    display: none;
  }
}

.hm-report-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  direction: ltr;
  overflow: hidden;
  background: var(--color-bg);
}

@media (min-width: 700px) {
  .hm-report-featured {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}

.hm-report-featured-copy {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.2rem;
  background:
    linear-gradient(160deg, rgba(49, 90, 254, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(0deg, #f7f8fb 0%, #ffffff 55%, #fafbfd 100%);
}

.hm-report-featured-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 90, 254, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 90, 254, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 85% 75% at 65% 40%, #000 18%, transparent 72%);
  pointer-events: none;
}

.hm-report-featured-copy::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 90, 254, 0.11) 0%, transparent 70%);
  top: -42px;
  inset-inline-start: -30px;
  pointer-events: none;
}

@media (min-width: 700px) {
  .hm-report-featured-copy {
    padding-block: 1.3rem 1.25rem;
    padding-inline-start: 1.55rem;
    padding-inline-end: 1.25rem;
    min-height: 320px;
  }
}

.hm-report-featured-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hm-report-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(49, 90, 254, 0.1);
  color: #315afe;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.hm-report-featured-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: #315afe;
  flex-shrink: 0;
}

.hm-report-featured-accent {
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #315afe);
  flex-shrink: 0;
}

.hm-report-featured-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.hm-report-featured-title {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(1.25rem, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: #364349;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-report-featured:hover .hm-report-featured-title {
  color: var(--color-primary);
}

.hm-report-featured-excerpt {
  margin: 0;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(2, 1, 1, 0.43);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-report-featured-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(49, 90, 254, 0.12);
}

.hm-report-featured-meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.hm-report-featured-author {
  font-family: var(--font-dhivehi);
  font-size: 0.8rem;
  color: #364349;
  line-height: 1.4;
}

.hm-report-featured-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #999;
  line-height: 1.5;
  direction: rtl;
  unicode-bidi: isolate;
}

.hm-report-featured-date svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.hm-report-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 90, 254, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #315afe;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hm-report-featured:hover .hm-report-featured-cta {
  background: #315afe;
  color: #fff;
  border-color: #315afe;
}

.hm-report-featured-media {
  flex: 1 1 64%;
  position: relative;
  min-width: 0;
  overflow: visible;
  background: var(--color-image-bg);
}

.hm-report-featured-media::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -1%;
  width: 10px;
  height: 80%;
  background-color: #315afe;
  z-index: 2;
  pointer-events: none;
}

.hm-report-featured-media img,
.hm-report-featured-media .placeholder-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 700px) {
  .hm-report-featured-media img,
  .hm-report-featured-media .placeholder-image {
    min-height: 320px;
  }
}

.hm-report-ad {
  min-width: 0;
  direction: ltr;
}

/* Match www.naares.com report-column side ad (Elementor 33% col / a-5) */
.hm-ad-report-side.hm-ad-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hm-ad-report-side .hm-ad-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hm-ad-report-side .hm-ad-body {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.hm-ad-report-side .hm-ad-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.hm-ad-report-side .hm-ad-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .hm-ad-report-side .hm-ad-image {
    min-height: 280px;
  }
}

.hm-report-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
}

.hm-report-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.hm-report-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
}

.hm-report-card-media img,
.hm-report-card-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-report-card-title {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: #364349;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-report-card:hover .hm-report-card-title {
  color: var(--color-primary);
}

.hm-report-card-date {
  display: block;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #999;
  line-height: 1.4;
  direction: rtl;
  unicode-bidi: isolate;
}

html[data-theme="dark"] .hm-report-heading,
html[data-theme="dark"] .hm-report-featured-title,
html[data-theme="dark"] .hm-report-card-title {
  color: #e8eaed;
}

html[data-theme="dark"] .hm-report-featured-copy {
  background:
    linear-gradient(160deg, rgba(49, 90, 254, 0.14) 0%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(0deg, #171a20 0%, var(--color-card-bg) 55%, var(--color-surface) 100%);
}

html[data-theme="dark"] .hm-report-featured-badge {
  background: rgba(49, 90, 254, 0.22);
  color: #9db0ff;
}

html[data-theme="dark"] .hm-report-featured-author {
  color: #e8eaed;
}

html[data-theme="dark"] .hm-report-featured-excerpt {
  color: rgba(232, 234, 237, 0.55);
}

html[data-theme="dark"] .hm-report-featured-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hm-report-featured-cta {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 150, 255, 0.28);
  color: #9db0ff;
}

html[data-theme="dark"] .hm-report-featured-date,
html[data-theme="dark"] .hm-report-card-date {
  color: #8b93a0;
}

@media (max-width: 1100px) {
  .hm-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hm-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .hm-report-featured-media::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hm-report-grid {
    grid-template-columns: 1fr;
  }
}

/* www.naares.com ދުނިޔެ column */
.hm-world-section {
  margin: 2rem 0 2.5rem;
}

.hm-ad-world-banner {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.hm-world-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hm-world-row {
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 1.35rem;
    direction: rtl;
  }

  .hm-world-row:not(:has(.hm-world-ad .hm-ad-slot)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-world-row:not(:has(.hm-world-ad .hm-ad-slot)) .hm-world-ad {
    display: none;
  }
}

.hm-world-main {
  min-width: 0;
  direction: rtl;
}

.hm-world-heading {
  margin: 0 0 1.25rem;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(165, 165, 165, 0.28);
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #364349;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.hm-world-heading a {
  color: inherit;
  text-decoration: none;
}

.hm-world-heading a:hover {
  color: var(--color-primary);
}

.hm-world-heading::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #315afe;
  order: -1;
}

.hm-world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 0.95rem;
}

.hm-world-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.hm-world-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-image-bg);
}

.hm-world-card-media img,
.hm-world-card-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-world-card-title {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #364349;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-world-card:hover .hm-world-card-title {
  color: var(--color-primary);
}

.hm-world-card-date {
  display: block;
  margin-top: auto;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #333;
  line-height: 1.4;
  direction: rtl;
  unicode-bidi: isolate;
}

.hm-world-ad {
  min-width: 0;
  direction: ltr;
}

.hm-ad-world-side {
  width: 100%;
  min-height: 280px;
}

.hm-ad-world-side img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

html[data-theme="dark"] .hm-world-heading,
html[data-theme="dark"] .hm-world-card-title {
  color: #e8eaed;
}

html[data-theme="dark"] .hm-world-heading {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hm-world-card-date {
  color: #8b93a0;
}

@media (max-width: 700px) {
  .hm-world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }

  .hm-world-card-title {
    font-size: 16px;
  }

  .hm-world-card-date {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hm-world-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post-strip-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.post-strip-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-dhivehi);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-text);
}

.post-strip-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.post-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.post-strip-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  color: var(--color-text);
  transition: box-shadow 0.2s, color 0.15s;
  min-height: 100%;
}

.post-strip-card:hover {
  color: var(--color-primary);
  box-shadow: 0 3px 12px var(--color-card-hover-shadow);
}

.post-strip-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
}

.post-strip-card-image img,
.post-strip-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-strip-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem 0.85rem 0.85rem;
  text-align: right;
  direction: rtl;
}

.post-strip-card-title {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
  flex: 1;
}

.post-strip-card-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  margin-top: auto;
  align-self: flex-start;
  width: fit-content;
  direction: rtl;
  unicode-bidi: isolate;
}

/* Popular posts — ranked row under latest news */
.home-popular-posts {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-bottom: 2.5rem;
  padding-block: 1.35rem 1.25rem;
  background: #f5f5f5;
  border-block: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.home-popular-posts-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

.home-popular-posts-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.15rem;
}

.home-popular-posts-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary);
}

.home-popular-posts-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.home-popular-posts-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  direction: rtl;
}

.home-popular-posts-title-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.home-popular-posts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  direction: rtl;
}

.home-popular-posts-card {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-popular-posts-card:hover {
  color: var(--color-primary);
}

.home-popular-posts-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
}

.home-popular-posts-card-image img,
.home-popular-posts-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-popular-posts-rank {
  position: absolute;
  top: 0.45rem;
  inset-inline-start: 0.45rem;
  inset-inline-end: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.home-popular-posts-card-body {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0 0;
  text-align: right;
  direction: rtl;
}

.home-popular-posts-card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.home-popular-posts-card-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  align-self: flex-start;
  width: fit-content;
  direction: rtl;
  unicode-bidi: isolate;
}

html[data-theme="dark"] .home-popular-posts {
  background: rgba(255, 255, 255, 0.04);
  border-block-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .home-popular-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-popular-posts-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .home-popular-posts {
    margin-bottom: 1.75rem;
    padding-block: 1rem 0.9rem;
  }

  .home-popular-posts-title {
    font-size: 1.1rem;
  }

  .home-popular-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    direction: rtl;
  }

  .home-popular-posts-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .home-popular-posts-card:last-child {
    border-bottom: none;
  }

  .home-popular-posts-card-image {
    width: 7.5rem;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
  }

  .home-popular-posts-card-body {
    flex: 1;
    padding: 0;
    min-width: 0;
  }

  .home-popular-posts-card-title {
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
  }
}

/* Reels — vertical short-form video carousel */
.home-reels {
  width: 100%;
  margin-bottom: 2.5rem;
  padding: 1.35rem 1.15rem 1.2rem;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-sizing: border-box;
}

.home-reels-inner {
  width: 100%;
}

.home-reels-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.15rem;
}

.home-reels-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary);
}

.home-reels-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.home-reels-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
  color: var(--color-primary);
}

.home-reels-title-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.home-reels-title-icon {
  display: block;
  flex-shrink: 0;
}

.home-reels-carousel-wrap {
  position: relative;
  width: 100%;
}

.home-reels-track-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.home-reels-track {
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 0.55rem 0.4rem;
  padding-inline: 0.25rem;
}

.home-reels-track::-webkit-scrollbar {
  display: none;
}

.home-reels-card {
  flex: 0 0 auto;
  width: 9.25rem;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
}

.home-reels-card.is-hovered {
  transform: translateY(-4px);
  z-index: 3;
}

.home-reels-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.25s ease;
}

.home-reels-card.is-hovered .home-reels-card-media {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.home-reels-card-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.home-reels-card-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.22s ease;
  pointer-events: none;
  z-index: 4;
}

.home-reels-card.is-hovered .home-reels-card-ring {
  border-color: rgba(255, 255, 255, 0.45);
}

.home-reels-card-poster,
.home-reels-card-visual img,
.home-reels-card-visual .placeholder-image,
.home-reels-card-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 0.28s ease, transform 0.4s ease;
}

.home-reels-card-poster.is-hidden,
.home-reels-card-visual img.is-hidden {
  opacity: 0;
}

.home-reels-card-preview-video {
  opacity: 0;
}

.home-reels-card-preview-video.is-playing,
.home-reels-card.is-hovered .home-reels-card-preview-video,
.home-reels-card-preview-video.is-idle-visible {
  opacity: 1;
}

.home-reels-card:not(.has-preview).is-hovered .home-reels-card-visual img,
.home-reels-card:not(.has-preview).is-hovered .home-reels-card-poster {
  transform: scale(1.05);
}

.home-reels-card-fallback {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
}

.home-reels-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 2;
}

.home-reels-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-reels-card:hover .home-reels-play,
.home-reels-card:focus-visible .home-reels-play {
  opacity: 1;
}

.home-reels-live-badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.home-reels-live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(50, 90, 255, 0.55);
  animation: home-reels-pulse 1.4s ease infinite;
}

@keyframes home-reels-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 90, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(50, 90, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 90, 255, 0);
  }
}

.home-reels-platform {
  display: none;
}

.home-reels-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.85rem 0.5rem 0.45rem;
  pointer-events: none;
}

.home-reels-card-caption span {
  display: -webkit-box;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  line-height: 1.45;
  color: #fff;
  text-align: right;
  direction: rtl;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.home-reels-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.home-reels-nav:hover:not(.is-disabled) {
  background: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 22px rgba(50, 90, 255, 0.38);
}

.home-reels-nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.home-reels-nav-prev {
  left: 0.5rem;
}

.home-reels-nav-next {
  right: 0.5rem;
}

/* Reels fullscreen player */
.home-reels-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-reels-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.home-reels-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.home-reels-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.home-reels-modal-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 92vh;
}

.home-reels-modal-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(100%, 28rem);
  padding-inline: 1rem;
}

.home-reels-modal-nav-spacer {
  width: 2.75rem;
  flex-shrink: 0;
}

.home-reels-modal-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-shrink: 0;
  min-width: 2.75rem;
}

.home-reels-modal-video,
.home-reels-modal-embed {
  width: min(340px, calc(100vw - 8rem));
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  border: none;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

.home-reels-modal-embed {
  object-fit: contain;
}

.home-reels-modal-views {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
}

.home-reels-modal-mute {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.home-reels-modal-mute:hover:not(.is-disabled) {
  background: rgba(255, 255, 255, 0.24);
}

.home-reels-modal-mute.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.home-reels-modal-caption {
  margin: 0.75rem 0 0;
  max-width: min(340px, calc(100vw - 8rem));
  font-family: var(--font-heading);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.home-reels-modal-nav {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.home-reels-modal-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.home-reels-modal-nav-prev,
.home-reels-modal-nav-next {
  position: static;
  transform: none;
}

.home-reels-modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 88vw);
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #1e293b;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  padding: 1rem;
  text-align: center;
}

html[data-theme="dark"] .home-reels {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-reels-nav {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .home-reels-nav:hover:not(.is-disabled) {
  background: var(--color-primary);
}

@media (max-width: 1024px) {
  .home-reels-card {
    width: 8.5rem;
  }
}

@media (max-width: 640px) {
  .home-reels {
    margin-bottom: 1.75rem;
    padding: 1rem 0.85rem 0.85rem;
    border-radius: 14px;
  }

  .home-reels-title {
    font-size: 1.1rem;
  }

  .home-reels-title-icon-wrap svg {
    width: 22px;
    height: 22px;
  }

  .home-reels-card {
    width: 7.5rem;
  }

  .home-reels-track {
    gap: 10px;
  }

  .home-reels-nav {
    width: 2.15rem;
    height: 2.15rem;
  }

  .home-reels-nav-prev {
    left: 0.35rem;
  }

  .home-reels-nav-next {
    right: 0.35rem;
  }

  .home-reels-modal-layout {
    gap: 0.65rem;
    padding-inline: 0.5rem;
  }

  .home-reels-modal-nav,
  .home-reels-modal-mute,
  .home-reels-modal-nav-spacer {
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
  }

  .home-reels-modal-video,
  .home-reels-modal-embed,
  .home-reels-modal-caption {
    max-width: min(300px, calc(100vw - 6.5rem));
  }
}

.post-strip-more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.post-strip-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 11rem;
  padding: 0.72rem 1.85rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(50, 90, 255, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.post-strip-more-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(50, 90, 255, 0.28);
}

.post-strip-more-btn:active:not(:disabled) {
  transform: translateY(0);
}

.post-strip-more-btn.is-loading,
.post-strip-more-btn:disabled {
  opacity: 0.88;
  cursor: wait;
  transform: none;
}

.post-strip-more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.post-strip-more-btn:hover:not(:disabled) .post-strip-more-arrow {
  transform: translateX(3px);
}

.post-strip-more-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: post-strip-spin 0.7s linear infinite;
}

@keyframes post-strip-spin {
  to { transform: rotate(360deg); }
}

.post-strip-card--enter {
  animation: post-strip-card-enter 0.48s ease both;
}

@keyframes post-strip-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .post-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-strip-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    direction: rtl;
  }

  .post-strip-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
  }

  .post-strip-card:last-child {
    border-bottom: none;
  }

  .post-strip-card:hover {
    box-shadow: none;
    color: var(--color-primary);
  }

  .post-strip-card:active {
    opacity: 0.88;
  }

  .post-strip-card-image {
    flex-shrink: 0;
    width: 96px;
    height: 68px;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .post-strip-card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    text-align: right;
  }

  .post-strip-card-title {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
    -webkit-line-clamp: 3;
    flex: none;
  }

  .post-strip-card-time {
    margin-top: 0.45rem;
    font-size: 0.72rem;
  }
}

/* Section titles */
.section-title {
  font-family: var(--font-dhivehi);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-lead {
  margin: -0.75rem 0 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: right;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 1.2em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
  background: var(--color-card-bg);
  color: var(--color-text);
}

.post-card:hover {
  box-shadow: 0 4px 16px var(--color-card-hover-shadow);
}

.post-card-image {
  aspect-ratio: 16/10;
  background: var(--color-surface);
  overflow: hidden;
}

.post-card-image img,
.post-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-card-image img,
.post-card:hover .post-card-image .placeholder-image {
  transform: scale(1.03);
}

.post-card-body {
  padding: 1rem;
  text-align: right;
}

.post-card-category {
  font-family: var(--font-dhivehi);
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.post-card-title {
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.post-card-excerpt {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.2rem 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.post-card-meta-sep {
  color: var(--color-muted);
  opacity: 0.55;
  user-select: none;
}

.post-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Category archive page */
.category-page {
  padding-top: 1.15rem;
  padding-bottom: 3rem;
  direction: rtl;
}

/* www.naares.com Elementor category archive — main grid + latest sidebar */
.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 322px);
  gap: 1.5rem 1.75rem;
  align-items: start;
  direction: rtl;
}

.category-main {
  min-width: 0;
}

.category-archive-title {
  margin: 0 0 1.25rem;
  padding: 0 0 0.65rem;
  border-bottom: 4px solid var(--color-primary);
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2.075rem);
  font-weight: 400;
  line-height: 1.35;
  color: #364349;
  text-align: right;
}

.category-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 30px;
  margin-bottom: 1.75rem;
}

.category-archive-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.category-archive-card-media {
  overflow: hidden;
  aspect-ratio: 500 / 290;
  background: var(--color-surface);
}

.category-archive-card-media img,
.category-archive-card-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-archive-card-title {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #364349;
  text-align: right;
}

.category-archive-card:hover .category-archive-card-title {
  color: var(--color-primary);
}

.category-archive-card-date {
  display: block;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  color: #999;
  text-align: right;
  direction: rtl;
  unicode-bidi: isolate;
}

.category-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-sidebar-ad {
  width: 100%;
}

.category-sidebar-ad .hm-ad-body,
.category-sidebar-ad img,
.category-sidebar-ad .hm-ad-image {
  width: 100%;
  max-width: 100%;
}

.category-sidebar-latest-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.15rem 0 0;
  border-bottom: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: #364349;
  text-align: right;
}

.category-sidebar-latest-title::before {
  content: "";
  width: 5px;
  height: 1.15em;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-primary);
}

.category-sidebar-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Segmented timeline on the inline-start (right in RTL) — matches www.naares.com */
.category-sidebar-latest-item {
  position: relative;
  margin: 8px 5px 8px 0;
  padding-inline-start: 1.15rem;
  border-inline-start: 2px dotted #e0dada;
}

.category-sidebar-latest-item + .category-sidebar-latest-item {
  margin-top: 8px;
}

.category-sidebar-latest-link {
  display: block;
  padding: 0.1rem 0.15rem 0.2rem;
  margin: 0;
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.category-sidebar-latest-link:hover {
  background: #efefef;
}

.thaana-datetime {
  unicode-bidi: isolate;
  direction: rtl;
  font-family: "MV Faseyha", "Waheed", var(--font-dhivehi), sans-serif;
  line-height: 1.45;
  white-space: normal;
}

html[lang="en"] .thaana-datetime {
  direction: ltr;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

time .thaana-datetime {
  direction: rtl;
}

html[lang="en"] time .thaana-datetime {
  direction: ltr;
}

.thaana-datetime-time {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.thaana-datetime-sep {
  white-space: pre;
}

.category-sidebar-latest-date {
  display: block;
  font-family: "MV Faseyha", "Waheed", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  color: #b3b3b3;
  direction: rtl;
  unicode-bidi: isolate;
}

.category-sidebar-latest-headline {
  position: relative;
  display: block;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #364349;
}

.category-sidebar-latest-headline::before {
  content: "";
  position: absolute;
  top: 0.45em;
  /* Center 9px dot on the 2px timeline border */
  inset-inline-start: calc(-1.15rem - 5.5px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3050d1;
  z-index: 1;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.category-breadcrumb a {
  color: var(--color-muted);
  transition: color 0.15s;
}

.category-breadcrumb a:hover {
  color: var(--color-primary);
}

.category-breadcrumb-sep {
  opacity: 0.45;
}

.category-hero {
  margin-bottom: 1.75rem;
}

.category-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(50, 90, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.98) 50%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow:
    0 14px 40px rgba(50, 90, 255, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.03);
  animation: category-hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.category-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.category-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(50, 90, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 90, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 15%, transparent 100%);
}

.category-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
}

.category-hero-orb--a {
  width: 180px;
  height: 180px;
  top: -40px;
  inset-inline-start: -30px;
  background: rgba(50, 90, 255, 0.14);
}

.category-hero-orb--b {
  width: 140px;
  height: 140px;
  bottom: -50px;
  inset-inline-end: 8%;
  background: rgba(50, 90, 255, 0.08);
}

.category-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  direction: rtl;
  align-items: stretch;
  min-height: 220px;
}

.category-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.15rem;
  padding-inline: 1.35rem 1rem;
  min-height: 220px;
}

.category-hero-visual--empty {
  background:
    radial-gradient(circle at 30% 40%, rgba(50, 90, 255, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(50, 90, 255, 0.05) 0%, transparent 50%);
}

.category-hero-emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(50, 90, 255, 0.18);
}

.category-hero-emblem-ring--outer {
  width: 148px;
  height: 148px;
  animation: category-emblem-spin 18s linear infinite;
}

.category-hero-emblem-ring--inner {
  width: 104px;
  height: 104px;
  border-style: dashed;
  border-color: rgba(50, 90, 255, 0.24);
  animation: category-emblem-spin 12s linear infinite reverse;
}

.category-hero-emblem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(50, 90, 255, 0.14) 0%, rgba(50, 90, 255, 0.06) 100%);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(50, 90, 255, 0.12);
}

.category-hero-visual-lines {
  position: absolute;
  inset: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px dashed rgba(50, 90, 255, 0.14);
  pointer-events: none;
}

.category-hero-mosaic-shell {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.category-hero-mosaic-glow {
  position: absolute;
  inset: 8% 6% -6% 6%;
  border-radius: 24px;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(50, 90, 255, 0.14) 0%,
    rgba(50, 90, 255, 0.04) 45%,
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.category-hero-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  direction: rtl;
  gap: 0.6rem;
  width: 100%;
  aspect-ratio: 5 / 4;
  padding: 0.5rem;
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 250, 250, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 42px rgba(15, 23, 42, 0.1),
    0 4px 12px rgba(50, 90, 255, 0.06);
  backdrop-filter: blur(10px);
}

.category-hero-mosaic--count-3 {
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.category-hero-mosaic--count-2 {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: minmax(0, 1fr);
}

.category-hero-mosaic--count-1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.category-hero-mosaic-item {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    border-color 0.25s ease;
}

.category-hero-mosaic-item--enter {
  animation: category-mosaic-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--mosaic-i, 0) * 70ms + 80ms);
}

.category-hero-mosaic-item img,
.category-hero-mosaic-item .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-hero-mosaic-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 38%,
    rgba(15, 23, 42, 0.28) 100%
  );
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.category-hero-mosaic-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.category-hero-mosaic--count-3 .category-hero-mosaic-item--0 {
  grid-column: 1;
  grid-row: 1 / -1;
}

.category-hero-mosaic--count-3 .category-hero-mosaic-item--1 {
  grid-column: 2;
  grid-row: 1;
}

.category-hero-mosaic--count-3 .category-hero-mosaic-item--2 {
  grid-column: 2;
  grid-row: 2;
}

.category-hero-mosaic--count-2 .category-hero-mosaic-item--0 {
  grid-column: 1;
  grid-row: 1;
}

.category-hero-mosaic--count-2 .category-hero-mosaic-item--1 {
  grid-column: 2;
  grid-row: 1;
}

.category-hero-mosaic-item:hover {
  transform: translateY(-3px);
  border-color: rgba(50, 90, 255, 0.28);
  box-shadow:
    0 18px 36px rgba(50, 90, 255, 0.14),
    0 6px 14px rgba(15, 23, 42, 0.1);
  z-index: 2;
}

.category-hero-mosaic-item:hover img,
.category-hero-mosaic-item:hover .placeholder-image {
  transform: scale(1.05);
}

.category-hero-mosaic-item:hover .category-hero-mosaic-shine {
  opacity: 0.85;
}

@keyframes category-mosaic-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.category-hero-visual-chips {
  position: absolute;
  top: 1.35rem;
  inset-inline-start: 1.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  z-index: 5;
  pointer-events: none;
}

.category-hero-visual-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(50, 90, 255, 0.12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  backdrop-filter: blur(8px);
}

.category-hero-visual-chip--page {
  font-family: var(--font-sans);
}

.category-hero-visual-accent {
  position: absolute;
  inset-inline-end: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(50, 90, 255, 0.35) 30%,
    rgba(50, 90, 255, 0.65) 50%,
    rgba(50, 90, 255, 0.35) 70%,
    transparent 100%
  );
  opacity: 0.7;
}

.category-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding-block: 2rem 1.85rem;
  padding-inline: 1.35rem 2rem;
  text-align: right;
  direction: rtl;
  border-inline-start: 1px solid rgba(50, 90, 255, 0.1);
}

.category-hero-content::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(50, 90, 255, 0.45) 22%,
    var(--color-primary) 50%,
    rgba(50, 90, 255, 0.45) 78%,
    transparent 100%
  );
}

.category-hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 90, 255, 0.18);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.1) 0%, rgba(50, 90, 255, 0.04) 100%);
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(50, 90, 255, 0.08);
}

.category-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.8vw, 2.9rem);
  font-weight: 400;
  line-height: 1.28;
  color: var(--color-text);
  text-wrap: balance;
}

.category-hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.category-hero-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.65rem;
  padding-inline: 1.15rem 1rem;
  direction: rtl;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 90, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.category-hero-stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

.category-hero-stat-label {
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-secondary-text);
}

.category-hero-page-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

@keyframes category-emblem-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.category-featured {
  margin-bottom: 1.75rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
  box-shadow:
    0 2px 6px var(--color-card-shadow),
    0 12px 32px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
  animation: category-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.category-featured:hover {
  transform: translateY(-3px);
  border-color: rgba(50, 90, 255, 0.2);
  box-shadow:
    0 6px 14px var(--color-card-shadow),
    0 20px 44px rgba(50, 90, 255, 0.09);
}

.category-featured-link {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  direction: rtl;
  color: inherit;
  text-decoration: none;
  min-height: 300px;
}

.category-featured-media {
  position: relative;
  overflow: hidden;
  background: var(--color-image-bg);
  min-height: 220px;
}

.category-featured-media img,
.category-featured-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-featured-media-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.category-featured:hover .category-featured-media img,
.category-featured:hover .category-featured-media .placeholder-image {
  transform: scale(1.05);
}

.category-featured:hover .category-featured-media-shine {
  opacity: 1;
}

.category-featured-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.92);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.76rem;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(50, 90, 255, 0.35);
  z-index: 2;
}

.category-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-block: 2rem 1.85rem;
  padding-inline: 1.5rem 2rem;
  text-align: right;
  direction: rtl;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.94) 100%);
}

.category-featured-title {
  position: relative;
  margin: 0;
  padding-inline-end: 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  transition: color 0.22s ease;
}

.category-featured-title::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  inset-inline-end: 0;
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(50, 90, 255, 0.45) 25%,
    var(--color-primary) 50%,
    rgba(50, 90, 255, 0.45) 75%,
    transparent 100%
  );
}

.category-featured:hover .category-featured-title {
  color: var(--color-primary);
}

.category-featured-excerpt {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.category-featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.category-featured-author {
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-secondary-text);
}

.category-featured-meta time {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 0.82rem;
  font-weight: 500;
}

.category-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.08);
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}

.category-featured:hover .category-featured-read {
  opacity: 1;
  transform: translateX(0);
  background: rgba(50, 90, 255, 0.12);
}

.category-post-grid {
  direction: ltr;
  margin-bottom: 2rem;
}

.category-empty-state {
  margin: 1.25rem 0 2rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  color: var(--color-muted);
  border-radius: 8px;
  border: 1px dashed var(--color-border);
  background: var(--color-surface);
}

.category-page .pagination--archive {
  justify-content: flex-start;
  margin: 0.25rem 0 0;
  flex-direction: row;
  gap: 0;
}

.pagination--archive a,
.pagination--archive span.active,
.pagination--archive .pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px;
  padding: 0;
  border: 1px solid #ececec;
  border-radius: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1;
  color: #585858;
  background: transparent;
  text-decoration: none;
}

.pagination--archive span.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination--archive a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.pagination--archive .pagination-dots {
  border-color: transparent;
  color: #585858;
}

@keyframes category-hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-theme="dark"] .category-hero-shell {
  background:
    linear-gradient(145deg, rgba(28, 30, 38, 0.98) 0%, rgba(36, 24, 28, 0.96) 50%, rgba(28, 30, 38, 0.98) 100%);
  border-color: rgba(50, 90, 255, 0.2);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .category-hero-content {
  border-inline-start-color: rgba(50, 90, 255, 0.16);
}

html[data-theme="dark"] .category-hero-stat-card {
  background: rgba(28, 30, 38, 0.82);
  border-color: rgba(50, 90, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .category-hero-kicker {
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.2) 0%, rgba(50, 90, 255, 0.08) 100%);
  border-color: rgba(50, 90, 255, 0.28);
}

html[data-theme="dark"] .category-hero-mosaic {
  background:
    linear-gradient(155deg, rgba(34, 36, 44, 0.92) 0%, rgba(40, 28, 32, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .category-hero-mosaic-item {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .category-hero-visual-chip {
  background: rgba(28, 30, 38, 0.88);
  border-color: rgba(50, 90, 255, 0.2);
}

html[data-theme="dark"] .category-featured-body {
  background:
    linear-gradient(165deg, rgba(30, 32, 40, 0.98) 0%, rgba(36, 26, 30, 0.94) 100%);
}

html[data-theme="dark"] .category-featured {
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .category-featured:hover {
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.25),
    0 20px 44px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .category-empty-state {
  background: var(--color-card-bg);
  border-color: var(--color-card-border);
}

html[data-theme="dark"] .category-archive-title,
html[data-theme="dark"] .category-archive-card-title,
html[data-theme="dark"] .category-sidebar-latest-title,
html[data-theme="dark"] .category-sidebar-latest-headline {
  color: var(--color-text);
}

html[data-theme="dark"] .category-archive-card-date,
html[data-theme="dark"] .category-sidebar-latest-date {
  color: var(--color-muted);
}

html[data-theme="dark"] .category-sidebar-latest-item {
  border-inline-start-color: #2e3440;
}

html[data-theme="dark"] .category-sidebar-latest-link:hover {
  background: #242830;
}

html[data-theme="dark"] .pagination--archive a,
html[data-theme="dark"] .pagination--archive .pagination-dots {
  border-color: var(--color-border);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .category-hero-shell,
  .category-featured {
    animation: none;
  }

  .category-hero-emblem-ring--outer,
  .category-hero-emblem-ring--inner {
    animation: none;
  }

  .category-featured,
  .category-featured-media img,
  .category-featured-media .placeholder-image,
  .category-featured-read,
  .category-featured-title,
  .category-hero-mosaic-item,
  .category-hero-mosaic-item img,
  .category-hero-mosaic-item .placeholder-image,
  .category-hero-mosaic-shine {
    transition: none;
  }

  .category-hero-mosaic-item--enter {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    gap: 1.25rem;
  }

  .category-archive-grid {
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 900px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .category-hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .category-hero-visual {
    min-height: 200px;
    padding: 1rem 1.15rem 0.5rem;
  }

  .category-hero-mosaic-shell {
    max-width: 100%;
  }

  .category-hero-mosaic {
    aspect-ratio: 16 / 10;
    padding: 0.45rem;
    border-radius: 18px;
  }

  .category-hero-mosaic-item {
    border-radius: 14px;
  }

  .category-hero-content {
    border-inline-start: none;
    border-top: 1px solid rgba(50, 90, 255, 0.08);
    padding-block: 1.45rem 1.35rem;
    padding-inline: 1.25rem;
    gap: 0.7rem;
  }

  .category-hero-content::before {
    display: none;
  }

  .category-hero-title {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  .category-hero-stat-value {
    font-size: 1.35rem;
  }

  .category-hero-stat-label {
    font-size: 0.95rem;
  }

  .category-hero-visual-accent {
    display: none;
  }

  .category-hero-visual-chips {
    top: 1rem;
    inset-inline-start: 1.2rem;
  }
  .category-featured-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .category-featured-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .category-featured-body {
    padding-block: 1.35rem 1.4rem;
    padding-inline: 1.25rem;
    gap: 0.85rem;
  }

  .category-featured-title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    -webkit-line-clamp: 3;
    padding-inline-end: 0.85rem;
  }

  .category-featured-read {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .category-page {
    padding-top: 0.85rem;
    padding-bottom: 2.25rem;
  }

  .category-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .category-archive-title {
    font-size: 1.55rem;
    margin-bottom: 1rem;
  }

  .category-archive-card-title,
  .category-sidebar-latest-headline {
    font-size: 16px;
  }

  .category-sidebar-latest-title {
    font-size: 1.2rem;
  }

  .category-breadcrumb {
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
  }

  .category-hero {
    margin-bottom: 1.35rem;
  }

  .category-hero-shell {
    border-radius: 16px;
  }

  .category-hero-content {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .category-hero-kicker {
    font-size: 0.84rem;
    padding: 0.34rem 0.8rem;
  }

  .category-hero-visual {
    min-height: 170px;
    padding: 0.85rem 0.85rem 0.35rem;
  }

  .category-hero-mosaic {
    gap: 0.45rem;
  }

  .category-featured {
    margin-bottom: 1.35rem;
    border-radius: 14px;
  }

  .category-featured-title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    -webkit-line-clamp: 3;
  }

  .category-featured-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.86rem;
  }

  .category-featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}

/* Article page */
.preview-banner {
  background: #fff8e5;
  border-bottom: 1px solid #f0d78c;
  color: #7a5b00;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
  text-align: center;
}

.preview-banner strong {
  font-weight: 700;
}

.article-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  margin: 1.75rem auto 2.5rem;
}

.article-main {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  --font-dhivehi: var(--font-article);
  --article-font-scale: 1.25;
}

.article-sidebar {
  --article-scroll-offset: 0px;
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--frontend-admin-bar-height) + var(--header-height) + var(--top-bar-height) + var(--article-scroll-offset) + 1.15rem);
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  z-index: 2;
  transition: top 0.35s ease;
}

body:has(#article-scroll-title.is-shown) .article-sidebar {
  --article-scroll-offset: 52px;
}

/* www.naares.com article sidebar ad (City Alum) — no “Advertisement” chrome */
.hm-ad-article-above-latest.hm-ad-slot {
  margin-bottom: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.hm-ad-article-above-latest .hm-ad-label {
  display: none;
}

.hm-ad-article-above-latest .hm-ad-body {
  padding: 0;
  min-height: 0;
}

.hm-ad-article-above-latest .hm-ad-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.hm-ad-article-above-latest .hm-ad-image {
  width: 100%;
  height: auto;
  display: block;
}

.hm-ad-article-rail.hm-ad-slot {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  border-radius: var(--radius-card) !important;
  background: #0b3f86;
  box-shadow: 0 16px 36px rgba(26, 48, 140, 0.1);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hm-ad-article-rail.hm-ad-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(26, 48, 140, 0.16);
}

.article-sidebar > .hm-ad-article-rail.hm-ad-slot {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: min(600px, calc(100dvh - var(--frontend-admin-bar-height) - var(--header-height) - var(--top-bar-height) - var(--article-scroll-offset) - 2.3rem));
  margin: 0;
  border-radius: 18px !important;
  overflow: hidden;
}

.article-sidebar > .hm-ad-article-rail.hm-ad-slot:hover {
  transform: none;
  box-shadow: 0 18px 36px rgba(26, 48, 140, 0.18);
}

.article-sidebar .hm-ad-article-rail-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-sidebar .hm-ad-article-rail-link img,
.article-sidebar .hm-ad-article-rail:hover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  transform: none;
}

.article-sidebar > .article-sidebar-latest {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-primary) 42%, transparent) transparent;
  padding-bottom: 1.6rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 2rem), transparent 100%);
}

.article-sidebar > .article-sidebar-latest::-webkit-scrollbar {
  width: 6px;
}

.article-sidebar > .article-sidebar-latest::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-primary) 45%, transparent);
  border-radius: 99px;
}

.hm-ad-article-rail-link {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.hm-ad-article-rail-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 512 / 1024;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-ad-article-rail:hover img {
  transform: scale(1.02);
}

.article-content .hm-ad-article-inline.hm-ad-slot {
  float: left; /* text wraps on the right */
  clear: none;
  width: min(320px, 42%);
  max-width: 320px;
  margin: 0.2rem 1.35rem 0.85rem 0;
  border: 0;
  border-radius: var(--radius-card) !important;
  background: #0b3f86;
  box-shadow: 0 12px 28px rgba(11, 63, 134, 0.12);
  overflow: hidden;
}

@media (max-width: 767px) {
  .article-content .hm-ad-article-inline.hm-ad-slot {
    float: none;
    width: min(100%, 360px);
    max-width: 360px;
    margin: 1.25rem auto 1.5rem;
  }
}

.article-content .hm-ad-article-inline .hm-ad-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.article-content .hm-ad-article-inline .hm-ad-body {
  padding: 0;
  min-height: 0;
  background: transparent;
}

.hm-ad-article-inline-link,
.article-content .hm-ad-article-inline .hm-ad-link {
  display: block;
  line-height: 0;
  border-radius: 0 !important;
}

.article-content .hm-ad-article-inline img,
.article-content .hm-ad-article-inline .hm-ad-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: inherit !important;
}

.article-content .hm-ad-article-inline.hm-ad-slot:hover {
  box-shadow: 0 22px 48px rgba(11, 63, 134, 0.22);
}

@media (min-width: 1025px) {
  .hm-ad-article-rail--mobile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-sidebar,
  .hm-ad-article-rail.hm-ad-slot,
  .hm-ad-article-rail-link img {
    transition: none;
  }

  .hm-ad-article-rail.hm-ad-slot:hover,
  .hm-ad-article-rail:hover img {
    transform: none;
  }
}

/* Article “ފަހުގެ” uses same timeline as category; title is 18px on posts */
.article-sidebar-latest .category-sidebar-latest-title {
  font-size: 18px;
  margin-bottom: 1rem;
}

.article-sidebar-latest.article-latest-posts--mobile {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.hm-ad-slot {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-ad-bg);
  border: 1px solid var(--color-ad-border);
  margin-bottom: 1.25rem;
  text-align: center;
  overflow: hidden;
}

.hm-ad-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: var(--color-ad-label-text);
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-ad-label-bg);
  border-bottom: 1px solid var(--color-ad-border);
}

.hm-ad-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hm-ad-link {
  display: block;
  width: 100%;
  max-width: 100%;
  line-height: 0;
}

.hm-ad-image {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hm-ad-hero-featured.hm-ad-home-promo {
  margin-bottom: 0;
  width: 100%;
  aspect-ratio: 282 / 394;
  height: auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: var(--color-muted-surface);
}

.hm-ad-hero-featured .hm-ad-label {
  display: none;
}

.hm-ad-hero-featured .hm-ad-body {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  background: transparent;
}

.hm-ad-hero-featured .hm-ad-link {
  flex: 1;
  display: flex;
  min-height: 0;
  height: 100%;
  line-height: 0;
}

.hm-ad-hero-featured .hm-ad-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hm-ad-footer-banner .hm-ad-body,
.hm-ad-section-banner .hm-ad-body,
.hm-ad-article-banner .hm-ad-body {
  padding: 0;
}

.hm-ad-footer-banner .hm-ad-image,
.hm-ad-section-banner .hm-ad-image,
.hm-ad-article-banner .hm-ad-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Above-latest / section banners — match www.naares.com a-1 strip (no chrome) */
.hm-ad-section-banner.hm-ad-slot {
  border: none;
  background: transparent;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.hm-ad-section-banner .hm-ad-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top banner — below header, match www.naares.com Call Way strip */
.hm-ad-top-banner-wrap {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

.hm-ad-top-banner.hm-ad-slot {
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  background: transparent;
  text-align: inherit;
  overflow: visible;
}

.hm-ad-top-banner .hm-ad-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hm-ad-top-banner .hm-ad-body {
  padding: 0;
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 136;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

.hm-ad-top-banner .hm-ad-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.hm-ad-top-banner .hm-ad-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.hm-ad-top-banner .hm-ad-html,
.hm-ad-top-banner .hm-ad-script {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.hm-ad-hero-top-wrap {
  margin: 0;
  padding-top: 1.25rem;
  padding-bottom: 0;
}

.hm-ad-hero-pair {
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 1.15rem;
  padding-bottom: 0.15rem;
}

.hm-ad-hero-pair .hm-ad-hero-pair-item.hm-ad-slot {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 12px !important;
  background: #111318;
  box-shadow: none;
  overflow: hidden;
}

.hm-ad-hero-pair .hm-ad-hero-pair-item .hm-ad-label {
  position: absolute;
  left: 8px;
  bottom: 6px;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 4px;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
  pointer-events: none;
}

.hm-ad-hero-pair .hm-ad-hero-pair-item .hm-ad-body {
  padding: 0;
  line-height: 0;
}

.hm-ad-hero-pair .hm-ad-hero-top-link,
.hm-ad-hero-pair .hm-ad-link {
  display: block;
  line-height: 0;
}

.hm-ad-hero-pair .hm-ad-hero-top-link img,
.hm-ad-hero-pair .hm-ad-image {
  display: block;
  width: 100%;
  height: 118px;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: #062447;
}

.hm-ad-hero-pair .hm-ad-hero-top-link img {
  height: auto;
  aspect-ratio: 2432 / 420;
  object-fit: fill;
}

.hm-ad-hero-pair .hm-ad-header-left .hm-ad-hero-top-link img,
.hm-ad-hero-pair .hm-ad-header-right .hm-ad-hero-top-link img {
  aspect-ratio: 1024 / 196;
  object-fit: cover;
}

.hm-ad-hero-pair .hm-ad-header-left .hm-ad-label {
  left: auto;
  right: 8px;
  bottom: auto;
  top: 6px;
}

.hm-ad-hero-pair .hm-ad-hero-pair-item.hm-ad-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 720px) {
  .hm-ad-hero-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hm-ad-hero-pair .hm-ad-hero-top-link img,
  .hm-ad-hero-pair .hm-ad-image {
    height: 96px;
  }

  .hm-ad-hero-pair .hm-ad-header-left .hm-ad-hero-top-link img,
  .hm-ad-hero-pair .hm-ad-header-right .hm-ad-hero-top-link img {
    height: auto;
    aspect-ratio: 1024 / 196;
  }
}

.hm-ad-hero-top.hm-ad-slot {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  border-radius: var(--radius-card) !important;
  background: #0b3f86;
  box-shadow: 0 16px 36px rgba(26, 48, 140, 0.1);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hm-ad-hero-top-wrap .hm-ad-hero-top.hm-ad-slot {
  margin: 0;
}

.hm-ad-hero-top.hm-ad-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(26, 48, 140, 0.16);
}

.hm-ad-hero-top .hm-ad-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hm-ad-hero-top .hm-ad-body {
  padding: 0;
  display: block;
  line-height: 0;
}

.hm-ad-hero-top-link,
.hm-ad-hero-top .hm-ad-link {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.hm-ad-hero-top-link img,
.hm-ad-hero-top .hm-ad-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 2432 / 420;
  object-fit: fill;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-ad-hero-top:hover img,
.hm-ad-hero-top:hover .hm-ad-image {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hm-ad-hero-top.hm-ad-slot,
  .hm-ad-hero-top-link img,
  .hm-ad-hero-top .hm-ad-image {
    transition: none;
  }

  .hm-ad-hero-top.hm-ad-slot:hover,
  .hm-ad-hero-top:hover img,
  .hm-ad-hero-top:hover .hm-ad-image {
    transform: none;
  }
}

.hm-ad-image-desktop.hm-ad-has-mobile {
  display: none;
}

.hm-ad-image-mobile.hm-ad-has-desktop {
  display: block;
}

@media (min-width: 768px) {
  .hm-ad-image-desktop.hm-ad-has-mobile {
    display: block;
  }

  .hm-ad-image-mobile.hm-ad-has-desktop {
    display: none;
  }
}

.hm-ad-footer-banner,
.hm-ad-section-banner,
.hm-ad-article-banner {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.article-mobile-tail {
  display: none;
}

.hm-ad-article-banner--after-comments {
  display: none;
}

.hm-ad-after-comment.hm-ad-slot {
  margin: 1.35rem 0 0.35rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  border-radius: var(--radius-card) !important;
  background: #0b3f86;
  box-shadow: 0 16px 36px rgba(26, 48, 140, 0.1);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hm-ad-after-comment.hm-ad-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(26, 48, 140, 0.16);
}

.hm-ad-after-comment-link {
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: inherit;
}

.hm-ad-after-comment-link img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  max-width: none;
  aspect-ratio: 2432 / 810;
  object-fit: fill;
  object-position: center;
  border-radius: inherit !important;
}

@media (prefers-reduced-motion: reduce) {
  .hm-ad-after-comment.hm-ad-slot {
    transition: none;
  }

  .hm-ad-after-comment.hm-ad-slot:hover {
    transform: none;
  }
}

.hm-ad-footer-banner {
  margin-top: 1rem;
}

.hm-ad-sidebar .hm-ad-body {
  min-height: 250px;
}

.hm-ad-html,
.hm-ad-script {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hm-ad-html iframe,
.hm-ad-script iframe {
  max-width: 100%;
}

/* In-article floating ad — text wraps on the right (RTL) */
.article-content-chunk {
  display: contents;
}

.hm-ad-inline {
  float: left;
  width: min(300px, 46%);
  max-width: 300px;
  margin: 0.35rem 1.35rem 1rem 0;
  border-radius: 14px;
  border: 1px solid var(--color-ad-border);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.07);
  background: var(--color-card-bg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hm-ad-inline.hm-ad-slot {
  width: min(300px, 46%);
  max-width: 300px;
  margin-bottom: 0;
  text-align: center;
}

.hm-ad-inline:hover {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.1);
}

.hm-ad-inline .hm-ad-label {
  font-size: 0.58rem;
  padding: 0.35rem 0.55rem;
  background: linear-gradient(180deg, var(--color-ad-bg) 0%, var(--color-ad-label-bg) 100%);
  border-bottom: 1px solid var(--color-ad-border);
  color: var(--color-ad-label-text);
  letter-spacing: 0.06em;
}

.hm-ad-inline .hm-ad-body {
  padding: 0.5rem;
  background: var(--color-card-bg);
}

.hm-ad-inline .hm-ad-link,
.hm-ad-inline .hm-ad-image {
  border-radius: 10px;
}

.hm-ad-inline .hm-ad-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.article-content--with-inline-ad .social-embed,
.article-content--with-inline-ad figure,
.article-content--with-inline-ad .wp-caption,
.article-content--with-inline-ad div[id^="attachment_"],
.article-content--with-inline-ad .article-video,
.article-content--with-inline-ad .article-gallery-embed,
.article-content--with-inline-ad .article-video-gallery-embed,
.article-content--with-inline-ad blockquote:not(.twitter-tweet) {
  clear: left;
}

.article-content--with-inline-ad::after,
.article-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767px) {
  .hm-ad-inline,
  .hm-ad-inline.hm-ad-slot {
    float: none;
    display: block;
    width: min(100%, 320px);
    max-width: 320px;
    margin: 1.35rem auto 1.5rem;
    border-radius: 14px;
    border-color: var(--color-ad-border);
    box-shadow:
      0 1px 3px rgba(15, 23, 42, 0.04),
      0 8px 24px rgba(15, 23, 42, 0.07);
    background: linear-gradient(180deg, var(--color-ad-bg) 0%, var(--color-card-bg) 100%);
  }

  .hm-ad-inline .hm-ad-label {
    font-size: 0.6rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.07em;
    background: transparent;
    border-bottom: 1px solid var(--color-ad-border);
    color: var(--color-ad-label-text);
  }

  .hm-ad-inline .hm-ad-body {
    padding: 0.6rem 0.65rem 0.7rem;
    background: transparent;
  }

  .hm-ad-inline .hm-ad-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-image-bg);
  }

  .hm-ad-inline .hm-ad-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
  }

  .article-content--with-inline-ad .social-embed,
  .article-content--with-inline-ad figure,
  .article-content--with-inline-ad .wp-caption,
  .article-content--with-inline-ad div[id^="attachment_"],
  .article-content--with-inline-ad .article-video,
  .article-content--with-inline-ad .article-gallery-embed,
  .article-content--with-inline-ad .article-video-gallery-embed,
  .article-content--with-inline-ad blockquote:not(.twitter-tweet) {
    clear: none;
  }
}

.article-ad-slot {
  background: var(--color-ad-label-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
  text-align: center;
}

.article-ad-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-ad-label-text);
  padding: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-ad-placeholder {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  background: linear-gradient(180deg, var(--color-ad-border) 0%, var(--color-ad-bg) 100%);
}

.article-latest-posts {
  margin-bottom: 1.25rem;
}

.article-latest-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.article-latest-title-bar {
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  flex-shrink: 0;
}

.article-latest-list {
  display: flex;
  flex-direction: column;
}

.article-latest-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  color: inherit;
  transition: color 0.15s;
}

.article-latest-item:last-child {
  border-bottom: none;
}

.article-latest-item:hover {
  color: var(--color-primary);
}

.article-latest-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.article-latest-item-text h4 {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-latest-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  margin-top: 0.4rem;
  align-self: flex-start;
  width: fit-content;
  direction: rtl;
  unicode-bidi: isolate;
}

.article-latest-item-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 64px;
  overflow: hidden;
  background: var(--color-surface);
}

.article-latest-item-thumb img,
.article-latest-item-thumb .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-box {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 1.25rem;
}

.newsletter-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.newsletter-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #666;
  margin-bottom: 1rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.newsletter-form button {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.newsletter-form button:hover {
  background: var(--color-primary-dark);
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: "Waheed", "MV Waheed", var(--font-heading);
  font-size: 46px;
  line-height: 1.58;
  font-weight: 400;
  margin-bottom: 1.25rem;
  text-align: right;
  unicode-bidi: plaintext;
}

.article-scroll-title {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 90;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: #141820;
  pointer-events: none;
  transition: height 0.35s ease, opacity 0.3s ease;
}
.article-scroll-title.is-shown {
  height: 52px;
  opacity: 1;
  pointer-events: auto;
}
.article-scroll-title-inner {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.article-scroll-cat,
.article-scroll-sep,
.article-scroll-name {
  font-family: "Waheed", "MV Waheed", var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.article-scroll-cat,
.article-scroll-sep {
  color: #8ea4ff;
  flex: none;
}
.article-scroll-cat { text-decoration: none; }
.article-scroll-cat:hover { color: #fff; }
.article-scroll-sep { margin-inline: 12px; }
.article-scroll-name {
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="en"] .article-scroll-cat,
html[lang="en"] .article-scroll-sep,
html[lang="en"] .article-scroll-name {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .article-scroll-title.is-shown { height: 46px; }
  .article-scroll-cat,
  .article-scroll-sep,
  .article-scroll-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-scroll-title { transition: none; }
}

.article-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  margin-bottom: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  direction: ltr;
}

.article-share-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.fb-share-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.fb-share-modal__panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  color: #1d2327;
}

.fb-share-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  color: #646970;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.fb-share-modal__close:hover {
  color: #1d2327;
}

.fb-share-modal__title {
  margin: 0 2rem 0.65rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d2327;
}

.fb-share-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #50575e;
}

.fb-share-modal__steps {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #3c434a;
}

.fb-share-modal__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #646970;
}

.fb-share-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #f6f7f7;
  font-family: var(--font-article, inherit);
  font-size: 1rem;
  line-height: 1.65;
  color: #1d2327;
  resize: vertical;
}

.fb-share-modal__status {
  margin: 0.55rem 0 0.85rem;
  font-size: 0.8rem;
  color: #646970;
}

.fb-share-modal__status.is-ok {
  color: #007017;
  font-weight: 600;
}

.fb-share-modal__actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fb-share-modal__btn {
  border: 1px solid #c3c4c7;
  background: #f6f7f7;
  color: #1d2327;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.fb-share-modal__btn:hover {
  background: #fff;
  border-color: #1877f2;
  color: #1877f2;
}

.fb-share-modal__btn.is-primary {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.fb-share-modal__btn.is-primary:hover {
  background: #1464d0;
  border-color: #1464d0;
  color: #fff;
}

.article-share-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.article-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.article-share-icon:hover {
  transform: scale(1.08);
  opacity: 0.92;
}

.article-share-icon--telegram {
  background: #29a9eb;
}

.article-share-icon--whatsapp {
  background: #25d366;
}

.article-share-icon--viber {
  background: #7360f2;
}

.article-share-icon--x {
  background: #000;
}

.article-share-icon--facebook {
  background: #1877f2;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  direction: ltr;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.article-byline-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  text-align: right;
  direction: rtl;
  min-width: 0;
}

.article-author {
  font-family: var(--font-article);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
  white-space: nowrap;
}

a.article-author--link {
  text-decoration: none;
  color: var(--color-primary);
}

a.article-author--link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-author-avatar-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.article-author-avatar-link:hover .article-author-avatar {
  border-color: color-mix(in srgb, var(--color-primary) 55%, #e6e6e6);
}

.article-author-site {
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  padding: 0;
}

html[data-theme="dark"] .article-author,
html[data-theme="dark"] .article-author-site {
  color: var(--color-text);
}

html[data-theme="dark"] .article-date-text,
html[data-theme="dark"] .article-date-icon,
html[data-theme="dark"] .article-comments-meta {
  color: var(--color-muted);
}

.article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e6e6e6;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.article-author-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.article-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  margin-inline-start: auto;
  /* LTR flex so visual order is: comments · date · clock (clock on the right, by the avatar) */
  direction: ltr;
  flex-direction: row-reverse;
}

.article-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-direction: row;
  direction: ltr;
}

.article-date-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1;
  color: #999;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: right;
}

.article-date-value {
  font-variant-numeric: tabular-nums;
}

.article-date-unit,
.article-date-label {
  direction: rtl;
  unicode-bidi: isolate;
}

.article-date-icon,
.article-comments-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #999;
}

.article-date-icon svg,
.article-comments-meta-icon svg {
  display: block;
  width: 13px;
  height: 13px;
  overflow: visible;
}

.article-comments-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #999;
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s ease;
}

.article-comments-meta:hover,
.article-comments-meta:hover .article-comments-meta-icon {
  color: var(--color-primary, #3050d1);
}

.article-comments-meta-count {
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: inherit;
}

.article-figure {
  margin: 0 0 1.75rem;
}

.article-figure-media {
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-image-bg);
  aspect-ratio: 16 / 9;
}

.article-figure-media img,
.article-figure-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--color-image-bg);
}

.article-figure-caption {
  width: 100%;
  margin-top: 0.9rem;
}

.article-figure-caption-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 1rem;
  direction: ltr;
  background: linear-gradient(180deg, var(--color-panel-bg-start) 0%, var(--color-panel-bg-end) 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px var(--color-card-shadow);
}

.article-figure-caption-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-article);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-secondary-text);
  unicode-bidi: plaintext;
  text-align: right;
}

.article-figure-caption-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-inline-start: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-card-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px var(--color-card-shadow);
}

.article-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding: 0.55rem 0.15rem 0.35rem;
  direction: rtl;
}

.article-reader-toolbar__start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  min-width: 0;
  flex: 1;
}

.article-reader-toolbar__reading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-panel-bg-start) 0%, var(--color-panel-bg-end) 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px var(--color-card-shadow);
  color: var(--color-secondary-text);
}

.article-reader-toolbar__reading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
}

.article-reader-toolbar__reading-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.35rem;
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
  unicode-bidi: plaintext;
  text-align: right;
}

.article-reader-toolbar__reading-lead,
.article-reader-toolbar__reading-unit {
  unicode-bidi: isolate;
}

.article-reader-toolbar__reading-num {
  display: inline-block;
  min-width: 0.55rem;
  font-family: var(--font-article, system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-primary);
  unicode-bidi: isolate;
  direction: ltr;
}

.article-reader-toolbar__font {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
  border: 1px solid color-mix(in srgb, var(--color-border) 88%, #cbd5e1);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .article-reader-toolbar__font {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-card-bg) 90%, #fff 10%) 0%,
    color-mix(in srgb, var(--color-card-bg) 78%, #000 22%) 100%
  );
  border-color: var(--color-border);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-reader-toolbar__font-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}

[data-theme="dark"] .article-reader-toolbar__font-btn {
  color: var(--color-secondary-text);
}

.article-reader-toolbar__font-divider {
  width: 1px;
  height: 1.15rem;
  margin: 0 0.05rem;
  background: color-mix(in srgb, var(--color-border) 70%, #94a3b8);
  flex-shrink: 0;
}

.article-reader-toolbar__font-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  transform: scale(1.04);
}

[data-theme="dark"] .article-reader-toolbar__font-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-card-bg) 55%, #fff 45%);
  color: var(--color-primary-text);
}

.article-reader-toolbar__font-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.article-reader-toolbar__font-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.article-reader-toolbar__font-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  .article-reader-toolbar {
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    padding-inline: 0;
  }

  .article-reader-toolbar__reading {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.75rem;
  }

  .article-reader-toolbar__reading-text {
    font-size: 0.78rem;
  }

  .article-reader-toolbar__font-btn {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* Article listen — compact toolbar chip (matches reading-time pill) */
.article-listen {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
}

.article-listen__chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.38rem 0.7rem 0.38rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-panel-bg-start) 0%, var(--color-panel-bg-end) 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px var(--color-card-shadow);
  transition:
    border-radius 0.2s ease,
    padding 0.2s ease;
}

.article-listen__chip.is-active {
  border-radius: 14px;
  padding-bottom: 0.45rem;
}

.article-listen__main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.article-listen__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  padding-inline-start: 1px;
}

.article-listen__chip.is-playing .article-listen__btn {
  padding-inline-start: 0;
}

.article-listen__btn:hover {
  filter: brightness(1.05);
}

.article-listen__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 1px;
}

.article-listen__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.article-listen__title {
  font-family: var(--font-article, system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--color-primary-text);
  white-space: nowrap;
}

.article-listen__powered {
  font-family: var(--font-article, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-secondary-text);
  white-space: nowrap;
  opacity: 0.9;
}

.article-listen__time {
  flex-shrink: 0;
  margin-inline-start: 0.15rem;
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.article-listen__speed {
  flex-shrink: 0;
  min-width: 1.85rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  color: var(--color-secondary-text);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.article-listen__speed:hover {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}

.article-listen__track {
  position: relative;
  display: block;
  width: 100%;
  height: 0.7rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.article-listen__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-border) 80%, #94a3b8);
}

.article-listen__track-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--color-primary);
  pointer-events: none;
}

.article-listen-sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.article-listen-sticky__inner {
  pointer-events: auto;
  width: fit-content;
  max-width: calc(100% - 0.5rem);
  margin: 0 auto;
}

.article-listen-sticky__inner .article-listen__chip {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
  background: var(--color-card-bg);
}

@media (max-width: 640px) {
  .article-listen__title {
    font-size: 0.76rem;
  }

  .article-listen__powered {
    font-size: 0.58rem;
  }
}

.article-content {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", var(--font-article);
  font-size: calc(16px * var(--article-font-scale, 1.25));
  line-height: 1.9;
  text-align: right;
  margin-bottom: 2rem;
  unicode-bidi: plaintext;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Pasted Word / WP inline styles must not override site typography (keep editor colors). */
.article-content [style],
.article-content font {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.article-content mark {
  border-radius: 0.15em;
  padding: 0 0.08em;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content blockquote:not(.twitter-tweet) {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.65rem 1.35rem 1.5rem;
  border: 1px solid var(--color-quote-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-quote-bg-start) 0%, var(--color-quote-bg-end) 100%);
  color: var(--color-quote-text);
  font-family: var(--font-article);
  font-size: clamp(1.1rem, 2.15vw, 1.28rem);
  line-height: 1.9;
  font-weight: 400;
  text-align: right;
  unicode-bidi: plaintext;
  box-shadow: 0 2px 14px var(--color-card-shadow);
  overflow: hidden;
}

.article-content blockquote:not(.twitter-tweet)::before {
  content: "”";
  position: absolute;
  left: 1.1rem;
  right: auto;
  top: 50%;
  transform: translateY(-54%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 4.75rem);
  line-height: 1;
  color: rgba(50, 90, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

.article-content blockquote:not(.twitter-tweet)::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 3px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, var(--color-primary) 0%, #6980d1 100%);
}

.article-content blockquote:not(.twitter-tweet) p {
  position: relative;
  margin: 0 0 0.85rem;
  padding-inline: 0 0.35rem;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.article-content blockquote:not(.twitter-tweet) p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .article-content blockquote:not(.twitter-tweet) {
    margin: 1.65rem 0;
    padding: 1.15rem 1.25rem 1.15rem 1rem;
    border-radius: 12px;
  }

  .article-content blockquote:not(.twitter-tweet)::before {
    left: 0.65rem;
    font-size: 3rem;
  }
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-dhivehi);
  margin: 2rem 0 1rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* Responsive <picture> from x-fast-img — keep layout like a bare <img> */
picture {
  display: contents;
}

.article-content picture > img {
  margin: 1.5rem 0;
}

.article-content .wp-caption,
.article-content div[id^="attachment_"] {
  max-width: 100% !important;
  width: auto !important;
  margin: 1.5rem auto;
  box-sizing: border-box;
}

.article-content .wp-caption img,
.article-content div[id^="attachment_"] img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.article-content .wp-caption-text {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-tertiary-text);
  text-align: center;
  margin: 0.65rem 0 0;
  padding: 0 0.5rem;
}

.article-content .aligncenter,
.article-content .wp-caption.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-content .alignleft {
  float: right;
  clear: right;
  max-width: min(100%, 420px);
  margin: 0.25rem 0 1rem 1.5rem;
}

.article-content .alignright {
  float: left;
  clear: left;
  max-width: min(100%, 420px);
  margin: 0.25rem 1.5rem 1rem 0;
}

.article-content .alignnone {
  display: block;
  float: none;
  clear: both;
  max-width: 100%;
  margin: 1.5rem auto;
}

.article-content figure.hm-article-image.hm-image--w33,
.article-content .wp-caption.hm-image--w33 {
  width: min(100%, 33%);
  max-width: min(100%, 33%);
}

.article-content figure.hm-article-image.hm-image--w50,
.article-content .wp-caption.hm-image--w50 {
  width: min(100%, 50%);
  max-width: min(100%, 50%);
}

.article-content figure.hm-article-image.hm-image--w75,
.article-content .wp-caption.hm-image--w75 {
  width: min(100%, 75%);
  max-width: min(100%, 75%);
}

.article-content figure.hm-article-image.hm-image--w100,
.article-content .wp-caption.hm-image--w100 {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .article-content figure.hm-article-image,
  .article-content .wp-caption.hm-article-image,
  .article-content figure.hm-article-image[class*="hm-image--w"],
  .article-content .wp-caption[class*="hm-image--w"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.article-content .article-video {
  margin: 1.75rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.article-content .article-video video {
  width: 100%;
  max-height: min(70vh, 720px);
  display: block;
  background: #000;
}

.article-content .article-related-post {
  margin: 1.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  border-right: 3px solid var(--color-primary);
  background: var(--color-card-bg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.article-content .article-related-post:hover {
  border-color: var(--color-card-border);
  box-shadow: 0 4px 16px var(--color-card-hover-shadow);
}

.article-content .article-related-post-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  direction: rtl;
}

.article-content .article-related-post-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 69px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-image-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content .article-related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.article-content .article-related-post-thumb--empty {
  font-size: 1.35rem;
  color: #d1d5db;
}

.article-content .article-related-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.article-content .article-related-post-title {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .article-related-post-excerpt {
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .article-related-post-arrow {
  flex-shrink: 0;
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
}

.article-content .article-related-post-link:hover .article-related-post-title {
  color: var(--color-primary);
}

.article-content a,
.article-content a * {
  color: var(--color-primary) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.article-content a:hover,
.article-content a:hover * {
  color: color-mix(in srgb, var(--color-primary) 82%, black) !important;
}

.article-content .article-related-post-link,
.article-content .article-related-post-link * {
  color: inherit !important;
  text-decoration: none !important;
}

.article-content .article-gallery-embed {
  margin: 2rem 0;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.article-content .article-gallery-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
  direction: rtl;
}

.article-content .article-gallery-embed-title {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.article-content .article-gallery-embed-album-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.article-content .article-gallery-embed-album-link:hover {
  text-decoration: underline;
}

.article-content .article-gallery-embed-slider {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0b1220;
  outline: none;
}

.article-content .article-gallery-embed-viewport {
  position: absolute;
  inset: 0;
}

.article-content .article-gallery-embed-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.article-content .article-gallery-embed-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.article-content .article-gallery-embed-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}

.article-content .article-gallery-embed-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #fff;
  text-align: right;
}

.article-content .article-gallery-embed-caption-title {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.article-content .article-gallery-embed-caption-text {
  margin: 0.25rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 0.84rem;
  line-height: 1.55;
  opacity: 0.94;
}

.article-content .article-gallery-embed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease;
}

.article-content .article-gallery-embed-nav:hover {
  transform: translateY(-50%) scale(1.04);
  background: #fff;
}

.article-content .article-gallery-embed-prev {
  left: 0.85rem;
}

.article-content .article-gallery-embed-next {
  right: 0.85rem;
}

.article-content .article-gallery-embed-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.article-content .article-gallery-embed-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.article-content .article-gallery-embed-dot.is-active {
  width: 1.25rem;
  background: #fff;
}

.article-content .article-gallery-embed-counter {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .article-content .article-gallery-embed-slider {
    aspect-ratio: 4 / 3;
  }

  .article-content .article-gallery-embed-nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.35rem;
  }

  .article-content .article-gallery-embed-prev {
    left: 0.55rem;
  }

  .article-content .article-gallery-embed-next {
    right: 0.55rem;
  }
}

.article-content .article-video-gallery-embed {
  margin: 2rem 0;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.article-content .article-video-gallery-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
  direction: rtl;
}

.article-content .article-video-gallery-embed-title {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.article-content .article-video-gallery-embed-meta {
  font-size: 0.8rem;
  color: var(--color-muted, #64748b);
  white-space: nowrap;
}

.article-content .article-video-gallery-embed-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  outline: none;
}

.article-content .article-video-gallery-embed-viewport {
  position: absolute;
  inset: 0;
}

.article-content .article-video-gallery-embed-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.article-content .article-video-gallery-embed-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.article-content .article-video-gallery-embed-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.article-content .article-video-gallery-embed-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
}

.article-content .article-video-gallery-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(50, 90, 255, 0.35);
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.article-content .article-video-gallery-embed-trigger:hover .article-video-gallery-embed-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--color-primary);
}

.article-content .article-video-gallery-embed-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
  color: #fff;
  text-align: right;
  pointer-events: none;
}

.article-content .article-video-gallery-embed-caption-title {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.article-content .article-video-gallery-embed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
  z-index: 2;
  transition: transform 0.15s ease, background 0.15s ease;
}

.article-content .article-video-gallery-embed-nav:hover {
  transform: translateY(-50%) scale(1.04);
  background: #fff;
}

.article-content .article-video-gallery-embed-prev {
  left: 0.85rem;
}

.article-content .article-video-gallery-embed-next {
  right: 0.85rem;
}

.article-content .article-video-gallery-embed-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.article-content .article-video-gallery-embed-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.article-content .article-video-gallery-embed-dot.is-active {
  width: 1.25rem;
  background: var(--color-primary);
}

.article-content .article-video-gallery-embed-counter {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .article-content .article-video-gallery-embed-slider {
    aspect-ratio: 4 / 3;
  }

  .article-content .article-video-gallery-embed-play {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.1rem;
  }

  .article-content .article-video-gallery-embed-nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.35rem;
  }

  .article-content .article-video-gallery-embed-prev {
    left: 0.55rem;
  }

  .article-content .article-video-gallery-embed-next {
    right: 0.55rem;
  }
}

.article-content .hm-text-sm { font-size: 0.875rem; line-height: 1.85; }
.article-content .hm-text-md { font-size: 1.05rem; line-height: 1.9; }
.article-content .hm-text-lg { font-size: 1.25rem; line-height: 1.85; }
.article-content .hm-text-xl { font-size: 1.45rem; line-height: 1.75; }
.article-content .hm-text-2xl { font-size: 1.75rem; line-height: 1.65; }

.article-content table.hm-article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  direction: rtl;
  margin: 2rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  table-layout: fixed;
}

.article-content table.hm-article-table th,
.article-content table.hm-article-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  text-align: right;
  vertical-align: top;
}

.article-content table.hm-article-table th:last-child,
.article-content table.hm-article-table td:last-child {
  border-left: none;
}

.article-content table.hm-article-table th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-family: var(--font-dhivehi);
  font-weight: 700;
}

.article-content table.hm-article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-content table.hm-article-table tbody tr:hover td {
  background: #fafbfc;
}

.article-content .article-chart-embed {
  margin: 2rem 0;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.article-content .article-chart-embed-inner {
  padding: 1.1rem 1.2rem 1.25rem;
  direction: rtl;
}

.article-content .article-chart-embed-title {
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.article-content .article-chart-embed-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
  gap: 0.85rem;
  align-items: end;
  min-height: 240px;
  padding-top: 0.65rem;
}

.article-content .article-chart-embed-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.article-content .article-chart-embed-bar-track {
  width: 100%;
  max-width: 4.75rem;
  height: 190px;
  border-radius: 14px 14px 10px 10px;
  background: #f1f5f9;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-content .article-chart-embed-bar-fill {
  width: 100%;
  border-radius: 14px 14px 10px 10px;
  height: calc(var(--chart-value) / var(--chart-max) * 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--chart-color) 88%, white), var(--chart-color));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--chart-color) 30%, transparent);
}

.article-content .article-chart-embed-bar-label,
.article-content .article-chart-embed-bar-value,
.article-content .article-chart-embed-hbar-label,
.article-content .article-chart-embed-hbar-value,
.article-content .article-chart-embed-legend-label {
  font-family: var(--font-dhivehi);
}

.article-content .article-chart-embed-bar-value,
.article-content .article-chart-embed-hbar-value {
  font-weight: 700;
  direction: ltr;
}

.article-content .article-chart-embed-hbars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-content .article-chart-embed-hbar {
  display: grid;
  grid-template-columns: minmax(5rem, 28%) 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.article-content .article-chart-embed-hbar-track {
  height: 0.9rem;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.article-content .article-chart-embed-hbar-fill {
  height: 100%;
  width: calc(var(--chart-value) / var(--chart-max) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--chart-color) 82%, white), var(--chart-color));
}

.article-content .article-chart-embed-line-svg,
.article-content .article-chart-embed-donut-svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-content .article-chart-embed-donut-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.article-content .article-chart-embed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.95rem;
}

.article-content .article-chart-embed-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.article-content .article-chart-embed-legend-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .article-content .article-chart-embed-donut-wrap {
    grid-template-columns: 1fr;
  }

  .article-content table.hm-article-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.article-content .social-embed {
  margin: 2rem auto;
  margin-inline: auto;
  max-width: 640px;
  width: 100%;
  direction: ltr;
  text-align: center;
}

.article-content .social-embed-render {
  position: relative;
  width: 100%;
}

.article-content .social-embed-render iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  background: #f6f7f7;
}

.article-content .social-embed--youtube .social-embed-render iframe,
.article-content .social-embed--vimeo .social-embed-render iframe,
.article-content .social-embed--tiktok .social-embed-render iframe {
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.article-content .social-embed--instagram .social-embed-render iframe {
  min-height: 480px;
  max-width: 540px;
  margin: 0 auto;
}

.article-content .social-embed--instagram .social-embed-render,
.article-content .social-embed--tiktok .social-embed-render,
.article-content .social-embed--threads .social-embed-render {
  display: flex;
  justify-content: center;
  width: 100%;
}

.article-content .social-embed--instagram .social-embed-render blockquote.instagram-media,
.article-content .social-embed--tiktok .social-embed-render blockquote.tiktok-embed,
.article-content .social-embed--threads .social-embed-render blockquote.text-post-media {
  margin: 0 auto !important;
  max-width: 540px;
  width: 100% !important;
}

.article-content .social-embed--facebook .social-embed-render iframe {
  min-height: 420px;
}

.article-content .social-embed--spotify .social-embed-render iframe {
  min-height: 152px;
  max-width: 100%;
}

.article-content .social-embed--twitter .social-embed-render {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  width: 100%;
}

.article-content .social-embed--twitter .social-embed-render > * {
  margin-inline: auto;
}

.article-content .social-embed--twitter .social-embed-render iframe,
.article-content .social-embed--twitter .social-embed-render iframe.twitter-tweet-embed {
  width: 100% !important;
  max-width: 550px;
  min-height: 280px;
  height: auto;
  margin: 0 auto !important;
  display: block;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.article-content .social-embed--twitter .social-embed-render blockquote.twitter-tweet {
  margin: 0 auto !important;
  max-width: 550px;
  width: 100%;
  text-align: left;
}

.article-content .social-embed--twitter .social-embed-render blockquote {
  margin: 0 auto;
  max-width: 550px;
  text-align: left;
}

.article-content blockquote.twitter-tweet {
  margin: 2rem auto !important;
  max-width: 550px;
  width: 100% !important;
  text-align: left;
  direction: ltr;
}

.article-content iframe.twitter-tweet-embed,
.article-content iframe[src*="platform.twitter.com/embed/Tweet"] {
  margin-inline: auto !important;
  display: block;
  max-width: 550px;
}

.article-content .social-embed--pinterest .social-embed-render iframe {
  min-height: 420px;
}

.article-content .social-embed--reddit .social-embed-render iframe {
  min-height: 500px;
}

.article-content .social-embed--soundcloud .social-embed-render iframe {
  min-height: 166px;
}

.article-related-tags {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 2.25rem 0 0;
  padding: 1.2rem 1.25rem 1.25rem;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--color-card-bg) 0%, var(--color-muted-surface) 100%);
  box-shadow: 0 1px 4px var(--color-card-shadow);
  /* Article body switches --font-dhivehi to Randhoo, which is too thin to read at pill size. */
  --font-dhivehi: "MV Typewriter", "Waheed", sans-serif;
  overflow: visible;
}

.article-related-tags-title {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-dhivehi);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: right;
  color: var(--color-text);
}

.article-related-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.article-related-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.5rem 1.05rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-dhivehi);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--color-text);
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.article-related-tag:hover {
  background: var(--color-surface-pink);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(50, 90, 255, 0.08);
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.tag-pill {
  padding: 0.35rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: var(--color-secondary-text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

a.tag-pill:hover {
  background: var(--color-muted-surface);
  border-color: var(--color-card-border);
  color: var(--color-primary);
}

.tag-pill--muted {
  background: var(--color-muted-surface);
}

/* Post reactions (article) */
.post-reactions {
  margin: 1.25rem 0 0;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  background: var(--color-card-bg);
  box-shadow: 0 1px 4px var(--color-card-shadow);
}

.post-reactions-title {
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}

.post-reactions-bar {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
}

.post-reaction-item {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  background: var(--color-card-bg);
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--color-card-shadow);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.post-reaction-item:hover:not(:disabled) {
  border-color: rgba(50, 90, 255, 0.24);
  box-shadow: 0 6px 18px var(--color-card-hover-shadow);
  transform: translateY(-1px);
}

.post-reaction-item:disabled {
  cursor: default;
  opacity: 0.72;
}

.post-reaction-item.is-active {
  border-color: rgba(50, 90, 255, 0.42);
  background: linear-gradient(180deg, rgba(50, 90, 255, 0.1) 0%, rgba(50, 90, 255, 0.04) 100%);
  box-shadow:
    0 0 0 1px rgba(50, 90, 255, 0.08),
    0 6px 18px rgba(50, 90, 255, 0.12);
}

.post-reaction-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 88px;
  padding: 0.85rem 0.45rem 0.75rem;
}

.post-reaction-pct {
  display: block;
  min-height: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-tertiary-text);
  text-align: center;
}

.post-reaction-pct--active {
  color: var(--color-primary);
  font-weight: 700;
}

.post-reaction-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.post-reaction-icon {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.post-reaction-item.has-votes .post-reaction-icon {
  color: var(--color-secondary-text);
}

.post-reaction-item.is-active .post-reaction-icon,
.post-reaction-item.is-active .post-reaction-pct {
  color: var(--color-primary);
}

html[data-theme="dark"] .post-reaction-item {
  background: var(--color-surface);
}

html[data-theme="dark"] .post-reaction-item.is-active {
  background: linear-gradient(180deg, rgba(50, 90, 255, 0.18) 0%, rgba(50, 90, 255, 0.08) 100%);
}

@media (max-width: 640px) {
  .post-reactions-bar {
    gap: 0.45rem;
  }

  .post-reaction-chip {
    min-height: 76px;
    padding: 0.7rem 0.25rem 0.62rem;
    gap: 0.42rem;
  }

  .post-reaction-icon-wrap {
    width: 2rem;
    height: 2rem;
  }

  .post-reaction-pct {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .post-reactions-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .post-reaction-chip {
    min-height: 70px;
    padding: 0.62rem 0.15rem 0.55rem;
  }

  .post-reaction-icon-wrap {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.article-comments-area {
  margin-top: 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--color-divider-line);
  scroll-margin-top: 5.5rem;
}

.article-comments {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 0;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  background: var(--color-card-bg);
  box-shadow: 0 1px 4px var(--color-card-shadow);
}

.article-comments-title {
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}

.article-comments-count {
  color: var(--color-tertiary-text);
  font-size: 1rem;
}

.article-comments-form {
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--color-card-bg) 0%, var(--color-muted-surface) 100%);
  box-shadow: 0 2px 12px var(--color-card-shadow);
}

.article-comments-form input:not(.comment-terms-input),
.article-comments-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  background: var(--color-form-bg);
  color: var(--color-text);
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-comments-form input:not(.comment-terms-input):focus,
.article-comments-form textarea:focus {
  outline: none;
  border-color: rgba(50, 90, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(50, 90, 255, 0.1);
}

.article-comments-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.75;
}

.article-comments-form--compact {
  padding: 1rem 0.95rem 1.05rem;
  box-shadow: none;
  background: var(--color-muted-surface);
}

.article-comments-form--compact textarea {
  min-height: 96px;
}

.comment-terms {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.comment-terms-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: calc(0.88rem * 1.45);
  margin-top: 0.04em;
}

.comment-terms-input {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--color-form-border);
  border-radius: 4px;
  background: var(--color-form-bg);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
  vertical-align: middle;
}

.comment-terms-input:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.comment-terms-input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.comment-terms-input:focus-visible {
  outline: 2px solid rgba(50, 90, 255, 0.35);
  outline-offset: 2px;
}

.comment-terms-text {
  flex: 1;
  min-width: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.7;
  color: var(--color-secondary-text);
  text-align: right;
  unicode-bidi: plaintext;
}

html[lang="en"] .comment-terms-text {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.comment-terms-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.comment-terms-link:hover {
  color: var(--color-text);
}

.article-comments-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.article-comments-submit-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  order: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.comment-submit-note {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--color-tertiary-text);
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}

.comment-submit-note.is-cooldown {
  color: var(--color-primary);
  font-weight: 500;
}

.article-comments-cancel {
  order: 1;
  margin-inline-end: auto;
  padding: 0.65rem 1.1rem;
  background: var(--color-form-bg);
  color: var(--color-secondary-text);
  border: 1px solid var(--color-form-border);
  border-radius: 6px;
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  cursor: pointer;
}

.article-comments-form button[type="submit"],
.article-comments-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  order: 0;
  min-height: 2.65rem;
  padding: 0.7rem 1.45rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 14px rgba(50, 90, 255, 0.22);
}

.article-comments-form button[type="submit"]:hover:not(:disabled),
.article-comments-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(50, 90, 255, 0.28);
}

.article-comments-form button[type="submit"]:disabled,
.article-comments-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.article-comments-cancel:hover {
  background: var(--color-surface);
}

@media (max-width: 640px) {
  .article-comments-submit-group {
    flex-direction: column-reverse;
    align-items: flex-end;
    width: 100%;
  }

  .comment-submit-note {
    width: 100%;
  }

  .article-comments-form button[type="submit"],
  .article-comments-submit {
    width: 100%;
  }
}

.article-comments-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  line-height: 1.65;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
}

.article-comments-msg[hidden] {
  display: none !important;
}

.article-comments-msg--success {
  color: #166534;
  background: color-mix(in srgb, #16a34a 10%, var(--color-card-bg));
  border-color: color-mix(in srgb, #16a34a 28%, transparent);
}

.article-comments-msg--error {
  color: #991b1b;
  background: color-mix(in srgb, #dc2626 9%, var(--color-card-bg));
  border-color: color-mix(in srgb, #dc2626 26%, transparent);
}

html[data-theme="dark"] .article-comments-msg--success {
  color: #86efac;
  background: color-mix(in srgb, #16a34a 16%, var(--color-card-bg));
}

html[data-theme="dark"] .article-comments-msg--error {
  color: #fca5a5;
  background: color-mix(in srgb, #dc2626 14%, var(--color-card-bg));
}

.article-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-comments-loading {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-muted);
  text-align: right;
}

.article-comments-empty {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--color-card-border);
  border-radius: 12px;
  background: var(--color-muted-surface);
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-tertiary-text);
  text-align: center;
}

.comment-card {
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  background: var(--color-card-bg);
  padding: 1rem 1.1rem;
}

.comment-card--reply {
  margin-top: 0.85rem;
  background: var(--color-comment-reply-bg);
}

.comment-replies {
  margin-top: 0.25rem;
}

.comment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.comment-card-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.comment-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.comment-author-name {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.comment-time {
  flex-shrink: 0;
}

.comment-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-ad-bg) 0%, var(--color-ad-label-bg) 100%);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 1px 2px var(--color-card-shadow);
}

.comment-time-value {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-secondary-text);
  font-variant-numeric: tabular-nums;
}

.comment-time-label,
.comment-time-unit {
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-muted);
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: isolate;
}

.comment-time-label--full {
  font-size: 0.76rem;
  max-width: none;
  white-space: nowrap;
  text-align: right;
}

.comment-body {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: right;
  margin: 0 0 0.95rem;
  white-space: pre-wrap;
  unicode-bidi: plaintext;
}

.comment-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.comment-reply-btn {
  padding: 0.48rem 1rem;
  background: var(--color-form-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  color: var(--color-primary);
  font-family: var(--font-dhivehi);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-reply-btn:hover {
  background: var(--color-surface-pink);
  border-color: #efc2c2;
  box-shadow: 0 1px 2px rgba(50, 90, 255, 0.08);
}

.comment-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.comment-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.35rem 0.72rem 0.35rem 0.42rem;
  border: 1px solid var(--color-card-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.comment-vote-btn:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-card-bg);
  border-color: var(--color-form-border);
  box-shadow: 0 2px 8px var(--color-card-shadow);
}

.comment-vote-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.comment-vote-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.comment-vote-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  color: inherit;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.comment-vote-btn--like.is-active {
  color: var(--color-primary);
  background: #fdf2f2;
  border-color: #f3c0c0;
}

.comment-vote-btn--like.is-active .comment-vote-icon-wrap {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.comment-vote-btn--like:hover:not(:disabled) .comment-vote-icon-wrap {
  border-color: #d8d8e0;
}

.comment-vote-btn--like.is-active:hover:not(:disabled) .comment-vote-icon-wrap {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.comment-vote-btn--dislike.is-active {
  color: var(--color-secondary-text);
  background: var(--color-surface);
  border-color: var(--color-form-border);
}

.comment-vote-btn--dislike.is-active .comment-vote-icon-wrap {
  background: #6b7280;
  border-color: #6b7280;
  color: #fff;
}

.comment-vote-btn--dislike.is-active:hover:not(:disabled) .comment-vote-icon-wrap {
  background: #4b5563;
  border-color: #4b5563;
}

.comment-vote-icon {
  display: block;
  flex-shrink: 0;
}

.comment-vote-count {
  min-width: 0.85rem;
  padding-inline-end: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

html[data-theme="dark"] .article-comments-form {
  background: var(--color-surface);
}

html[data-theme="dark"] .article-comments-form--compact {
  background: var(--color-muted-surface);
}

.comment-reply-form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* Related posts */
.related-posts {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 3rem;
  margin-bottom: 0;
}

.related-posts--in-article {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0 0;
  margin: 2.5rem 0 0;
  background: transparent;
}

.related-posts--in-article .related-posts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .related-posts--in-article .related-posts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.related-posts-header {
  margin-bottom: 1.25rem;
}

.related-posts-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-dhivehi);
  font-size: 1.35rem;
  font-weight: 400;
}

.related-posts-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.related-post-card {
  color: inherit;
  transition: color 0.15s;
}

.related-post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.related-post-card-date {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--color-muted);
}

.related-post-card:hover {
  color: var(--color-primary);
}

.related-post-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
  margin-bottom: 0.75rem;
}

.related-post-card-image img,
.related-post-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-post-card-title {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: right;
}

.related-post-card--skeleton {
  min-height: 180px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f3f3 25%, #ececec 50%, #f3f3f3 75%);
  background-size: 200% 100%;
  animation: related-post-shimmer 1.2s ease-in-out infinite;
}

@keyframes related-post-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.related-posts--loading .related-posts-grid {
  pointer-events: none;
}

.related-posts--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .article-sidebar {
    display: none;
  }

  /* Mobile: title → featured image → author/share → rest */
  .article-main {
    display: flex;
    flex-direction: column;
  }

  .article-header {
    display: contents;
  }

  .article-title {
    order: 1;
  }

  .article-figure {
    order: 2;
  }

  .article-top-meta {
    order: 3;
  }

  .article-main > :not(.article-header):not(.article-figure) {
    order: 4;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-posts--desktop {
    display: none;
  }

  .related-posts--mobile {
    display: block;
    margin-top: 1.65rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--color-border);
  }

  .hm-ad-article-banner--before-comments {
    display: none;
  }

  .article-mobile-tail {
    display: block;
    margin-top: 1.75rem;
    padding-top: 0.25rem;
  }

  .hm-ad-article-banner--after-comments {
    display: block;
    margin-top: 0;
    margin-bottom: 1.35rem;
  }

  .article-latest-posts--mobile,
  .related-posts--mobile {
    margin-bottom: 0;
    padding-top: 0.15rem;
  }

  .article-latest-posts--mobile.article-sidebar-latest .category-sidebar-latest-title {
    font-size: 1.15rem;
  }

  .related-posts--mobile .related-posts-header {
    margin-bottom: 0.85rem;
  }

  .related-posts--mobile .related-posts-title {
    font-size: 1.15rem;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .related-posts--mobile .related-posts-title-bar {
    width: 3px;
    border-radius: 2px;
  }

  .related-posts--mobile .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .related-posts--mobile .related-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--color-card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .related-posts--mobile .related-post-card:active {
    transform: scale(0.985);
    opacity: 0.94;
  }

  .related-posts--mobile .related-post-card:hover {
    color: inherit;
    box-shadow: 0 4px 16px var(--color-card-hover-shadow);
  }

  .related-posts--mobile .related-post-card-image {
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
    background: var(--color-image-bg);
  }

  .related-posts--mobile .related-post-card-body {
    flex: 1;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .related-posts--mobile .related-post-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    margin: 0;
    text-align: right;
  }

  .related-posts--mobile .related-post-card-date {
    display: block;
    font-size: 0.68rem;
    text-align: right;
    align-self: flex-start;
    margin-top: auto;
    direction: rtl;
  }

  .article-top-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    padding-top: 0.85rem;
    padding-bottom: calc(0.85rem + 3px);
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    position: relative;
  }

  .article-top-meta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 55%, #db2777 100%);
    opacity: 0.9;
  }

  .article-byline {
    order: -1;
    width: 100%;
    flex: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-inline-start: 0;
    gap: 0.55rem;
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--color-primary) 5%, var(--color-bg)) 0%,
        color-mix(in srgb, var(--color-primary) 2%, var(--color-bg)) 100%
      );
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-primary) 6%, transparent);
    direction: ltr;
  }

  .article-byline-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0.45rem;
    direction: rtl;
    text-align: center;
    order: 1;
  }

  .article-author {
    display: block;
    width: 100%;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: center;
    text-wrap: pretty;
    color: var(--color-primary);
  }

  .article-author-site {
    display: inline;
    margin-top: 0;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    white-space: normal;
    color: color-mix(in srgb, var(--color-primary) 82%, var(--color-muted));
    opacity: 1;
  }

  .article-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    width: auto;
    margin-top: 0.05rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-bg) 72%, var(--color-border));
    border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
    direction: ltr;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--color-primary) 5%, transparent);
  }

  .article-date-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-muted);
  }

  .article-date-icon {
    color: color-mix(in srgb, var(--color-muted) 85%, transparent);
  }

  .article-meta-row {
    justify-content: center;
    gap: 0.5rem;
  }

  .article-comments-meta {
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-bg) 72%, var(--color-border));
    border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
  }

  .article-author-avatar,
  .article-author-avatar--fallback {
    order: 0;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
    border-radius: 4px;
    box-shadow: none;
  }

  .article-share-wrap {
    align-items: center;
    flex-shrink: 0;
    width: 100%;
  }

  .article-share-icons {
    width: 100%;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .article-share-icon {
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Static pages (Code of Ethics, etc.) */
.static-page {
  padding: 2rem 0 3.5rem;
}

.static-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.static-page-breadcrumb a:hover {
  color: var(--color-primary);
}

.static-page-article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  padding: 2.25rem 2rem 2.5rem;
}

.static-page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.static-page-brand {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin: 0 0 0.85rem;
}

.static-page-title {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--color-text);
}

.static-page-content {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #333;
}

.static-page-content h2 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-text);
}

.static-page-content h2:first-child {
  margin-top: 0;
}

.static-page-content ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
}

.static-page-content li {
  margin-bottom: 0.55rem;
}

/* English static pages — LTR layout with motion */
.static-page--english {
  position: relative;
  padding: 0 0 4.5rem;
  direction: ltr;
  text-align: left;
}

.static-page-english-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(50, 90, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #fafafa 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.static-page-inner {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
}

.static-page-breadcrumb--english {
  justify-content: flex-start;
  margin-bottom: 2rem;
  animation: static-page-fade-in 0.55s ease both;
}

.static-page-hero--english {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: left;
  animation: static-page-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.static-page-brand--english {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.static-page-title--english {
  font-family: var(--font-heading-en);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #18181b;
  margin: 0;
}

.static-page-lead {
  margin: 1rem 0 0;
  max-width: 52ch;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5c5c66;
}

.static-page-hero-line {
  margin-top: 1.75rem;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #6980d1);
  transform-origin: left center;
  animation: static-page-line-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.static-page-sections {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 820px;
  margin: 0 auto;
}

.static-page-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(18px);
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.static-page-section:hover {
  border-color: rgba(50, 90, 255, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

.static-page-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.static-page-section-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.45rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.12), rgba(50, 90, 255, 0.04));
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.static-page-section-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-heading-en);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #18181b;
}

.static-page-section-body {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  line-height: 1.75;
  color: #3f3f46;
  padding-left: 3.35rem;
}

.static-page-section-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.static-page-section-body li {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 1.35rem;
}

.static-page-section-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.75;
}

.static-page-section-body li:last-child {
  margin-bottom: 0;
}

.static-page-footer-note {
  max-width: 820px;
  margin: 2.25rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #71717a;
  text-align: center;
  opacity: 0;
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.static-page-article--english {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  padding: 2.25rem 2rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.75;
  color: #333;
  text-align: left;
}

.static-page-fade-in {
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes static-page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes static-page-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes static-page-line-grow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Dhivehi static pages — RTL layout with motion */
.static-page--dhivehi {
  position: relative;
  padding: 0 0 4.5rem;
  direction: rtl;
  text-align: right;
}

.static-page-dhivehi-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(50, 90, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #fafafa 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.static-page-breadcrumb--dhivehi {
  justify-content: flex-end;
  margin-bottom: 2rem;
  animation: static-page-fade-in 0.55s ease both;
}

.static-page-hero--dhivehi {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  animation: static-page-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.static-page-brand--dhivehi {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--color-primary);
  margin: 0 0 0.85rem;
}

.static-page-title--dhivehi {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--color-text);
}

.static-page-lead--dhivehi {
  font-family: var(--font-dhivehi);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-secondary-text);
  margin: 1rem auto 0;
  max-width: 42rem;
}

.static-page-dhivehi-body {
  max-width: 720px;
  margin: 0 auto;
}

.static-page-dhivehi-paragraph {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 1.15rem;
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.static-page-section--dhivehi {
  margin-top: 1.75rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.static-page-section-head--dhivehi {
  margin-bottom: 1rem;
}

.static-page-section-title--dhivehi {
  font-family: var(--font-dhivehi);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text);
}

.static-page-dhivehi-rules {
  list-style: none;
  margin: 0;
  padding: 0;
}

.static-page-dhivehi-rules li {
  position: relative;
  font-family: var(--font-dhivehi);
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--color-secondary-text);
  padding: 0.65rem 0;
  padding-inline-start: 1.35rem;
  border-bottom: 1px solid var(--color-border);
}

.static-page-dhivehi-rules li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.static-page-dhivehi-rules li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.static-page-dhivehi-closing {
  margin: 1.75rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-primary);
  text-align: center;
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Dhivehi numbered section cards (Code of Conduct) */
.static-page-hero--dhivehi-sections {
  max-width: 820px;
  text-align: right;
}

.static-page-hero--dhivehi-sections .static-page-lead--dhivehi {
  margin-inline: 0;
  margin-block: 1rem 0;
  max-width: 52ch;
}

.static-page-hero-line--dhivehi {
  margin-inline-start: auto;
  margin-inline-end: 0;
  transform-origin: right center;
}

.static-page-sections--dhivehi {
  max-width: 820px;
}

.static-page-section--dhivehi-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.35rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  margin-top: 0;
  opacity: 0;
  transform: translateY(18px);
  animation: static-page-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.static-page-section--dhivehi-card:hover {
  border-color: rgba(50, 90, 255, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

.static-page-section-head--dhivehi-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.static-page-section-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.static-page-section-title--dhivehi-card {
  font-family: var(--font-dhivehi);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--color-text);
}

.static-page-section-body--dhivehi {
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-secondary-text);
  padding-inline-start: 3.35rem;
  padding-left: 0;
  text-align: right;
}

.static-page-section-body--dhivehi ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.static-page-section-body--dhivehi li {
  position: relative;
  margin: 0 0 0.75rem;
  padding-inline-start: 1.35rem;
  padding-left: 0;
}

.static-page-section-body--dhivehi li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  left: auto;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.75;
}

.static-page-section-body--dhivehi li:last-child {
  margin-bottom: 0;
}

.static-page-footer-note--dhivehi {
  font-family: var(--font-dhivehi);
  letter-spacing: normal;
}

html[data-theme="dark"] .static-page-dhivehi-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(50, 90, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #1a1a1a 0%, var(--color-bg) 100%);
}

html[data-theme="dark"] .static-page-section--dhivehi-card {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

@media (max-width: 640px) {
  .static-page-article {
    padding: 1.5rem 1.15rem 1.75rem;
    border-radius: 14px;
  }

  .static-page-inner {
    padding-top: 1.25rem;
  }

  .static-page-hero--english {
    margin-bottom: 2rem;
  }

  .static-page-section,
  .static-page-section--dhivehi-card {
    padding: 1.2rem 1.1rem 1.1rem;
    border-radius: 14px;
  }

  .static-page-section-body,
  .static-page-section-body--dhivehi {
    padding-left: 0;
    padding-inline-start: 0;
    margin-top: 0.35rem;
  }

  .static-page-section-head,
  .static-page-section-head--dhivehi-card {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .static-page-breadcrumb--english,
  .static-page-breadcrumb--dhivehi,
  .static-page-hero--english,
  .static-page-hero--dhivehi,
  .static-page-section,
  .static-page-section--dhivehi,
  .static-page-section--dhivehi-card,
  .static-page-dhivehi-paragraph,
  .static-page-dhivehi-closing,
  .static-page-fade-in,
  .static-page-hero-line,
  .static-page-footer-note {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .static-page-section:hover,
  .static-page-section--dhivehi-card:hover {
    transform: none;
  }
}

/* Footer — sized to match raajje.mv */
.site-footer {
  background: linear-gradient(to bottom, #27272a, #18181b);
  border-top: 2px solid #3f3f46;
  color: #f4f4f5;
  margin-top: 3rem;
  padding: 0;
  flex-shrink: 0;
}

.footer-section {
  padding: 2rem 0;
  border-bottom: 1px solid #3f3f46;
}

.footer-section--bottom {
  background: rgba(24, 24, 27, 0.8);
  border-bottom: none;
}

.footer-nav {
  width: 100%;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list a {
  font-family: var(--font-dhivehi);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  color: #d4d4d8;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-nav-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
}

.footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  color: #d4d4d8;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social-item:hover {
  color: #fff;
  transform: scale(1.05);
}

.footer-social-label {
  white-space: nowrap;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #3f3f46;
  color: #fff;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.footer-social-item:hover .footer-social-icon {
  background: #52525b;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-family: var(--font-dhivehi);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #a1a1aa;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  text-align: left;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #d4d4d8;
}

.footer-rights {
  margin: 0.125rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.35;
  color: #a1a1aa;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.footer-logo-link:hover {
  opacity: 0.92;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: 9.5rem;
  object-fit: contain;
}

.footer-section--contact {
  direction: ltr;
  text-align: left;
  font-family: var(--font-sans);
  padding: 1rem 0 1.1rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.8fr) minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 1.7fr);
  gap: 0.55rem;
  align-items: stretch;
}

.footer-contact-brand,
.footer-contact-chip,
.footer-contact-address {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
}

.footer-contact-brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
}

.footer-contact-chip,
.footer-contact-address {
  transition: border-color 0.15s ease, background 0.15s ease;
}

.footer-contact-chip:hover,
.footer-contact-note a:hover {
  border-color: rgba(48, 80, 209, 0.7);
  background: rgba(48, 80, 209, 0.14);
}

.footer-contact-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #3050d1;
  text-align: left;
}

.footer-contact-name span {
  margin-left: 0.3rem;
  color: #fff;
  font-weight: 600;
}

.footer-contact-since {
  display: inline-flex;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(48, 80, 209, 0.22);
  color: #d5defc;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(48, 80, 209, 0.2);
  color: #3050d1;
}

.footer-contact-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-contact-label {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #a1a1aa;
}

.footer-contact-value {
  margin-top: 0.12rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-wrap: pretty;
}

.footer-contact-note {
  grid-column: 1 / -1;
  margin: 0.1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #a1a1aa;
  text-align: left;
}

.footer-contact-note a {
  color: #3050d1;
  font-weight: 600;
  text-decoration: none;
}

.footer-contact-note a:hover {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .footer-contact {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact-address,
  .footer-contact-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-section--contact {
    padding: 0.9rem 0 1rem;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-contact-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .footer-section {
    padding: 1.75rem 0;
  }

  .footer-nav-list {
    gap: 1rem 1.5rem;
  }

  .footer-nav-list a {
    font-size: 1rem;
  }

  .footer-social {
    gap: 1.25rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-bottom-brand {
    justify-content: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .footer-section {
    padding: 1.5rem 0;
  }

  .footer-nav {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
  }

  .footer-nav::-webkit-scrollbar {
    display: none;
  }

  .footer-nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    margin-inline: auto;
    padding-inline: 0.75rem;
    gap: 0.85rem 1.25rem;
  }

  .footer-nav-list a {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .footer-social {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 0.25rem;
  }

  .footer-social::-webkit-scrollbar {
    display: none;
  }

  .footer-social-item {
    flex-shrink: 0;
    justify-self: unset;
  }

  .footer-social-label {
    font-size: 0.8125rem;
  }

  .footer-social-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .footer-bottom-brand {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-copy,
  .footer-rights {
    text-wrap: balance;
  }
}

@media (max-width: 380px) {
  .footer-social {
    gap: 0.55rem 0.7rem;
  }

  .footer-social-label {
    font-size: 0.75rem;
  }

  .footer-social-icon {
    width: 1.6rem;
    height: 1.6rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 3rem;
  flex-direction: row-reverse;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-dhivehi);
  font-size: 0.875rem;
}

.pagination a:hover {
  background: var(--color-surface);
}

.pagination .active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

@media (max-width: 640px) {
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem 0 2rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    min-width: 2.2rem;
    text-align: center;
    border-radius: 8px;
  }
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image-placeholder {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(155deg, #ffffff 0%, #fff9f9 52%, #ffffff 100%);
}

.featured-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--color-primary) 7%, white) 0%, transparent 68%),
    radial-gradient(ellipse 80% 60% at 0% 100%, color-mix(in srgb, var(--color-primary) 5%, white) 0%, transparent 62%);
  pointer-events: none;
}

.featured-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 2px;
  pointer-events: none;
}

.featured-image-placeholder > .featured-image-placeholder-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: clamp(30px, 13%, 52px);
  max-width: 52px;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.7) opacity(0.38);
  pointer-events: none;
}

html[data-theme="dark"] .featured-image-placeholder {
  background: linear-gradient(155deg, var(--color-card-bg) 0%, #221819 52%, var(--color-card-bg) 100%);
}

html[data-theme="dark"] .featured-image-placeholder::before {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent) 0%, transparent 68%),
    radial-gradient(ellipse 80% 60% at 0% 100%, color-mix(in srgb, var(--color-primary) 10%, transparent) 0%, transparent 62%);
}

html[data-theme="dark"] .featured-image-placeholder::after {
  border-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
}

html[data-theme="dark"] .featured-image-placeholder > .featured-image-placeholder-logo {
  filter: grayscale(1) brightness(1.1) opacity(0.34);
}

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 3rem;
  font-family: var(--font-dhivehi);
  line-height: 1.8;
}

.empty-state a {
  color: var(--color-primary);
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-line {
  display: block;
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-line--sm { height: 0.75rem; }
.skeleton-line--lg { height: 1.5rem; }

.skeleton-block {
  height: 5rem;
  border-radius: 8px;
}

/* Article page skeleton — mirrors .article-title, .article-top-meta, .article-content, sidebar */
.article-skeleton-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  direction: rtl;
  margin-bottom: 1.25rem;
}

.skeleton-line--title {
  width: 100%;
  height: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-bottom: 0;
  border-radius: 6px;
}

.article-skeleton-title-line--short {
  width: 96%;
}

.article-skeleton-header {
  width: 100%;
}

.article-skeleton-content {
  pointer-events: none;
  width: 100%;
  direction: rtl;
  unicode-bidi: normal;
}

.article-skeleton-paragraph {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  direction: rtl;
  margin-bottom: 1.25rem;
}

.article-byline-text .skeleton-line,
.article-skeleton-title .skeleton-line,
.article-latest-item-text .skeleton-line,
.article-skeleton-paragraph .skeleton-line {
  margin-bottom: 0;
}

.article-skeleton-author {
  width: 9.5rem;
}

.article-skeleton-date {
  width: 5.75rem;
}

.skeleton-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-share-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.article-skeleton-figure-fill {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.article-skeleton-body-line {
  height: 0.95rem;
  border-radius: 3px;
}

.article-skeleton-paragraph:last-child {
  margin-bottom: 0;
}

.article-skeleton-sidebar-heading {
  width: 7rem;
}

.article-skeleton-thumb-fill {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.article-sidebar[aria-hidden="true"] .article-latest-item-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  direction: rtl;
}

.article-skeleton-sidebar-line {
  border-radius: 3px;
}

.skeleton-sidebar-ad {
  width: 100%;
  height: 250px;
  border-radius: 4px;
}

.header-skeleton {
  border-bottom: 1px solid var(--color-border);
}

.header-skeleton-top {
  height: 36px;
  background: #1a1a1a;
}

.header-skeleton-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Home Category Sections ───────────────────────────────────── */

.hm-cat-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: 2.5rem 0 3rem;
}

.hm-cat-section {
  position: relative;
}

.hm-cat-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.hm-cat-section-header-title {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
}

.hm-cat-section-header-title a {
  color: var(--color-primary);
  transition: color 0.15s;
}

.hm-cat-section-header-title a:hover {
  color: var(--color-primary-dark);
}

.hm-cat-section-header-line {
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: var(--color-divider-line);
}

.hm-cat-section-header-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.42rem 1rem;
  border: 1px solid var(--color-card-border);
  border-radius: 999px;
  background: var(--color-card-bg);
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--color-primary);
  white-space: nowrap;
  direction: ltr;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.hm-cat-section-header-more svg {
  flex-shrink: 0;
}

.hm-cat-section-header-more:hover {
  color: var(--color-primary-dark);
  border-color: rgba(50, 90, 255, 0.28);
  box-shadow: 0 2px 8px rgba(50, 90, 255, 0.08);
}

.hm-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.hm-cat-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.hm-cat-title a {
  color: var(--color-primary);
  transition: color 0.15s;
}

.hm-cat-title a:hover {
  color: var(--color-primary-dark);
}

.hm-cat-view-all {
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color 0.15s;
}

.hm-cat-view-all:hover {
  color: var(--color-primary);
}

.hm-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1.15rem;
  direction: rtl;
}

.hm-cat-grid-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border-radius: 14px;
  overflow: hidden;
  color: var(--color-text);
  box-shadow: 0 1px 4px var(--color-card-shadow);
  border: 1px solid var(--color-card-border);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.hm-cat-grid-card:hover {
  box-shadow: 0 6px 22px var(--color-card-hover-shadow);
  transform: translateY(-2px);
  color: var(--color-text);
}

.hm-cat-grid-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 14px 14px 0 0;
}

.hm-cat-grid-card-image img,
.hm-cat-grid-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hm-cat-grid-card:hover .hm-cat-grid-card-image img {
  transform: scale(1.04);
}

.hm-cat-grid-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 0.9rem 1rem 1rem;
  text-align: right;
}

.hm-cat-grid-card-title {
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.15s;
}

.hm-cat-grid-card:hover .hm-cat-grid-card-title {
  color: var(--color-primary);
}

.hm-cat-grid-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-start;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: auto;
}

.hm-cat-grid-card-meta svg {
  flex-shrink: 0;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .hm-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hm-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hm-cat-section-header-title {
    font-size: 1.25rem;
  }

  .hm-cat-section-header-more {
    font-size: 0.76rem;
    padding: 0.38rem 0.8rem;
  }

  .hm-cat-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hm-cat-sections {
    gap: 2.25rem;
    margin: 2rem 0;
  }

  .hm-cat-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hm-cat-grid-card-title {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }
}

/* ── Home Category Featured Column (lifestyle layout) ─────────── */

.hm-cat-featured-col {
  position: relative;
}

.hm-cat-featured-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 1rem;
  align-items: stretch;
  direction: rtl;
}

.hm-cat-featured-col-hero {
  position: relative;
  display: block;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hm-cat-featured-col-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.hm-cat-featured-col-hero img,
.hm-cat-featured-col-hero .placeholder-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hm-cat-featured-col-hero:hover img,
.hm-cat-featured-col-hero:hover .placeholder-image {
  transform: scale(1.04);
}

.hm-cat-featured-col-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.82) 100%);
  pointer-events: none;
}

.hm-cat-featured-col-hero-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.2rem 1.15rem 1.15rem;
  text-align: right;
}

.hm-cat-featured-col-hero-body h3 {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-cat-featured-col-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.hm-cat-featured-col-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.9rem;
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 14px;
  color: var(--color-text);
  box-shadow: 0 2px 8px var(--color-card-shadow);
  text-align: right;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hm-cat-featured-col-item:hover {
  border-color: rgba(50, 90, 255, 0.22);
  box-shadow: 0 6px 18px var(--color-card-hover-shadow);
  transform: translateX(-2px);
}

.hm-cat-featured-col-item-thumb {
  flex-shrink: 0;
  width: 118px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hm-cat-featured-col-item-thumb img,
.hm-cat-featured-col-item-thumb .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hm-cat-featured-col-item:hover .hm-cat-featured-col-item-thumb img,
.hm-cat-featured-col-item:hover .hm-cat-featured-col-item-thumb .placeholder-image {
  transform: scale(1.04);
}

.hm-cat-featured-col-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hm-cat-featured-col-item-text h4 {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.hm-cat-featured-col-item:hover .hm-cat-featured-col-item-text h4 {
  color: var(--color-primary);
}

.hm-cat-featured-col-item-text p {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-cat-featured-col-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-muted);
}

.hm-cat-featured-col-meta.is-light {
  color: rgba(255, 255, 255, 0.92);
}

.hm-cat-featured-col-views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hm-cat-featured-col-meta time,
.hm-cat-featured-col-views span {
  direction: rtl;
  unicode-bidi: isolate;
}

.hm-cat-featured-col-views span {
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .hm-cat-featured-col-layout {
    grid-template-columns: 1fr;
  }

  .hm-cat-featured-col-hero {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .hm-cat-featured-col-item-thumb {
    width: 96px;
    height: 72px;
  }

  .hm-cat-featured-col-item-text h4 {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }

  .hm-cat-featured-col-item-text p {
    -webkit-line-clamp: 1;
  }
}

html[data-theme="dark"] .hm-cat-featured-col-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .hm-cat-featured-col-item:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

/* ── Category Spotlight (featured + side list) ─────────────────── */

.hm-cat-spotlight-section {
  margin: 2.5rem 0 3rem;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-card-shadow);
}

.hm-cat-spotlight-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.hm-cat-spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.hm-cat-spotlight-title a {
  color: var(--color-primary);
  transition: color 0.15s;
}

.hm-cat-spotlight-title a:hover {
  color: var(--color-primary-dark);
}

.hm-cat-spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  direction: rtl;
}

.hm-cat-spotlight-featured {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--color-text);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  min-height: 100%;
}

.hm-cat-spotlight-featured:hover {
  box-shadow: 0 8px 28px var(--color-card-hover-shadow);
  transform: translateY(-2px);
}

.hm-cat-spotlight-featured-image {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--color-surface);
}

.hm-cat-spotlight-featured-image img,
.hm-cat-spotlight-featured-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hm-cat-spotlight-featured:hover .hm-cat-spotlight-featured-image img {
  transform: scale(1.03);
}

.hm-cat-spotlight-featured-body {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
  text-align: right;
}

.hm-cat-spotlight-featured-body h3 {
  font-family: var(--font-dhivehi);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-cat-spotlight-featured-body time {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  display: block;
  align-self: flex-start;
  width: fit-content;
}

.hm-cat-spotlight-featured-body time,
.hm-cat-spotlight-item-text time,
.hm-cat-tabs-card-overlay time,
.hm-cat-grid-card-meta time,
.gallery-album-hero-meta time,
.article-latest-time,
.post-strip-card-time {
  direction: rtl;
  unicode-bidi: isolate;
}

.hm-cat-spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.hm-cat-spotlight-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.15s, transform 0.2s ease;
  text-align: right;
  min-height: 0;
}

.hm-cat-spotlight-item:hover {
  border-color: rgba(50, 90, 255, 0.22);
  box-shadow: 0 4px 16px var(--color-card-hover-shadow);
  color: var(--color-primary);
  transform: translateX(-2px);
}

.hm-cat-spotlight-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.hm-cat-spotlight-item-text h4 {
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.hm-cat-spotlight-item-text time {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--color-muted);
  align-self: flex-start;
  width: fit-content;
}

.hm-cat-spotlight-item-thumb {
  flex-shrink: 0;
  width: 108px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hm-cat-spotlight-item-thumb img,
.hm-cat-spotlight-item-thumb .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hm-cat-spotlight-item:hover .hm-cat-spotlight-item-thumb img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .hm-cat-spotlight-layout {
    grid-template-columns: 1fr;
  }

  .hm-cat-spotlight-list {
    gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .hm-cat-spotlight-section {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .hm-cat-spotlight-title {
    font-size: 1.3rem;
  }

  .hm-cat-spotlight-item-thumb {
    width: 88px;
    height: 66px;
  }
}

/* ── Category Tabs (story / report) ───────────────────────────── */

.hm-cat-tabs-section {
  margin: 2.5rem 0 3rem;
}

.hm-cat-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hm-cat-tabs-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0.65rem 0.25rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.hm-cat-tabs-btn:hover {
  color: var(--color-text);
}

.hm-cat-tabs-btn.is-active {
  color: var(--color-primary);
}

.hm-cat-tabs-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-gold) 100%);
}

.hm-cat-tabs-panel {
  display: none;
}

.hm-cat-tabs-panel.is-active {
  display: block;
}

.hm-cat-tabs-panel .hm-cat-section-header {
  margin-bottom: 1.15rem;
}

.hm-cat-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  direction: rtl;
}

.hm-cat-tabs-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hm-cat-tabs-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.hm-cat-tabs-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface);
}

.hm-cat-tabs-card-image img,
.hm-cat-tabs-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hm-cat-tabs-card:hover .hm-cat-tabs-card-image img {
  transform: scale(1.05);
}

.hm-cat-tabs-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.95rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
  text-align: right;
}

.hm-cat-tabs-card-overlay h3 {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.hm-cat-tabs-card-overlay time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  align-self: flex-start;
  width: fit-content;
}

.hm-cat-tabs-more {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.hm-cat-tabs-more a {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  color: var(--color-primary);
  transition: color 0.15s;
}

.hm-cat-tabs-more a:hover {
  color: var(--color-primary-dark);
}

@media (max-width: 1024px) {
  .hm-cat-tabs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hm-cat-tabs-section {
    margin: 1.35rem 0 1.65rem;
  }

  .hm-cat-tabs-nav {
    display: flex;
    flex-direction: row;
    direction: rtl;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.38rem;
    border-bottom: none;
    border-radius: 18px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 250, 0.94) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
      0 6px 22px rgba(0, 0, 0, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.38rem;
    scrollbar-width: none;
  }

  .hm-cat-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .hm-cat-tabs-btn {
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 0.58rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-dhivehi);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-muted);
    background: transparent;
    touch-action: manipulation;
    transition:
      color 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }

  .hm-cat-tabs-btn:hover {
    color: var(--color-primary);
    background: rgba(50, 90, 255, 0.07);
    border-color: rgba(50, 90, 255, 0.14);
  }

  .hm-cat-tabs-btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, #6980d1 0%, #3050d1 52%, #243eae 100%);
    border-color: rgba(50, 90, 255, 0.35);
    box-shadow:
      0 6px 18px rgba(50, 90, 255, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
  }

  .hm-cat-tabs-btn.is-active::after {
    display: none;
  }

  .hm-cat-tabs-panel .hm-cat-section-header {
    display: none;
  }

  .hm-cat-tabs-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hm-cat-tabs-card {
    border-radius: 18px;
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.08),
      0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .hm-cat-tabs-card-image {
    aspect-ratio: 16 / 10;
  }

  .hm-cat-tabs-card-overlay {
    padding: 1.1rem 1rem;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.42) 48%,
      transparent 100%
    );
  }

  .hm-cat-tabs-card-overlay h3 {
    font-size: 0.95rem;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    margin-bottom: 0.55rem;
  }

  .hm-cat-tabs-card-overlay time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.92);
  }

  html[data-theme="dark"] .hm-cat-tabs-nav {
    background: linear-gradient(145deg, rgba(30, 36, 48, 0.98) 0%, rgba(22, 26, 36, 0.96) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  html[data-theme="dark"] .hm-cat-tabs-btn:hover {
    background: rgba(50, 90, 255, 0.14);
    border-color: rgba(255, 107, 112, 0.2);
  }
}

@media (max-width: 520px) {
  .hm-cat-tabs-nav {
    gap: 0.4rem;
    padding: 0.32rem;
    border-radius: 16px;
  }

  .hm-cat-tabs-btn {
    padding: 0.52rem 0.9rem;
    font-size: 0.84rem;
  }

  .hm-cat-tabs-grid {
    gap: 0.8rem;
  }
}

/* ── Home Videos ──────────────────────────────────────────────── */

.home-videos-section {
  margin: 2rem 0 2.5rem;
}

.home-videos-panel {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.25rem 1.35rem;
  background: linear-gradient(145deg, #12151a 0%, #181b22 52%, #14171d 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.home-videos-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 1.15rem;
  padding-inline: 0.15rem;
}

.home-videos-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}

.home-videos-title-accent {
  color: #fff;
  letter-spacing: 0.01em;
}

.home-videos-title-bar {
  display: inline-block;
  flex-shrink: 0;
  width: 4px;
  height: 1.25em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 0 12px rgba(50, 90, 255, 0.45);
}

.home-videos-carousel {
  position: relative;
  padding: 0.35rem 0 0.25rem;
  overflow: hidden;
}

.home-videos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 200px;
  touch-action: pan-y;
  width: 100%;
  max-width: 100%;
}

.home-videos-slide {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  opacity: 1;
  transform: none;
}

.home-videos-slide.is-prev,
.home-videos-slide.is-next {
  display: none;
}

.home-videos-slide.is-active {
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: none;
  z-index: 2;
}

.home-videos-slide-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-radius 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-videos-slide.is-active .home-videos-slide-media {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 107, 53, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-videos-slide-media img,
.home-videos-slide-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.home-videos-slide-fallback {
  background: linear-gradient(135deg, #2a3038 0%, #11141a 100%);
}

.home-videos-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.home-videos-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-videos-play svg {
  width: 54px;
  height: 54px;
  padding: 0.95rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #11141a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-videos-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #fff;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-videos-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.home-videos-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
  padding: 0;
}

.home-videos-dot.is-active {
  width: 22px;
  background: var(--color-primary);
}

.home-videos-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.home-videos-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(8, 10, 14, 0.82);
  cursor: pointer;
}

.home-videos-modal-panel {
  position: relative;
  width: min(100%, 920px);
  background: #11141a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.home-videos-modal-panel iframe,
.home-videos-modal-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.home-videos-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.home-videos-modal-meta {
  padding: 0.9rem 1rem 1.1rem;
  color: #fff;
  text-align: right;
}

.home-videos-modal-meta strong {
  display: block;
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-videos-modal-meta p {
  margin: 0.35rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .home-videos-panel {
  background: linear-gradient(145deg, #0d0f13 0%, #14171d 52%, #101318 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .home-videos-section {
    margin: 2.5rem 0 3rem;
  }

  .home-videos-panel {
    padding: 1.85rem 1.65rem 1.5rem;
    border-radius: 24px;
  }

  .home-videos-track {
    min-height: 280px;
    gap: 1.15rem;
  }

  .home-videos-slide {
    display: block;
    width: min(24vw, 220px);
    opacity: 0.72;
    transform: scale(0.88);
  }

  .home-videos-slide.is-prev,
  .home-videos-slide.is-next {
    display: block;
    opacity: 0.82;
  }

  .home-videos-slide.is-active {
    width: min(48vw, 520px);
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Home Gallery ─────────────────────────────────────────────── */

.home-gallery-section {
  margin: 2.5rem 0 3rem;
  padding: 1.75rem;
  background: linear-gradient(145deg, #1a1a1e 0%, #252529 50%, #1e1e22 100%);
  border-radius: 20px;
  color: #fff;
}

.home-gallery-section--loading {
  pointer-events: none;
}

.home-gallery-skeleton-title,
.home-gallery-skeleton-featured,
.home-gallery-skeleton-thumb {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.home-gallery-skeleton-title {
  width: 160px;
  height: 1.35rem;
}

.home-gallery-skeleton-featured {
  min-height: 280px;
}

.home-gallery-skeleton-thumb {
  aspect-ratio: 4 / 3;
}

.home-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-gallery-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-dhivehi);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s;
}

.home-gallery-view-all:hover {
  color: #fff;
}

.home-gallery-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-dhivehi);
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
}

.home-gallery-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.35em;
  background: var(--color-primary);
  border-radius: 2px;
}

.home-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem;
  align-items: stretch;
  direction: rtl;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-content: start;
}

@media (min-width: 640px) {
  .home-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.home-gallery-grid--empty {
  min-height: 0;
}

.home-gallery-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.55rem;
  cursor: pointer;
  color: #fff;
  text-align: right;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-gallery-grid-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.home-gallery-grid-image {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #333;
}

.home-gallery-grid-image img,
.home-gallery-grid-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-gallery-grid-item:hover:not(:disabled) .home-gallery-grid-image img {
  transform: scale(1.04);
}

.home-gallery-grid-caption {
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  padding-inline: 0.15rem;
}

.home-gallery-featured {
  min-height: 0;
}

.home-gallery-featured-image-wrap {
  position: relative;
  display: block;
  height: 100%;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #333;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.home-gallery-layout--solo {
  grid-template-columns: 1fr;
}

.home-gallery-layout--solo .home-gallery-grid--empty {
  display: none;
}

.home-gallery-featured-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.home-gallery-featured-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

.home-gallery-featured-text {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.home-gallery-featured-text h3 {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.home-gallery-featured-text p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.home-gallery-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(50, 90, 255, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.home-gallery-open-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(50, 90, 255, 0.55);
}

.home-gallery-open-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Gallery Lightbox ───────────────────────────────────────── */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #1e1e1e 0%, #0a0a0a 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.25rem 4.5rem 1.25rem;
  animation: gallery-fade-in 0.25s ease;
}

.gallery-lightbox.is-open {
  display: flex;
}

@keyframes gallery-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-counter {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-nav--prev {
  left: 1.25rem;
}

.gallery-lightbox-nav--next {
  right: 1.25rem;
}

.gallery-lightbox-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(1240px, 96vw);
  height: calc(100vh - 4.5rem);
  max-height: calc(100vh - 4.5rem);
  min-height: 0;
}

.gallery-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox-caption {
  flex-shrink: 0;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: right;
  color: #fff;
}

.gallery-lightbox-caption-title {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  line-height: 1.85;
  font-weight: 400;
}

.gallery-lightbox-caption-text {
  margin: 0.5rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
  .home-gallery-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .home-gallery-featured {
    order: 1;
  }

  .home-gallery-grid {
    order: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-gallery-featured-image-wrap {
    min-height: 280px;
  }

  .gallery-lightbox {
    padding: 3rem 0.75rem 1rem;
  }

  .gallery-lightbox-view {
    width: 100%;
    height: calc(100vh - 3.5rem);
    max-height: calc(100vh - 3.5rem);
  }

  .gallery-lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox-nav--prev {
    left: 0.5rem;
  }

  .gallery-lightbox-nav--next {
    right: 0.5rem;
  }

  .gallery-lightbox-caption {
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }

  .gallery-lightbox-caption-title {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .home-gallery-section {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .home-gallery-grid {
    gap: 0.75rem;
  }

  .home-gallery-grid-image {
    border-radius: 12px;
  }
}

/* ── Gallery Page ─────────────────────────────────────────────── */

.gallery-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gallery-breadcrumb a {
  color: var(--color-muted);
  transition: color 0.15s;
}

.gallery-breadcrumb a:hover {
  color: var(--color-primary);
}

.gallery-page-header {
  margin-bottom: 2rem;
}

.gallery-page-intro {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 52ch;
}

.gallery-page-meta {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.gallery-page-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-page-card:hover {
  box-shadow: 0 6px 20px var(--color-card-hover-shadow);
  transform: translateY(-2px);
}

.gallery-page-card-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--color-surface);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-page-card-image img,
.gallery-page-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-page-card:hover .gallery-page-card-image img {
  transform: scale(1.04);
}

.gallery-page-card-image:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.gallery-page-card-featured {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-gold);
  color: #713f12;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-page-card-count {
  position: absolute;
  bottom: 0.65rem;
  inset-inline-start: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
}

.gallery-page-card-body {
  padding: 1rem 1.1rem 1.15rem;
  text-align: right;
}

.gallery-page-card-title {
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.gallery-page-card-title a {
  color: inherit;
  transition: color 0.15s;
}

.gallery-page-card-title a:hover {
  color: var(--color-primary);
}

.gallery-page-card-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-page-card-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--color-primary);
  transition: color 0.15s;
}

.gallery-page-card-link:hover {
  color: var(--color-primary-dark);
}

.gallery-album-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 1.5rem;
  margin-bottom: 3rem;
}

.gallery-album-photo {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: transparent;
}

.gallery-album-photo-btn {
  position: relative;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--color-surface);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery-album-photo-btn img,
.gallery-album-photo-btn .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-album-photo-btn:hover img {
  transform: scale(1.03);
}

.gallery-album-photo-text {
  margin-top: 0.9rem;
  text-align: right;
}

.gallery-album-photo-title {
  margin: 0;
  padding: 0;
  font-family: var(--font-dhivehi);
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--color-text);
  text-align: right;
}

.gallery-album-photo-caption {
  margin: 0.4rem 0 0;
  padding: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-muted);
  text-align: right;
}

/* ── Gallery Album Detail ─────────────────────────────────────── */

.gallery-album-page {
  font-family: var(--font-dhivehi);
  padding-bottom: 1rem;
}

.gallery-album-hero {
  background: var(--color-surface-pink);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0 2.5rem;
  margin-bottom: 2.5rem;
}

.gallery-album-hero .gallery-breadcrumb {
  margin-bottom: 1.1rem;
}

.gallery-album-hero-title {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: right;
  color: var(--color-text);
}

.gallery-album-hero-intro {
  font-family: var(--font-dhivehi);
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--color-secondary-text);
  max-width: 68ch;
  margin-bottom: 0.85rem;
}

.gallery-album-hero-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.gallery-album-body {
  padding-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-album-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }

  .gallery-album-hero {
    padding: 1.5rem 0 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  .gallery-page-grid,
  .gallery-album-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .gallery-album-hero-title {
    font-size: 1.4rem;
  }

  .gallery-album-hero-intro {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .gallery-page-grid,
  .gallery-album-photos {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ── Tags Index Page ─────────────────────────────────────────── */

.tags-index-page {
  padding-top: 1.15rem;
  padding-bottom: 3rem;
  direction: rtl;
}

.tags-index-hero {
  margin-bottom: 1.5rem;
}

.tags-index-hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(50, 90, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.98) 50%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow:
    0 14px 40px rgba(50, 90, 255, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.03);
  animation: category-hero-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tags-index-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tags-index-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(50, 90, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 90, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 15%, transparent 100%);
}

.tags-index-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
}

.tags-index-hero-orb--a {
  width: 180px;
  height: 180px;
  top: -40px;
  inset-inline-start: -30px;
  background: rgba(50, 90, 255, 0.14);
}

.tags-index-hero-orb--b {
  width: 140px;
  height: 140px;
  bottom: -50px;
  inset-inline-end: 8%;
  background: rgba(50, 90, 255, 0.08);
}

.tags-index-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  direction: rtl;
  align-items: stretch;
  min-height: 240px;
}

.tags-index-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.35rem;
  padding-inline: 1.35rem 1rem;
  min-height: 240px;
}

.tags-index-hero-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
}

.tags-index-hero-emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(50, 90, 255, 0.18);
}

.tags-index-hero-emblem-ring--outer {
  inset: 0;
  animation: category-emblem-spin 18s linear infinite;
}

.tags-index-hero-emblem-ring--inner {
  inset: 22px;
  border-style: dashed;
  border-color: rgba(50, 90, 255, 0.24);
  animation: category-emblem-spin 12s linear infinite reverse;
}

.tags-index-hero-emblem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(50, 90, 255, 0.14) 0%, rgba(50, 90, 255, 0.06) 100%);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(50, 90, 255, 0.12);
}

.tags-index-hero-orbit {
  position: absolute;
  inset: 0.5rem;
  pointer-events: none;
}

.tags-index-hero-orbit-chip {
  position: absolute;
  max-width: 7.5rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(50, 90, 255, 0.12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  font-family: var(--font-dhivehi);
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--color-secondary-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  animation: tags-orbit-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--orbit-i, 0) * 80ms + 120ms);
}

.tags-index-hero-orbit-chip:nth-child(1) { top: 8%; inset-inline-end: 4%; }
.tags-index-hero-orbit-chip:nth-child(2) { top: 28%; inset-inline-start: 2%; }
.tags-index-hero-orbit-chip:nth-child(3) { bottom: 24%; inset-inline-end: 0; }
.tags-index-hero-orbit-chip:nth-child(4) { bottom: 8%; inset-inline-start: 8%; }
.tags-index-hero-orbit-chip:nth-child(5) { top: 48%; inset-inline-end: 18%; }
.tags-index-hero-orbit-chip:nth-child(6) { top: 14%; inset-inline-start: 18%; }

@keyframes tags-orbit-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tags-index-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 2rem 1.85rem;
  padding-inline: 1.35rem 2rem;
  text-align: right;
  direction: rtl;
  border-inline-start: 1px solid rgba(50, 90, 255, 0.1);
}

.tags-index-hero-content::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(50, 90, 255, 0.45) 22%,
    var(--color-primary) 50%,
    rgba(50, 90, 255, 0.45) 78%,
    transparent 100%
  );
}

.tags-index-hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 90, 255, 0.18);
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.1) 0%, rgba(50, 90, 255, 0.04) 100%);
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary);
}

.tags-index-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.28;
  color: var(--color-text);
}

.tags-index-hero-intro {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-muted);
  max-width: 36rem;
}

.tags-index-hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.tags-index-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.65rem;
  padding-inline: 1.15rem 1rem;
  direction: rtl;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(50, 90, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.tags-index-stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-primary);
}

.tags-index-stat-label {
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  color: var(--color-secondary-text);
}

.tags-index-toolbar {
  position: sticky;
  top: calc(var(--header-height, 64px) + 0.5rem);
  z-index: 20;
  margin-bottom: 1.35rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.tags-index-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.85rem 0.2rem 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tags-index-search:focus-within {
  border-color: rgba(50, 90, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(50, 90, 255, 0.08);
}

.tags-index-search-icon {
  display: inline-flex;
  color: var(--color-muted);
  flex-shrink: 0;
}

.tags-index-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  outline: none;
}

.tags-index-search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.85;
}

.tags-index-search-input::-webkit-search-cancel-button {
  display: none;
}

.tags-index-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.08);
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.tags-index-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.tags-index-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.tags-index-filters button {
  border: 0;
  background: transparent;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tags-index-filters button.is-active {
  background: rgba(50, 90, 255, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

.tags-index-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-dhivehi);
  font-size: 0.86rem;
  color: var(--color-muted);
}

.tags-index-sort select {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  background: var(--color-surface);
  font-family: var(--font-dhivehi);
  font-size: 0.86rem;
  color: var(--color-text);
  cursor: pointer;
}

.tags-index-section-head {
  margin-bottom: 1rem;
}

.tags-index-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.tags-index-section-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 400;
  color: var(--color-text);
}

.tags-index-section-desc {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.tags-index-result-count {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.tags-index-spotlight {
  margin-bottom: 1.75rem;
}

.tags-index-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tags-index-spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(50, 90, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.94) 100%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
  animation: tags-orbit-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--spotlight-i, 0) * 45ms);
}

.tags-index-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 90, 255, 0.22);
  box-shadow: 0 12px 28px rgba(50, 90, 255, 0.08);
}

.tags-index-spotlight-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.1);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tags-index-spotlight-name {
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags-index-spotlight-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-family: var(--font-dhivehi);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.tags-index-spotlight-count {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tags-index-spotlight-arrow {
  color: var(--color-primary);
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tags-index-spotlight-card:hover .tags-index-spotlight-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

.tags-index-results {
  margin-bottom: 2rem;
}

.tags-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}

.tags-index-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 6.5rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.tags-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 90, 255, 0.2);
  box-shadow: 0 10px 24px rgba(50, 90, 255, 0.08);
}

.tags-index-card-name {
  font-family: var(--font-dhivehi);
  font-size: calc(0.92rem * var(--tag-weight, 1));
  line-height: 1.45;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags-index-card-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  direction: rtl;
}

.tags-index-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

.tags-index-card-count--empty {
  background: var(--color-surface);
  color: var(--color-muted);
  font-weight: 600;
}

.tags-index-card-label {
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.tags-index-card-arrow {
  margin-inline-start: auto;
  color: var(--color-primary);
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tags-index-card:hover .tags-index-card-arrow {
  opacity: 1;
  transform: translateX(-3px);
}

.tags-index-more {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.tags-index-more-btn,
.tags-index-reset-btn {
  border: 1px solid rgba(50, 90, 255, 0.18);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: rgba(50, 90, 255, 0.06);
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tags-index-more-btn:hover,
.tags-index-reset-btn:hover {
  background: rgba(50, 90, 255, 0.1);
  border-color: rgba(50, 90, 255, 0.28);
}

.tags-index-empty {
  margin: 1rem 0 2rem;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed var(--color-border);
  background: var(--color-surface);
  text-align: center;
  font-family: var(--font-dhivehi);
  color: var(--color-muted);
}

.tags-index-empty--page {
  margin-top: 2rem;
}

.tags-index-empty p {
  margin: 0 0 0.85rem;
}

html[data-theme="dark"] .tags-index-hero-shell {
  background:
    linear-gradient(145deg, rgba(28, 30, 38, 0.98) 0%, rgba(36, 24, 28, 0.96) 50%, rgba(28, 30, 38, 0.98) 100%);
  border-color: rgba(50, 90, 255, 0.2);
}

html[data-theme="dark"] .tags-index-hero-content {
  border-inline-start-color: rgba(50, 90, 255, 0.16);
}

html[data-theme="dark"] .tags-index-stat-card,
html[data-theme="dark"] .tags-index-toolbar {
  background: rgba(28, 30, 38, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .tags-index-hero-orbit-chip,
html[data-theme="dark"] .tags-index-spotlight-card {
  background: linear-gradient(145deg, rgba(34, 36, 44, 0.95) 0%, rgba(40, 28, 32, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .tags-index-hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tags-index-hero-visual {
    min-height: 200px;
    padding-block: 1rem 0.35rem;
  }

  .tags-index-hero-orbit {
    display: none;
  }

  .tags-index-hero-content {
    border-inline-start: none;
    border-top: 1px solid rgba(50, 90, 255, 0.08);
    padding-block: 1.45rem 1.35rem;
    padding-inline: 1.25rem;
  }

  .tags-index-hero-content::before {
    display: none;
  }

  .tags-index-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .tags-index-toolbar {
    top: calc(var(--header-height, 64px) + 0.25rem);
  }
}

@media (max-width: 640px) {
  .tags-index-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tags-index-sort {
    justify-content: space-between;
  }

  .tags-index-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tags-index-hero-shell,
  .tags-index-hero-orbit-chip,
  .tags-index-spotlight-card {
    animation: none;
  }

  .tags-index-hero-emblem-ring--outer,
  .tags-index-hero-emblem-ring--inner {
    animation: none;
  }
}

/* Legacy tag cloud (kept for compatibility) */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.tags-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  color: var(--color-text);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tags-cloud-item:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px rgba(50, 90, 255, 0.1);
  transform: translateY(-1px);
}

.tags-cloud-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--color-muted);
}

.tags-cloud-item:hover .tags-cloud-count {
  background: #fff3f3;
  color: var(--color-primary);
}


/* Waheed for navigation and headings (adhadhu.com style) */
.nav-links a,
.nav-submenu a,
.site-logo-name,
.site-logo-sub,
.breaking-news-title,
.hero-featured-title,
.hero-sidebar-title,
.hero-sidebar-item-text h4,
.hero-bottom-card-title,
.post-strip-title,
.post-strip-card-title,
.section-title,
.post-card-title,
.post-card-category,
.search-result-card-title,
.article-latest-title,
.article-latest-item-text h4,
.article-title,
.article-content h2,
.article-content h3,
.article-content .article-related-post-title,
.article-content .article-gallery-embed-title,
.article-content .article-gallery-embed-caption-title,
.article-content .article-video-gallery-embed-title,
.article-content .article-video-gallery-embed-caption-title,
.article-comments-title,
.related-posts-title,
.related-post-card-title,
.home-gallery-title,
.home-gallery-grid-caption,
.home-gallery-featured-text h3,
.category-hero-title,
.hm-cat-section-header-title,
.hm-cat-title,
.hm-cat-spotlight-title,
.hm-cat-spotlight-featured-body h3,
.hm-cat-spotlight-item-text h4,
.hm-cat-grid-card-title,
.home-popular-posts-title,
.home-reels-title,
.home-reels-card-caption span,
.home-reels-modal-caption,
.home-popular-posts-card-title,
.hm-cat-section-header-more,
.hm-cat-tabs-btn,
.gallery-lightbox-caption-title,
.gallery-page-card-title,
.gallery-album-photo-title,
.gallery-album-hero-title,
.tags-cloud-item {
  font-family: var(--font-heading);
}

/* ── Homepage mobile polish ───────────────────────────────────── */

@media (max-width: 640px) {
  :root {
    --site-gutter: 0.9rem;
  }

  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .breaking-news-inner {
    padding-block: 0.55rem;
  }

  .breaking-news-title {
    font-size: 1.05rem;
  }

  .breaking-news-badge {
    font-size: 0.74rem;
    padding: 0.18rem 0.45rem;
  }

  .hm-ad-top-banner-wrap {
    margin-top: 0.5rem;
  }

  .hm-ad-top-banner.hm-ad-slot {
    margin-bottom: 0.85rem;
  }

  .hm-ad-footer-banner,
  .hm-ad-section-banner {
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .hero-block {
    margin: 0.75rem 0 1.35rem;
    gap: 0.9rem;
  }

  .hero-featured-lead-media {
    border-radius: 0;
  }

  .hero-featured-lead-panel {
    border-radius: 0;
  }

  .hero-featured-text {
    padding: 1rem 1rem 0.95rem;
  }

  .hero-featured-title {
    font-size: 1.22rem;
    line-height: 1.5;
    margin-bottom: 0.55rem;
  }

  .hero-featured-excerpt {
    font-size: 0.88rem;
    line-height: 1.75;
    -webkit-line-clamp: 3;
  }

  .hero-featured-footer {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 0.85rem;
  }

  .hero-featured-read {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }

  .hero-bottom-outer {
    padding: 0.75rem 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .post-strip-section {
    margin: 1.35rem 0 1.75rem;
  }

  .post-strip-header {
    margin-bottom: 0.95rem;
  }

  .post-strip-title {
    font-size: 1.15rem;
  }

  .post-strip-more {
    margin-top: 1.25rem;
  }

  .post-strip-more-btn {
    width: 100%;
    max-width: 18rem;
    min-width: 0;
    padding: 0.68rem 1.25rem;
  }

  .hm-cat-sections {
    gap: 1.85rem;
    margin: 1.5rem 0 1.75rem;
  }

  .hm-cat-section-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hm-cat-section-header-line {
    display: none;
  }

  .hm-cat-section-header-more {
    margin-inline-start: auto;
    font-size: 0.72rem;
    padding: 0.34rem 0.7rem;
  }

  .hm-cat-tabs-section,
  .home-videos-section,
  .home-gallery-section {
    margin: 1.5rem 0 1.75rem;
  }

  .home-videos-panel {
    padding: 1rem 0.85rem 0.95rem;
    border-radius: 16px;
  }

  .home-videos-track {
    min-height: 180px;
  }

  .home-videos-play svg {
    width: 46px;
    height: 46px;
    padding: 0.8rem;
  }
}

@media (max-width: 420px) {
  :root {
    --site-gutter: 0.8rem;
  }

  .hero-featured-category {
    font-size: 0.62rem;
    margin-bottom: 0.7rem;
  }

  .hm-cat-section-header-title {
    font-size: 1.1rem;
  }

  .hm-cat-section-header-more span {
    display: none;
  }

  .hm-cat-section-header-more {
    padding: 0.38rem 0.55rem;
  }
}

/* ── On This Day (homepage slider + archive) ── */

.hm-otd-section {
  width: 100%;
  margin: 2.5rem 0 2.75rem;
}

.hm-otd-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  direction: ltr;
}

.hm-otd-heading {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 0;
  max-width: 100%;
  text-align: right;
}

.hm-otd-title {
  display: block;
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--color-primary);
  font-family: Waheed, var(--font-heading);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
  direction: rtl;
  white-space: nowrap;
}

.hm-otd-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.06) 0%, var(--color-surface) 55%);
  border: 1px solid rgba(50, 90, 255, 0.14);
  box-shadow: 0 2px 10px rgba(50, 90, 255, 0.06);
  white-space: nowrap;
  flex-shrink: 0;
}

.hm-otd-date-day {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.hm-otd-date-month {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary-text);
  padding-top: 0.1rem;
}

html[data-theme="dark"] .hm-otd-date {
  background: linear-gradient(135deg, rgba(50, 90, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 55%);
  border-color: rgba(50, 90, 255, 0.22);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .hm-otd-date-month {
  color: var(--color-muted);
}

.hm-otd-more {
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-card-border);
  background: var(--color-card-bg);
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hm-otd-more:hover {
  color: var(--color-primary-dark);
  border-color: rgba(50, 90, 255, 0.28);
  box-shadow: 0 4px 14px rgba(50, 90, 255, 0.08);
}

.hm-otd-more svg {
  flex-shrink: 0;
}

.hm-otd-carousel-wrap {
  position: relative;
  width: 100%;
}

.hm-otd-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0 0.35rem;
  scroll-padding-inline: 0.2rem;
}

.hm-otd-track::-webkit-scrollbar {
  display: none;
}

.hm-otd-card {
  scroll-snap-align: start;
  min-width: 0;
}

.hm-otd-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hm-otd-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.hm-otd-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface);
}

.hm-otd-card-media img,
.hm-otd-card-media .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hm-otd-card-link:hover .hm-otd-card-media img {
  transform: scale(1.05);
}

.hm-otd-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.hm-otd-year-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  min-width: 3.25rem;
  padding: 0.42rem 0.55rem 0.46rem;
  border-radius: 10px;
  background: rgba(20, 24, 32, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hm-otd-year-badge strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hm-otd-year-ago {
  font-family: var(--font-dhivehi);
  font-size: 0.6rem;
  opacity: 0.9;
  white-space: nowrap;
  direction: rtl;
  unicode-bidi: plaintext;
}

.hm-otd-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.95rem 0.85rem;
  color: #fff;
  direction: ltr;
  text-align: right;
}

.hm-otd-category {
  display: inline-block;
  padding: 0.22rem 0.52rem;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: calc(100% - 0.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: flex-end;
}

.hm-otd-card-caption h3 {
  width: 100%;
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: right;
  direction: rtl;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-otd-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-card-border);
  border-radius: 50%;
  background: var(--color-card-bg);
  color: var(--color-text);
  box-shadow:
    0 4px 20px var(--color-card-hover-shadow),
    0 0 0 4px rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.hm-otd-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(50, 90, 255, 0.25);
  color: var(--color-primary);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.14),
    0 0 0 4px rgba(255, 255, 255, 0.8);
}

.hm-otd-nav.is-disabled,
.hm-otd-nav:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.hm-otd-nav-prev {
  left: -0.65rem;
}

.hm-otd-nav-next {
  right: -0.65rem;
}

html[data-theme="dark"] .hm-otd-nav {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 4px rgba(26, 26, 26, 0.85);
}

html[data-theme="dark"] .hm-otd-nav:hover:not(:disabled) {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(26, 26, 26, 0.95);
}

/* Archive page */

.otd-archive {
  padding-top: 1.15rem;
  padding-bottom: 3rem;
  font-family: var(--font-dhivehi);
  direction: rtl;
}

.otd-archive .archive-breadcrumb {
  font-family: var(--font-dhivehi);
}

.otd-archive.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.otd-hero {
  margin-bottom: 0.5rem;
}

.otd-hero-shell {
  position: relative;
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(50, 90, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 247, 0.98) 48%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow:
    0 18px 48px rgba(50, 90, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  animation: otd-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.otd-hero-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.otd-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(50, 90, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 90, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
}

.otd-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.otd-hero-orb--a {
  width: 220px;
  height: 220px;
  top: -80px;
  left: -40px;
  background: rgba(50, 90, 255, 0.18);
  animation: otd-orb-float-a 9s ease-in-out infinite;
}

.otd-hero-orb--b {
  width: 180px;
  height: 180px;
  right: -30px;
  bottom: -60px;
  background: rgba(245, 197, 24, 0.16);
  animation: otd-orb-float-b 11s ease-in-out infinite;
}

.otd-hero-glow {
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 90, 255, 0.45), transparent);
  animation: otd-glow-pulse 3.5s ease-in-out infinite;
}

.otd-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.35rem) clamp(1.1rem, 4vw, 2rem) clamp(1.35rem, 3vw, 1.85rem);
}

.otd-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: stretch;
}

.otd-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  min-width: 0;
}

.otd-hero-side {
  min-width: 0;
}

.otd-hero-side-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  min-height: 100%;
  padding: 1.1rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 30px rgba(50, 90, 255, 0.06);
  animation: otd-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.otd-hero-side-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.otd-hero-side-date {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.otd-hero-side-day {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-text);
}

.otd-hero-side-month {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.otd-hero-side-meta {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.otd-hero-side-meta strong {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-text);
}

.otd-hero-side-meta-sep {
  margin-inline: 0.35rem;
  opacity: 0.45;
}

.otd-year-chart {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.otd-year-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.otd-year-chart-title {
  font-family: var(--font-dhivehi);
  font-size: 0.72rem;
  color: var(--color-muted);
}

.otd-year-chart-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.1);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.otd-year-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.otd-year-chart-grid {
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.otd-year-chart-area {
  opacity: 0.9;
}

.otd-year-chart-line {
  filter: drop-shadow(0 2px 6px rgba(50, 90, 255, 0.2));
}

.otd-year-chart-point {
  cursor: pointer;
  outline: none;
}

.otd-year-chart-hit {
  fill: transparent;
  stroke: none;
}

.otd-year-chart-dot {
  fill: #fff;
  stroke: #3050d1;
  stroke-width: 2;
  transition:
    r 0.2s ease,
    fill 0.2s ease,
    stroke-width 0.2s ease;
}

.otd-year-chart-point:hover .otd-year-chart-dot,
.otd-year-chart-point:focus-visible .otd-year-chart-dot {
  fill: #ffe8e9;
  stroke-width: 2.5;
}

.otd-year-chart-point.is-active .otd-year-chart-dot {
  fill: #3050d1;
  stroke: #3050d1;
  stroke-width: 0;
}

.otd-year-chart-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  fill: #9ca3af;
  pointer-events: none;
}

.otd-year-chart-label.is-active {
  fill: #3050d1;
  font-weight: 700;
}

html[data-theme="dark"] .otd-hero-side-card {
  background: rgba(24, 28, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .otd-hero-side-day {
  color: #f3f4f6;
}

html[data-theme="dark"] .otd-year-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .otd-year-chart-dot {
  fill: #1a1f2b;
}

html[data-theme="dark"] .otd-year-chart-point:hover .otd-year-chart-dot,
html[data-theme="dark"] .otd-year-chart-point:focus-visible .otd-year-chart-dot {
  fill: rgba(50, 90, 255, 0.2);
}

html[data-theme="dark"] .otd-year-chart-label {
  fill: #6b7280;
}

.otd-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
}

.otd-hero-emblem {
  position: relative;
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  animation: otd-emblem-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.otd-hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(50, 90, 255, 0.22);
}

.otd-hero-ring--outer {
  animation: otd-ring-pulse 2.8s ease-in-out infinite;
}

.otd-hero-ring--inner {
  inset: 10px;
  border-color: rgba(50, 90, 255, 0.14);
  animation: otd-ring-pulse 2.8s ease-in-out 0.6s infinite reverse;
}

.otd-hero-icon {
  position: absolute;
  inset: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(50, 90, 255, 0.16), rgba(50, 90, 255, 0.06));
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: otd-clock-tick 4s ease-in-out infinite;
}

.otd-hero-intro {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.otd-hero-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  opacity: 0.9;
  animation: otd-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.otd-hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
  animation: otd-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.otd-hero-subtitle {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-muted);
  animation: otd-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.otd-hero-picker {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  width: 100%;
  animation: otd-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

@keyframes otd-hero-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes otd-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes otd-emblem-in {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes otd-ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.45;
  }
}

@keyframes otd-clock-tick {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

@keyframes otd-orb-float-a {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, 12px);
  }
}

@keyframes otd-orb-float-b {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, -10px);
  }
}

@keyframes otd-glow-pulse {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes otd-divider-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otd-hero-shell,
  .otd-hero-kicker,
  .otd-hero-title,
  .otd-hero-subtitle,
  .otd-hero-side-card,
  .otd-hero-picker,
  .otd-hero-emblem,
  .otd-hero-divider span {
    animation: none;
  }

  .otd-hero-ring--outer,
  .otd-hero-ring--inner,
  .otd-hero-icon,
  .otd-hero-orb,
  .otd-hero-glow {
    animation: none;
  }

  .otd-cal-panel--sheet {
    animation: none;
  }
}

html[data-theme="dark"] .otd-hero-shell {
  border-color: rgba(255, 107, 112, 0.22);
  background:
    linear-gradient(145deg, rgba(28, 34, 48, 0.98) 0%, rgba(36, 24, 28, 0.96) 50%, rgba(24, 28, 38, 0.98) 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .otd-hero-grid {
  opacity: 0.2;
}

html[data-theme="dark"] .otd-cal-trigger {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.1);
}

.otd-hero-date {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--color-muted);
}

.otd-date-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 0.88rem;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
}

.otd-date-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.otd-cal {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.otd-cal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  border: none;
  background: rgba(10, 12, 18, 0.42);
  backdrop-filter: blur(2px);
  cursor: pointer;
  animation: otd-cal-backdrop-in 0.18s ease;
}

@keyframes otd-cal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.otd-cal-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 90, 255, 0.16);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.otd-cal-trigger.is-open {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(50, 90, 255, 0.16);
}

.otd-cal-trigger-label {
  flex-shrink: 1;
  min-width: 0;
}

.otd-cal-trigger:hover:not(:disabled) {
  border-color: rgba(50, 90, 255, 0.35);
  box-shadow: 0 4px 18px rgba(50, 90, 255, 0.1);
}

.otd-cal-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.otd-cal-trigger svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.otd-cal-trigger-date {
  flex-shrink: 0;
  padding-inline-start: 0.65rem;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-muted);
  direction: ltr;
  unicode-bidi: isolate;
}

.otd-cal-panel {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: auto;
  animation: otd-cal-in 0.2s ease;
}

.otd-cal-panel--portal {
  position: fixed;
}

@keyframes otd-cal-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes otd-cal-in-centered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.otd-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.otd-cal-month {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.otd-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f4f4f6;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.otd-cal-nav:hover {
  background: rgba(50, 90, 255, 0.1);
  color: var(--color-primary);
}

.otd-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

.otd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.otd-cal-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.otd-cal-day:hover:not(.is-empty) {
  background: #f2f2f5;
}

.otd-cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1.5px rgba(50, 90, 255, 0.45);
  color: var(--color-primary);
}

.otd-cal-day.is-selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.otd-cal-day.is-empty {
  pointer-events: none;
}

.otd-cal-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.otd-cal-today {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: #f4f4f6;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.otd-cal-today:hover {
  background: rgba(50, 90, 255, 0.1);
  color: var(--color-primary);
}

html[data-theme="dark"] .otd-cal-trigger,
html[data-theme="dark"] .otd-cal-panel {
  background: #1e2430;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .otd-cal-trigger-date {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .otd-cal-nav,
html[data-theme="dark"] .otd-cal-today {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .otd-cal-day:hover:not(.is-empty) {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .otd-cal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.otd-hero-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  color: var(--color-muted);
}

.otd-hero-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 90, 255, 0.22), transparent);
  transform-origin: center;
  animation: otd-divider-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.otd-hero-divider svg {
  flex-shrink: 0;
  animation: otd-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.otd-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.otd-years {
  position: sticky;
  top: 5.5rem;
}

.otd-years-heading {
  margin: 0 0 0.85rem;
  padding-inline-start: 2.1rem;
  font-family: var(--font-dhivehi);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.otd-years-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.otd-years-rail::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  inset-inline-start: 0.72rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(50, 90, 255, 0.08) 0%,
    rgba(50, 90, 255, 0.35) 50%,
    rgba(50, 90, 255, 0.08) 100%
  );
}

.otd-year-tab {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  cursor: pointer;
  text-align: right;
  animation: otd-year-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--otd-year-i, 0) * 0.06s);
}

.otd-year-tab-marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.otd-year-tab-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(50, 90, 255, 0.28);
  background: var(--color-bg);
  box-shadow: 0 0 0 4px rgba(50, 90, 255, 0.06);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.otd-year-tab-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 250, 0.92));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.otd-year-tab:hover .otd-year-tab-body {
  transform: translateX(-3px);
  border-color: rgba(50, 90, 255, 0.18);
  box-shadow:
    0 10px 24px rgba(50, 90, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.otd-year-tab:hover .otd-year-tab-dot {
  border-color: rgba(50, 90, 255, 0.55);
  transform: scale(1.12);
}

.otd-year-tab.is-active .otd-year-tab-dot {
  border-color: #fff;
  background: var(--color-primary);
  box-shadow:
    0 0 0 4px rgba(50, 90, 255, 0.18),
    0 0 18px rgba(50, 90, 255, 0.35);
  transform: scale(1.15);
}

.otd-year-tab.is-active .otd-year-tab-body {
  border-color: rgba(50, 90, 255, 0.22);
  background: linear-gradient(145deg, #1f2635 0%, #151a24 100%);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(21, 26, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-4px);
}

.otd-year-tab-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.otd-year-tab-year {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.otd-year-tab-ago {
  font-family: var(--font-dhivehi);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-muted);
  white-space: nowrap;
}

.otd-year-tab-ago.is-current {
  color: var(--color-primary);
}

.otd-year-tab.is-active .otd-year-tab-ago {
  color: rgba(255, 255, 255, 0.72);
}

.otd-year-tab.is-active .otd-year-tab-ago.is-current {
  color: #ffb4b7;
}

.otd-year-tab-count {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(50, 90, 255, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.otd-year-tab.is-active .otd-year-tab-count {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes otd-year-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html[data-theme="dark"] .otd-year-tab-body {
  background: linear-gradient(145deg, rgba(30, 36, 48, 0.96), rgba(24, 28, 38, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .otd-year-tab:hover .otd-year-tab-body {
  border-color: rgba(255, 107, 112, 0.24);
}

html[data-theme="dark"] .otd-year-tab-dot {
  background: #14171d;
}

@media (prefers-reduced-motion: reduce) {
  .otd-year-tab {
    animation: none;
  }

  .otd-year-tab:hover .otd-year-tab-body,
  .otd-year-tab.is-active .otd-year-tab-body {
    transform: none;
  }
}

.otd-content {
  min-width: 0;
}

.otd-content-header {
  margin-bottom: 1.25rem;
}

.otd-content-year {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #1c2230;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.otd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.otd-grid-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.otd-grid-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.otd-grid-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.otd-grid-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.otd-grid-card-image img,
.otd-grid-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.otd-grid-card-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.22rem 0.48rem;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.68rem;
  font-weight: 700;
}

.otd-grid-card-body {
  padding: 0.85rem 0.9rem 0.95rem;
}

.otd-grid-card-body h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-grid-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
}

.otd-grid-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 900px) {
  .otd-hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .otd-hero-side {
    order: -1;
  }

  .otd-hero-top {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .otd-hero-emblem {
    width: 68px;
    height: 68px;
  }

  .otd-hero-picker {
    justify-content: flex-start;
  }

  .otd-hero-picker .otd-cal {
    width: 100%;
    justify-content: flex-start;
  }

  .otd-hero-picker .otd-cal-trigger {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  /* Year tabs below replace the hero chart on smaller screens */
  .otd-year-chart {
    display: none;
  }

  .otd-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-width: 0;
  }

  .otd-years {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .otd-years-heading {
    display: none;
  }

  .otd-years-rail {
    display: flex;
    flex-direction: row;
    direction: rtl;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0.2rem 0 0.65rem;
    margin-inline: 0;
    max-width: 100%;
    scrollbar-width: none;
  }

  .otd-years-rail::before {
    display: none;
  }

  .otd-years-rail::-webkit-scrollbar {
    display: none;
  }

  .otd-year-tab {
    flex: 0 0 auto;
    width: auto;
    direction: rtl;
    scroll-snap-align: center;
    animation: none;
  }

  .otd-year-tab-marker {
    display: none;
  }

  .otd-year-tab-body {
    min-width: 0;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
  }

  .otd-year-tab:hover .otd-year-tab-body,
  .otd-year-tab.is-active .otd-year-tab-body {
    transform: none;
  }

  .otd-year-tab-top {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .otd-year-tab-year {
    font-size: 0.95rem;
  }

  .otd-year-tab-ago {
    display: none;
  }

  .otd-year-tab-count {
    font-size: 0.62rem;
    padding: 0.12rem 0.38rem;
  }

  .otd-content-header {
    display: none;
  }

  .otd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-otd-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  .otd-archive {
    padding-top: 0.85rem;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }

  .otd-hero {
    margin-bottom: 0.35rem;
  }

  .otd-hero-shell {
    border-radius: 16px;
    overflow: hidden;
  }

  .otd-hero-content {
    padding: 1.15rem 1rem 1.05rem;
  }

  .otd-hero-side-card {
    padding: 0.9rem 0.85rem;
    border-radius: 14px;
  }

  .otd-hero-side-day {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .otd-hero-emblem {
    width: 58px;
    height: 58px;
  }

  .otd-hero-ring--inner {
    inset: 8px;
  }

  .otd-hero-icon {
    inset: 11px;
  }

  .otd-hero-title {
    font-size: clamp(1.3rem, 6.5vw, 1.7rem);
  }

  .otd-hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: none;
  }

  .otd-hero-main {
    gap: 1.1rem;
  }

  .otd-cal-trigger {
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.4rem 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    text-align: center;
    touch-action: manipulation;
  }

  .otd-cal-trigger-date {
    flex-basis: 100%;
    padding-inline-start: 0;
    padding-top: 0.4rem;
    border-inline-start: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
  }

  html[data-theme="dark"] .otd-cal-trigger-date {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .otd-cal-panel--sheet {
    border-radius: 20px 20px 0 0;
    padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    animation: otd-cal-sheet-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .otd-cal-panel--sheet::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.14);
  }

  html[data-theme="dark"] .otd-cal-panel--sheet::before {
    background: rgba(255, 255, 255, 0.2);
  }

  .otd-cal-day {
    min-height: 42px;
    touch-action: manipulation;
  }

  .otd-hero-divider {
    margin-top: 0.95rem;
    gap: 0.55rem;
  }

  .otd-layout {
    gap: 0.75rem;
  }

  .otd-years-rail {
    gap: 0.45rem;
    padding-bottom: 0.55rem;
  }

  .otd-year-tab-body {
    padding: 0.48rem 0.72rem;
  }

  .otd-year-tab-year {
    font-size: 0.9rem;
  }

  .otd-content {
    min-width: 0;
  }

  .otd-grid {
    gap: 0.9rem;
  }

  .otd-grid-card {
    border-radius: 12px;
  }

  .otd-grid-card-body {
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .otd-grid-card-body h3 {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
  }

  .otd-grid-card-meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.74rem;
  }

  .otd-archive .pagination {
    margin-top: 1.5rem;
  }
}

@keyframes otd-cal-sheet-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .hm-otd-header {
    gap: 0.75rem;
  }

  .hm-otd-title {
    white-space: normal;
    font-size: 1.2rem;
  }

  .hm-otd-date {
    padding: 0.38rem 0.8rem;
  }

  .hm-otd-date-day {
    font-size: 1.1rem;
  }

  .hm-otd-more span {
    display: none;
  }

  .hm-otd-more {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    margin-top: 0.35rem;
  }

  .hm-otd-nav {
    width: 38px;
    height: 38px;
  }

  .hm-otd-nav-prev {
    left: -0.35rem;
  }

  .hm-otd-nav-next {
    right: -0.35rem;
  }

  .otd-grid {
    grid-template-columns: 1fr;
  }

  .otd-year-tab-body {
    padding: 0.45rem 0.65rem;
  }

  .otd-year-tab-year {
    font-size: 0.85rem;
  }
}

/* Report post view */
.report-page {
  background: var(--color-bg);
  min-height: 60vh;
}

.report-preview-banner {
  position: relative;
  z-index: 3;
}

.report-hero {
  position: relative;
  min-height: clamp(320px, 58vw, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1a1a;
}

.report-hero-media {
  position: absolute;
  inset: 0;
}

.report-hero-media--fallback {
  background: linear-gradient(145deg, #2a1518 0%, #111 100%);
}

.report-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.report-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  color: #fff;
  text-align: right;
}

.report-hero-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.report-hero-badge:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.report-hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  line-height: 1.35;
  font-weight: 800;
}

.report-hero-summary {
  margin: 0 0 1.1rem;
  max-width: 52rem;
  margin-inline-start: auto;
  font-family: var(--font-article);
  font-size: 1.125rem;
  line-height: 1.65;
  opacity: 0.94;
  unicode-bidi: plaintext;
}

.report-hero-author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  width: 100%;
}

.report-hero-author-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.report-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.15);
}

.report-author-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.report-body-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem) 3rem;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--color-divider-line);
}

.report-toolbar-date {
  flex-shrink: 0;
}

.report-toolbar-date-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 2px 10px var(--color-card-shadow);
  color: var(--color-text);
  text-decoration: none;
}

.report-toolbar-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(50, 90, 255, 0.1);
  color: var(--color-primary);
  flex-shrink: 0;
}

.report-toolbar-date-body {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.report-toolbar-date-label {
  font-family: "MV Faseyha", "Waheed", Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  direction: rtl;
  unicode-bidi: isolate;
}

.report-toolbar-date-day {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.report-toolbar-date-meta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.report-toolbar-date-month {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.report-toolbar-date-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.report-toolbar-date-weekday {
  display: none;
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-inline-start: 0.35rem;
  border-inline-start: 1px solid var(--color-divider-line);
}

.report-toolbar-share {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.report-toolbar-share .article-share-wrap {
  align-items: flex-start;
}

.report-toolbar-share .article-share-icons {
  gap: 0.55rem;
}

.report-toolbar-share .article-share-icon {
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.report-toolbar-share .article-share-icon:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
  .report-toolbar-date-weekday {
    display: inline;
  }

  .report-toolbar-date-card {
    padding-inline-end: 1rem;
  }
}

.report-article {
  padding: 1.5rem 0 0;
  --article-font-scale: 1.25;
}

.report-article .article-content {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", var(--font-article);
  font-size: calc(16px * var(--article-font-scale, 1.25));
  line-height: 1.9;
}

.report-article .article-related-tags {
  margin-top: 2rem;
}

.report-article .post-reactions {
  margin-top: 2rem;
}

.report-author-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
}

.report-author-card .report-author-avatar {
  width: 56px;
  height: 56px;
  border-color: var(--color-card-border);
  color: var(--color-text);
  background: var(--color-bg);
}

.report-author-card-text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.report-author-card-name {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.report-author-card-bio {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.report-related-posts {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.report-related-posts.related-posts--in-article {
  max-width: none;
  padding-inline: 0;
}

.report-body-wrap .article-comments-area {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .report-hero {
    min-height: clamp(280px, 72vw, 420px);
  }
}

/* ── Story / Vaahaka ── */
.story-category-page {
  --story-purple: #7c3aed;
  --story-pink: #db2777;
  --story-cream: #fdfbf4;
  background: var(--story-cream);
  padding-bottom: 3rem;
}

.story-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.story-hero-gradient {
  background: linear-gradient(135deg, #6d28d9 0%, #a21caf 45%, #db2777 100%);
  min-height: clamp(180px, 28vw, 260px);
}

.story-hero-wave {
  display: block;
  height: 36px;
  margin-top: -1px;
  background: var(--story-cream);
  clip-path: ellipse(120% 100% at 50% 100%);
}

.story-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem 2.5rem;
}

.story-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.story-hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.story-hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.story-category-body {
  padding-top: 1.5rem;
}

.story-section {
  margin-bottom: 2.5rem;
}

.story-section-header {
  margin-bottom: 1rem;
}

.story-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}

.story-section-title svg {
  color: #f59e0b;
}

.story-featured-section {
  margin-bottom: 2rem;
}

.story-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(109, 40, 217, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(109, 40, 217, 0.16);
}

.story-featured-visual {
  min-height: 280px;
  background: #111827;
}

.story-featured-image,
.story-featured-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.story-featured-content {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-featured-kicker {
  color: var(--story-purple);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-featured-title {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  font-weight: 800;
}

.story-featured-excerpt {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-featured-cta {
  margin-top: 1rem;
  color: var(--story-purple);
  font-weight: 700;
}

.story-latest-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.story-latest-card,
.story-card {
  scroll-snap-align: start;
}

.story-latest-link,
.story-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
}

.story-latest-link:hover,
.story-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.15);
}

.story-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.story-card-cover,
.story-latest-cover {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(160deg, #312e81, #831843);
}

.story-card-image,
.story-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
}

.story-card-part-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--story-purple), var(--story-pink));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.story-card-overlay-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1rem 0.85rem 0.9rem;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 800;
}

.story-card-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.story-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.story-card-tag--story {
  background: #dbeafe;
  color: #1d4ed8;
}

.story-card-tag--episodes {
  background: #ede9fe;
  color: #6d28d9;
}

.story-card-views,
.story-latest-views {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.story-latest-body {
  padding: 0.85rem 0.9rem 1rem;
}

.story-latest-part {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 700;
}

.story-latest-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 800;
}

.story-latest-excerpt {
  margin: 0.45rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card--enter {
  animation: story-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--story-enter-delay, 0ms);
}

@keyframes story-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.story-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.story-standalone-grid {
  margin-top: 0.5rem;
}

/* Story post reader */
.story-post-page {
  --story-purple: #7c3aed;
  --story-pink: #db2777;
  background: #fdfbf4;
  padding-bottom: 3rem;
}

.story-post-hero {
  position: relative;
  min-height: clamp(240px, 42vw, 420px);
  overflow: hidden;
  background: #111827;
}

.story-post-hero-image,
.story-post-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 42vw, 420px);
  object-fit: cover;
}

.story-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.45) 100%);
}

.story-post-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem 1rem 2.25rem;
  color: #fff;
}

.story-post-part-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}

.story-post-series-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--story-purple), var(--story-pink));
  font-size: 0.75rem;
  font-weight: 700;
}

.story-post-hero-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  font-weight: 800;
}

.story-post-hero-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.story-post-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.story-episode-sidebar {
  position: sticky;
  top: calc(var(--header-height, 72px) + 1rem);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.story-episode-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #6d28d9, #db2777);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.story-episode-sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
}

.story-episode-sidebar-list {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.story-episode-nav-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.story-episode-nav-item:hover {
  background: #fafafa;
}

.story-episode-nav-item.is-active {
  background: #f5f3ff;
  border-inline-start: 3px solid var(--story-purple);
}

.story-episode-nav-part {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 3.2rem;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.story-episode-nav-title {
  grid-column: 2;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-episode-nav-views {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.story-episode-nav-reading {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--story-purple), var(--story-pink));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.story-post-article {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.story-post-summary {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1rem 1rem 0.85rem;
  border-radius: 12px;
  background: #faf5ff;
  border-inline-start: 4px solid var(--story-purple);
}

.story-post-summary p {
  margin: 0;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.story-post-content {
  line-height: 1.85;
}

.story-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
}

.story-post-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--story-purple), var(--story-pink));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.story-post-nav-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.story-post-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.32);
}

.story-post-nav-btn--prev span,
.story-post-nav-btn--next span {
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] .story-category-page,
html[data-theme="dark"] .story-post-page {
  --story-cream: var(--color-bg);
  background: var(--color-bg);
}

html[data-theme="dark"] .story-hero-wave {
  background: var(--color-bg);
}

html[data-theme="dark"] .story-featured-card,
html[data-theme="dark"] .story-latest-link,
html[data-theme="dark"] .story-card-link,
html[data-theme="dark"] .story-post-article,
html[data-theme="dark"] .story-episode-sidebar {
  background: var(--color-surface);
}

@media (max-width: 900px) {
  .story-featured-card {
    grid-template-columns: 1fr;
  }

  .story-post-layout {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .story-episode-sidebar {
    position: static;
    order: 2;
  }

  .story-post-article {
    order: 1;
  }

  .story-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .story-post-hero-content {
    padding-bottom: 1.5rem;
  }

  .story-post-article {
    padding: 1rem;
    border-radius: 14px;
  }

  .story-post-nav {
    flex-direction: column;
  }

  .story-post-nav-btn {
    justify-content: center;
  }
}

/* —— Modern OneSignal soft-prompt (pre-native permission) —— */
.push-prompt-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: start center;
  padding: max(4.5rem, 12vh) 1rem 1.5rem;
  pointer-events: none;
  --push-accent: var(--color-primary);
  --push-allow: #3b6fe0;
  --push-allow-hover: #4578e8;
}
.push-prompt-root--center {
  place-items: center;
  padding: 1.5rem 1rem;
}
.push-prompt-root--bottom {
  place-items: end center;
  padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
}
.push-prompt-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 10, 14, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
  pointer-events: auto;
  animation: push-prompt-fade 0.28s ease both;
}
.push-prompt-card {
  position: relative;
  z-index: 1;
  width: min(100%, 22.5rem);
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.15rem;
  background: linear-gradient(165deg, #2a2d33 0%, #1a1c20 55%, #141618 100%);
  color: #f3f4f6;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  animation: push-prompt-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.push-prompt-card--light {
  background: linear-gradient(165deg, #ffffff 0%, #f4f5f7 100%);
  color: #1a1a1a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.18);
}
.push-prompt-card--light .push-prompt-kicker,
.push-prompt-card--light .push-prompt-copy strong {
  color: #111;
}
.push-prompt-card--light .push-prompt-copy span {
  color: #666;
}
.push-prompt-card--light .push-prompt-close {
  color: rgba(0, 0, 0, 0.45);
}
.push-prompt-card--light .push-prompt-close:hover {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
}
.push-prompt-card--light .push-prompt-btn--ghost {
  background: #e8eaee;
  color: #1a1a1a;
}
.push-prompt-card--brand {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(50, 90, 255, 0.28) 0%, transparent 55%),
    linear-gradient(165deg, #2a2118 0%, #1a1410 55%, #120e0b 100%);
}
.push-prompt-close {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.push-prompt-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.push-prompt-kicker {
  margin: 0 0 1rem;
  padding-inline-end: 1.5rem;
  font-family: "MV Typewriter", "Waheed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}
.push-prompt-host {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.push-prompt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.push-prompt-bell {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(145deg, var(--push-accent) 0%, color-mix(in srgb, var(--push-accent) 75%, #000) 100%);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--push-accent) 40%, transparent);
}
.push-prompt-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.push-prompt-copy strong {
  font-family: "MV Typewriter", "Waheed", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.push-prompt-copy span {
  font-family: "MV Typewriter", "Waheed", sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}
.push-prompt-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
}
.push-prompt-btn {
  min-width: 5.25rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.push-prompt-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.push-prompt-btn--ghost {
  background: #3a414d;
  color: #fff;
}
.push-prompt-btn--ghost:hover:not(:disabled) {
  background: #4a5362;
}
.push-prompt-btn--solid {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--push-allow) 88%, #fff) 0%,
    var(--push-allow) 100%
  );
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--push-allow) 35%, transparent);
}
.push-prompt-btn--solid:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--push-allow) 92%, #fff) 0%,
    color-mix(in srgb, var(--push-allow) 90%, #000) 100%
  );
}
@keyframes push-prompt-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes push-prompt-pop {
  from {
    opacity: 0;
    transform: translateY(-0.75rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .push-prompt-root--top {
    place-items: end center;
    padding: 1rem;
  }
  .push-prompt-card {
    width: 100%;
    border-radius: 1.25rem 1.25rem 1rem 1rem;
  }
}

/* Theme switch keeps its pill and thumb */
.theme-switch-track,
.theme-switch-track::before,
.theme-switch-track::after,
.theme-switch:focus-visible .theme-switch-track {
  border-radius: 999px !important;
}

.theme-switch-thumb,
.theme-switch-thumb::before,
.theme-switch-thumb::after {
  border-radius: 50% !important;
}

.mobile-drawer-theme {
  border-radius: 12px !important;
}

/* —— Author profile —— */
.author-page {
  padding-top: 1.15rem;
  padding-bottom: 3rem;
  direction: rtl;
}

.author-profile {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  padding: 1.65rem 1.5rem 1.55rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 9%, #fff) 0%,
      #fff 42%,
      color-mix(in srgb, var(--color-primary) 5%, #f7f8ff) 100%
    );
}

.author-profile-glow {
  position: absolute;
  inset-inline-end: -4rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 28%, transparent) 0%, transparent 68%);
  pointer-events: none;
}

.author-profile-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.author-profile-avatar-wrap {
  flex-shrink: 0;
}

.author-profile-avatar {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-primary) 35%, var(--color-border)),
    0 10px 28px color-mix(in srgb, var(--color-primary) 16%, transparent);
}

.author-profile-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
}

.author-profile-copy {
  flex: 1 1 16rem;
  min-width: 0;
  text-align: right;
}

.author-profile-eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-dhivehi);
  font-size: 0.88rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.author-profile-name {
  margin: 0;
  font-family: var(--font-dhivehi);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
}

.author-profile-bio {
  margin: 0.65rem 0 0;
  max-width: 38rem;
  margin-inline-start: auto;
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.author-profile-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem 1.5rem;
  margin-top: 1.15rem;
}

.author-profile-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 5.5rem;
}

.author-profile-stat-value {
  font-family: var(--font-dhivehi);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.author-profile-stat--views .author-profile-stat-value {
  color: var(--color-primary-dark);
}

.author-profile-stat-label {
  font-family: var(--font-dhivehi);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 322px);
  gap: 1.5rem 1.75rem;
  align-items: start;
  direction: rtl;
}

.author-main {
  min-width: 0;
}

.author-posts-title {
  margin: 0 0 1.1rem;
  padding: 0 0 0.55rem;
  border-bottom: 4px solid var(--color-primary);
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: #364349;
  text-align: right;
}

html[data-theme="dark"] .author-profile {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-card-bg)) 0%,
      var(--color-card-bg) 48%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-card-bg)) 100%
    );
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}

html[data-theme="dark"] .author-profile-name,
html[data-theme="dark"] .author-posts-title {
  color: var(--color-text);
}

html[data-theme="dark"] .author-profile-avatar {
  border-color: var(--color-card-bg);
}

@media (max-width: 960px) {
  .author-layout {
    grid-template-columns: 1fr;
  }

  .author-sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  .author-profile {
    padding: 1.35rem 1.1rem 1.25rem;
  }

  .author-profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-profile-copy {
    text-align: center;
  }

  .author-profile-bio {
    margin-inline: auto;
  }

  .author-profile-stats {
    justify-content: center;
  }

  .author-profile-stat {
    align-items: center;
  }

  .author-profile-avatar {
    width: 96px;
    height: 96px;
  }
}

.otd-home {
  margin-top: 2.75rem;
  padding: 1.75rem 0 1.85rem;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 28%),
    var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.site-main:has(.otd-home) + .site-footer,
.site-main:has(.otd-home) + .site-newsletter {
  margin-top: 0;
}

.otd-home-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

.otd-layout {
  display: grid;
  grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  direction: ltr;
}

.otd-home[dir="rtl"] .otd-stage {
  direction: rtl;
}

.otd-rail-ad {
  order: -1;
  position: relative;
  min-width: 0;
  min-height: 100%;
  border-radius: var(--radius-panel) !important;
  overflow: hidden;
  background: #0a3f86;
  box-shadow:
    0 18px 40px rgba(26, 48, 140, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.otd-rail-ad-link {
  position: absolute;
  inset: 0;
}

.otd-rail-ad:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(26, 48, 140, 0.18);
}

.otd-rail-ad-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  border-radius: var(--radius-panel) !important;
}

.otd-stage {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13.5rem) minmax(0, 1fr);
  min-width: 0;
  align-items: stretch;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  box-shadow:
    0 18px 40px rgba(26, 48, 140, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  min-height: 22rem;
}

.otd-slab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: hidden;
  padding: 1.45rem 1.15rem 1.15rem;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(168deg, #4d6ae6 0%, #3050d1 48%, #1a2f8f 100%);
  color: #fff;
  border-radius: 0 !important;
}

.otd-slab::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(0);
  animation: otd-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.otd-slab-orb {
  position: absolute;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(2px);
  inset-inline-start: -2.8rem;
  top: -2.4rem;
  animation: otd-orb 9s ease-in-out infinite;
  pointer-events: none;
}

.otd-slab-orb--soft {
  width: 7rem;
  height: 7rem;
  background: rgba(255, 255, 255, 0.14);
  inset-inline-start: auto;
  inset-inline-end: -2rem;
  top: auto;
  bottom: 3.2rem;
  animation-duration: 11s;
  animation-delay: -3s;
}

.otd-slab-copy,
.otd-slab-foot,
.otd-more {
  position: relative;
  z-index: 1;
}

.otd-slab-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.otd-year {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
}

.otd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  animation: otd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.otd-kicker-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: otd-pulse 2.2s ease-out infinite;
}

.otd-daynum {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(4.4rem, 6vw, 5.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.82;
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.otd-month {
  margin: 0.55rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.otd-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-inline-start: auto;
  padding: 0.42rem 0.85rem 0.48rem;
  border: 0;
  border-radius: 999px !important;
  background: #fff;
  color: #3050d1;
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(16, 28, 84, 0.2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.otd-more svg {
  transition: transform 0.2s ease;
}

.otd-home[dir="ltr"] .otd-more svg {
  transform: scaleX(-1);
}

.otd-more:hover {
  background: #eef2ff;
  color: #1a2f8f;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(16, 28, 84, 0.24);
}

.otd-more:hover svg {
  transform: translateX(-3px);
}

.otd-home[dir="ltr"] .otd-more:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

.otd-ledger {
  display: flex;
  flex-direction: column;
  min-width: 12rem;
}

.otd-entry {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) 6.6rem;
  gap: 0.85rem;
  align-items: center;
  flex: 1;
  min-height: 4.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  color: inherit;
  text-decoration: none;
  animation: otd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + var(--otd-i, 0) * 0.07s);
  transition: background 0.22s ease;
}

.otd-entry::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, #3050d1, #f4511e);
  transform: scaleY(0.35);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.otd-entry:last-child {
  border-bottom: 0;
}

.otd-entry:hover {
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-bg));
}

.otd-entry:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.otd-entry-year {
  justify-self: start;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  transition: background 0.22s ease, color 0.22s ease;
}

.otd-entry:hover .otd-entry-year {
  background: var(--color-primary);
  color: #fff;
}

.otd-entry-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-entry:hover .otd-entry-title {
  color: var(--color-primary);
}

.otd-entry-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-image-bg);
}

.otd-entry-photo img,
.otd-entry-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.otd-entry:hover .otd-entry-photo img {
  transform: scale(1.08);
}

@keyframes otd-rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes otd-orb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, 14px, 0) scale(1.08); }
}

@keyframes otd-sheen {
  0%, 55% { transform: translateX(-30%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

@keyframes otd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .otd-entry,
  .otd-kicker,
  .otd-daynum,
  .otd-month,
  .otd-slab-orb,
  .otd-kicker-dot,
  .otd-slab::after,
  .otd-page-orb,
  .otd-page-kicker,
  .otd-page-kicker-dot,
  .otd-page-hero h1,
  .otd-page-hero::after,
  .otd-page-hero-date,
  .otd-page-year,
  .otd-page-card {
    animation: none;
  }

  .otd-rail-ad {
    transition: none;
  }

  .otd-rail-ad:hover {
    transform: none;
  }
}

@media (max-width: 800px) {
  .otd-layout {
    grid-template-columns: 1fr;
  }

  .otd-rail-ad {
    height: 18rem;
    order: 2;
  }

  .otd-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .otd-slab {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
  }

  .otd-slab-orb,
  .otd-slab::after {
    content: none;
    display: none;
  }

  .otd-slab-foot {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    margin-inline-start: auto;
  }

  .otd-daynum {
    margin-top: 0.15rem;
    font-size: 2.7rem;
  }

  .otd-month {
    margin-top: 0.1rem;
  }

  .otd-more {
    margin-inline-start: auto;
  }

  .otd-entry {
    grid-template-columns: 3.6rem minmax(0, 1fr) 4.6rem;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    min-height: 4.2rem;
  }
}

.otd-page {
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, #3050d1 10%, transparent), transparent 28%),
    var(--color-bg);
}

.otd-page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(168deg, #4d6ae6 0%, #3050d1 48%, #1a2f8f 100%);
}

.otd-page-hero::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: otd-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.otd-page-orb {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
  inset-inline-start: -4rem;
  top: -4.5rem;
  animation: otd-orb 9s ease-in-out infinite;
  pointer-events: none;
}

.otd-page-orb--soft {
  width: 8rem;
  height: 8rem;
  inset-inline-start: auto;
  inset-inline-end: 8%;
  top: auto;
  bottom: -2.4rem;
  animation-duration: 11s;
  animation-delay: -3s;
}

.otd-page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.7fr);
  gap: 1.5rem;
  align-items: end;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4rem var(--site-gutter) 2rem;
}

.otd-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  animation: otd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.otd-page-kicker-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: otd-pulse 2.2s ease-out infinite;
}

.otd-page-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.otd-page-lead {
  max-width: 34rem;
  margin: 0.7rem 0 0;
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.otd-page-hero-date {
  justify-self: end;
  text-align: end;
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.otd-page-day {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4.8rem, 8vw, 6.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.otd-page-month {
  margin: 0.45rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
}

.otd-page-count {
  display: inline-flex;
  margin: 0.85rem 0 0;
  padding: 0.38rem 0.8rem 0.42rem;
  border-radius: 999px !important;
  background: #fff;
  color: #3050d1;
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(16, 28, 84, 0.18);
}

.otd-page-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.35rem var(--site-gutter) 2.6rem;
}

.otd-page-year {
  --otd-swatch: #3050d1;
  padding: 1.05rem 1rem 1.15rem;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, #3050d1 18%, var(--color-border));
  border-radius: var(--radius-panel) !important;
  box-shadow: 0 14px 32px rgba(26, 48, 140, 0.06);
  animation: otd-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.otd-page-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.otd-page-year-head p {
  margin: 0;
  font-family: var(--font-dhivehi);
  color: var(--color-muted);
}

.otd-page-year-mark {
  margin: 0;
  padding: 0.18rem 0.7rem 0.22rem;
  border-radius: 999px !important;
  background: #3050d1;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(48, 80, 209, 0.28);
}

.otd-page-mosaic {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.otd-page-card {
  position: relative;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 6.6rem;
  overflow: hidden;
  background: var(--color-card-bg);
  border: 1px solid color-mix(in srgb, #3050d1 16%, var(--color-border));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(26, 48, 140, 0.05);
  animation: otd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--otd-i, 0) * 0.05s);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.otd-page-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7d93f0, #3050d1);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.otd-page-card:hover {
  transform: translateY(-3px);
  border-color: #3050d1;
  box-shadow: 0 16px 32px rgba(26, 48, 140, 0.12);
}

.otd-page-card:hover::before {
  opacity: 1;
}

.otd-page-card.is-lead {
  grid-template-columns: minmax(13.5rem, 0.92fr) minmax(0, 1.15fr);
  min-height: 15.5rem;
}

.otd-page-card-photo {
  display: block;
  min-height: 100%;
  background: var(--color-image-bg);
  overflow: hidden;
}

.otd-page-card.is-lead .otd-page-card-photo {
  min-height: 15.5rem;
}

.otd-page-card-photo img,
.otd-page-card-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.otd-page-card-photo .placeholder-image {
  background: linear-gradient(145deg, var(--otd-swatch), color-mix(in srgb, var(--otd-swatch) 35%, #10141c));
}

.otd-page-card:hover .otd-page-card-photo img {
  transform: scale(1.05);
}

.otd-page-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.75rem 2rem 0.8rem 0.95rem;
}

.otd-page[dir="rtl"] .otd-page-card-body {
  padding: 0.75rem 0.95rem 0.8rem 2rem;
}

.otd-page-card.is-lead .otd-page-card-body {
  gap: 0.65rem;
  padding: 1.2rem 1.25rem;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
}

.otd-page[dir="rtl"] .otd-page-card.is-lead .otd-page-card-body {
  padding: 1.2rem 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
}

.otd-page-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.otd-page-card-cat {
  padding: 0.12rem 0.5rem 0.16rem;
  border-radius: 999px !important;
  background: color-mix(in srgb, #3050d1 12%, transparent);
  font-family: var(--font-dhivehi);
  font-size: 0.86rem;
  line-height: 1.3;
  color: #3050d1;
}

.otd-page-card.is-lead .otd-page-card-cat {
  background: #3050d1;
  color: #fff;
}

.otd-page-card-time {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, #3050d1 70%, var(--color-muted));
}

.otd-page-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-page-card.is-lead .otd-page-card-title {
  font-size: clamp(1.28rem, 2.1vw, 1.8rem);
  line-height: 1.45;
  -webkit-line-clamp: 4;
}

.otd-page-card:not(.is-lead) .otd-page-card-body::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 0.9rem;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid #3050d1;
  border-right: 2px solid #3050d1;
  transform: translateY(-50%) rotate(45deg);
}

.otd-page[dir="rtl"] .otd-page-card:not(.is-lead) .otd-page-card-body::after {
  transform: translateY(-50%) rotate(-135deg);
}

.otd-page-empty {
  margin: 1rem 0;
  font-family: var(--font-dhivehi);
  color: var(--color-muted);
}

.otd-page .pagination--archive {
  margin-top: 0.4rem;
}

@media (max-width: 760px) {
  .otd-page-hero-inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-top: 1.7rem;
  }

  .otd-page-hero-date {
    justify-self: start;
    text-align: start;
  }

  .otd-page-day {
    font-size: 4.2rem;
  }

  .otd-page-card {
    grid-template-columns: 6.2rem minmax(0, 1fr);
    min-height: 5.8rem;
  }

  .otd-page-card.is-lead {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .otd-page-card.is-lead .otd-page-card-photo {
    min-height: 12rem;
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otd-page-orb,
  .otd-page-kicker,
  .otd-page-kicker-dot,
  .otd-page-hero h1,
  .otd-page-hero::after,
  .otd-page-hero-date,
  .otd-page-year,
  .otd-page-card {
    animation: none;
  }
}

.hm-fun {
  margin: 0.4rem 0 1.35rem;
  padding: 1.2rem 0.95rem 1.3rem;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 81, 30, 0.55), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.55), transparent 42%),
    linear-gradient(155deg, #1b0f33 0%, #3a1468 52%, #5a1d78 100%);
}

.hm-fun-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.hm-fun-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb089;
}

.hm-fun-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
}

.hm-fun-head h2 a {
  color: #fff;
  text-decoration: none;
}

.hm-fun-more {
  flex-shrink: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}

.hm-fun-more:hover {
  background: #f4511e;
  border-color: #f4511e;
}

.hm-fun-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 0.7rem;
}

.hm-fun-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hm-fun-card.is-feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 24rem;
  border: 0;
}

.hm-fun-photo {
  display: block;
  overflow: hidden;
  background: #2a1848;
}

.hm-fun-card:not(.is-feature) .hm-fun-photo {
  aspect-ratio: 16 / 10;
}

.hm-fun-card.is-feature .hm-fun-photo {
  position: absolute;
  inset: 0;
}

.hm-fun-photo img,
.hm-fun-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-fun-photo .placeholder-image {
  background: linear-gradient(145deg, #f4511e, #6a1b9a);
}

.hm-fun-card:hover .hm-fun-photo img {
  transform: scale(1.05);
}

.hm-fun-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.hm-fun-card.is-feature .hm-fun-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 2.6rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(16, 6, 28, 0.92) 62%);
}

.hm-fun-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-fun-card.is-feature .hm-fun-title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  -webkit-line-clamp: 3;
}

.hm-fun-body time {
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.hm-fun-card.is-feature .hm-fun-body time {
  color: #ffb089;
}

@media (max-width: 860px) {
  .hm-fun-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hm-fun-card.is-feature {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 16rem;
  }
}

@media (max-width: 560px) {
  .hm-fun {
    margin-inline: 0;
    padding-inline: 0.85rem;
  }

  .hm-fun-head {
    align-items: flex-start;
  }

  .hm-fun-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
}

.hm-tech {
  margin: 0.4rem 0 1.35rem;
  padding: 1.15rem 0.95rem 1.25rem;
  color: #e7f7ff;
  background-color: #07131f;
  background-image:
    linear-gradient(rgba(46, 230, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(50, 90, 255, 0.42), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(46, 230, 255, 0.16), transparent 36%),
    linear-gradient(165deg, #07131f 0%, #0b2140 58%, #071018 100%);
  background-size: 26px 26px, 26px 26px, auto, auto, auto;
}

.hm-tech-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.hm-tech-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2ee6ff;
}

.hm-tech-dot {
  width: 0.45rem;
  height: 0.45rem;
  background: #2ee6ff;
  box-shadow: 0 0 0 4px rgba(46, 230, 255, 0.18);
}

.hm-tech-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
}

.hm-tech-head h2 a {
  color: #fff;
  text-decoration: none;
}

.hm-tech-more {
  flex-shrink: 0;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(46, 230, 255, 0.55);
  color: #2ee6ff;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
}

.hm-tech-more:hover {
  background: #2ee6ff;
  color: #07131f;
}

.hm-tech-lead {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.2fr);
  min-height: 17rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(5, 14, 26, 0.72);
  border: 1px solid rgba(46, 230, 255, 0.28);
}

.hm-tech-lead-photo {
  display: block;
  min-height: 15rem;
  overflow: hidden;
  background: #0c2340;
}

.hm-tech-lead-photo img,
.hm-tech-lead-photo .placeholder-image,
.hm-tech-card-photo img,
.hm-tech-card-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hm-tech-lead-photo .placeholder-image,
.hm-tech-card-photo .placeholder-image {
  background: linear-gradient(145deg, #3050d1, #07304a);
}

.hm-tech-lead:hover .hm-tech-lead-photo img,
.hm-tech-card:hover .hm-tech-card-photo img {
  transform: scale(1.05);
}

.hm-tech-lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem;
  border-inline-end: 3px solid #2ee6ff;
}

.hm-tech-index {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #2ee6ff;
}

.hm-tech-lead-title,
.hm-tech-card-title {
  font-family: var(--font-heading);
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-tech-lead-title {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
  -webkit-line-clamp: 4;
}

.hm-tech-lead-copy time,
.hm-tech-card-body time {
  font-family: var(--font-dhivehi);
  font-size: 0.82rem;
  color: rgba(231, 247, 255, 0.7);
}

.hm-tech-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.hm-tech-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(7, 20, 36, 0.82);
  border: 1px solid rgba(50, 90, 255, 0.38);
}

.hm-tech-card:hover {
  border-color: #2ee6ff;
}

.hm-tech-card-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c2340;
}

.hm-tech-card-photo .hm-tech-index {
  position: absolute;
  inset-inline-start: 0.4rem;
  top: 0.4rem;
  padding: 0.12rem 0.35rem;
  background: rgba(7, 19, 31, 0.82);
  font-size: 0.82rem;
}

.hm-tech-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.65rem 0.7rem 0.75rem;
}

.hm-tech-card-title {
  font-size: 0.98rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .hm-tech-lead {
    grid-template-columns: 1fr;
  }

  .hm-tech-lead-copy {
    border-inline-end: 0;
    border-top: 3px solid #2ee6ff;
  }

  .hm-tech-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hm-tech-head {
    align-items: flex-start;
  }
}

.hm-desk {
  margin: 0;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 28px !important;
}

.hm-report-stage.hm-desk {
  background: #f6f7fb;
  box-shadow: 0 12px 32px rgba(24, 32, 56, 0.05);
}

.hm-desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hm-desk-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.hm-desk-mark::before {
  content: "";
  width: 5px;
  height: 1.15em;
  flex-shrink: 0;
  border-radius: 999px !important;
  background: currentColor;
}

.hm-desk-mark a,
.hm-desk-more {
  color: inherit;
  text-decoration: none;
}

.hm-report-stage .hm-desk-mark {
  color: #e23d3d;
}

.hm-desk-more {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #6b7280;
}

.hm-desk-more:hover {
  color: inherit;
}

.hm-desk-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hm-desk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px !important;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(24, 32, 56, 0.05);
}

.hm-desk-photo {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7ebf2;
}

.hm-desk-photo img,
.hm-desk-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hm-desk-card:hover .hm-desk-photo img {
  transform: scale(1.04);
}

.hm-desk-copy {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.72rem 0.8rem 0.85rem;
}

.hm-desk-copy time {
  font-family: var(--font-dhivehi);
  font-size: 0.74rem;
  line-height: 1.3;
  color: #e23d3d;
}

.hm-desk-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  line-height: 1.6;
  color: #1c2433;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-ad-report-banner.hm-ad-slot {
  margin: 0.85rem 0 0;
  border: 0;
  background: transparent;
}

.hm-ad-report-banner .hm-ad-label {
  padding: 0 0 0.35rem;
  background: transparent;
  border: 0;
  color: #9aa0ab;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  direction: ltr;
}

.hm-ad-report-banner .hm-ad-body {
  padding: 0;
}

.hm-ad-report-banner .hm-ad-image,
.hm-ad-report-banner .hm-ad-link {
  width: 100%;
  border-radius: 8px !important;
}

/* Soft corners across the public site */
:root {
  --radius-card: 18px;
  --radius-panel: 26px;
  --radius-control: 12px;
}

.hero-featured-lead,
.hero-featured-text,
.hero-bottom-card,
.post-card,
.post-strip-card,
.home-popular-posts-card,
.hm-cat-grid-card,
.hm-cat-tabs-card,
.hm-cat-spotlight-item,
.hm-cat-featured-col-item,
.hm-world-card,
.hm-fun-card,
.hm-tech-card,
.hm-tech-lead,
.hm-report-slide,
.category-archive-card,
.english-card,
.gallery-page-card,
.gallery-album-photo,
.home-gallery-grid-item,
.home-reels-card,
.home-videos-slide,
.otd-page-card,
.tags-index-card,
.tags-index-stat-card,
.author-profile {
  border-radius: var(--radius-card) !important;
  overflow: hidden;
}

.category-archive-card-media,
.article-figure-media,
.otd-entry-photo,
.otd-page-card-photo,
.hm-cat-featured-col-item-thumb,
.hm-cat-spotlight-item-thumb,
.english-card-image,
.gallery-album-photo,
.gallery-album-photo-btn,
.home-gallery-grid-item,
.home-reels-card-media {
  border-radius: var(--radius-card) !important;
  overflow: hidden;
}

.otd-page-card-photo {
  border-radius: 0 !important;
}

.hm-fun,
.hm-tech,
.hm-report-stage,
.otd-stage,
.otd-page-hero,
.home-videos-panel,
.author-profile,
.home-videos-modal-panel {
  border-radius: var(--radius-panel) !important;
  overflow: hidden;
}

.otd-slab,
.hm-ad-slot,
.hm-ad-image,
.hm-ad-link,
.search-form,
.footer-contact-brand,
.footer-contact-chip,
.footer-contact-address,
.footer-contact-note,
.pagination a,
.pagination span,
.breaking-news-badge {
  border-radius: var(--radius-control) !important;
}

.site-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.site-main textarea,
.site-main select,
.site-header input:not([type="checkbox"]):not([type="radio"]),
.search-form-input,
.search-form-submit {
  border-radius: var(--radius-control) !important;
}

.article-author-avatar,
.article-author-avatar-link,
.author-profile-avatar,
.footer-contact-icon,
.home-videos-play,
.home-videos-dot,
.hm-report-arrow,
.theme-switch-thumb {
  border-radius: 50% !important;
}

.mobile-drawer {
  border-radius: 28px 0 0 28px !important;
}

.mobile-drawer-otd,
.mobile-drawer-theme {
  border-radius: var(--radius-control) !important;
}

.hm-colboard {
  margin: 0;
  padding: 1.05rem 1rem 0.7rem;
  background: #f7f8fb;
  color: #1c1c1c;
  border-radius: 28px !important;
  box-shadow: 0 12px 32px rgba(24, 32, 56, 0.05);
}

.hm-colboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hm-colboard-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.hm-colboard-title::before {
  content: "";
  width: 3px;
  height: 1.35rem;
  background: #e23d3d;
  border-radius: 2px !important;
}

.hm-colboard-title a,
.hm-colboard-name {
  color: #1a1a1a;
  text-decoration: none;
}

.hm-colboard-more {
  color: #8b919c;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
}

.hm-colboard-more:hover,
.hm-colboard-name:hover,
.hm-colboard-title a:hover {
  color: #e23d3d;
}

.hm-colboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hm-colboard-card {
  min-width: 0;
  padding: 0.85rem 0.85rem 0.35rem;
  background: #fff;
  border-radius: 18px !important;
  box-shadow: none;
}

.hm-colboard-writer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.hm-colboard-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.35;
}

.hm-colboard-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: cover;
  border-radius: 50% !important;
  background: #e7ebf3;
}

.hm-colboard-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3050d1;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.hm-colboard-list {
  display: flex;
  flex-direction: column;
}

.hm-colboard-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.62rem 0.1rem;
  background: transparent;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
  border-radius: 0 !important;
}

.hm-colboard-item:last-child {
  border-bottom: 0;
}

.hm-colboard-item:hover .hm-colboard-item-title {
  color: #e23d3d;
}

.hm-colboard-item-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  line-height: 1.6;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-colboard-time {
  color: #9aa1ad;
  font-family: var(--font-dhivehi);
  font-size: 0.74rem;
}

html[data-theme="dark"] .hm-colboard {
  background: #171b24;
  color: #f4f1ec;
  box-shadow: none;
}

html[data-theme="dark"] .hm-colboard-card {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .hm-colboard-title a,
html[data-theme="dark"] .hm-colboard-name,
html[data-theme="dark"] .hm-colboard-item-title {
  color: #f4f1ec;
}

html[data-theme="dark"] .hm-colboard-writer,
html[data-theme="dark"] .hm-colboard-item {
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hm-colboard-grid {
    grid-template-columns: 1fr;
  }
}

.related-post-card-image,
.article-content img,
.article-content video,
.article-content iframe,
.search-result-card-media,
.gallery-page-card-image,
.gallery-album-photo,
.gallery-album-photo img,
.home-gallery-grid-item {
  border-radius: var(--radius-card) !important;
  overflow: hidden;
}

.article-comments,
.article-comments-form,
.comment-card,
.article-comments-empty {
  border-radius: var(--radius-card) !important;
}

.article-comments-form input:not(.comment-terms-input),
.article-comments-form textarea,
.article-comments-form button[type="submit"],
.article-comments-submit,
.article-comments-cancel,
.site-main button:not(.theme-switch):not(.post-reaction-item):not(.hm-report-arrow):not(.home-videos-play):not(.home-videos-modal-close):not(.article-share-icon):not(.mobile-drawer-close):not(.article-reader-toolbar__font-btn) {
  border-radius: var(--radius-control) !important;
}

.section-title::before,
.hero-sidebar-title-bar,
.post-strip-title-bar,
.home-popular-posts-title-bar,
.home-reels-title-bar,
.article-latest-title-bar,
.related-posts-title-bar,
.home-videos-title-bar,
.home-gallery-title-bar,
.hm-colboard-title::before {
  width: 5px !important;
  border-radius: 999px !important;
}

.hm-sport.hm-desk {
  background: linear-gradient(180deg, #fffdf8 0%, #fff3e4 100%);
  box-shadow: 0 12px 32px rgba(120, 72, 20, 0.05);
}

.hm-sport .hm-desk-mark,
.hm-sport .hm-desk-copy time,
.hm-sport .hm-desk-more:hover,
.hm-sport .hm-desk-card:hover .hm-desk-title {
  color: #c2410c;
}

.hm-sport .hm-desk-title {
  color: #2a2118;
}

.hm-fun.hm-desk {
  color: inherit;
  margin: 0;
  background: linear-gradient(180deg, #fbf8ff 0%, #f4ebfb 100%);
  box-shadow: 0 12px 32px rgba(88, 28, 135, 0.05);
}

.hm-fun .hm-desk-mark,
.hm-fun .hm-desk-copy time,
.hm-fun .hm-desk-more:hover,
.hm-fun .hm-desk-card:hover .hm-desk-title {
  color: #7c3aed;
}

.hm-fun .hm-desk-title {
  color: #241433;
}

@media (max-width: 800px) {
  .hm-desk-row {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .hm-report-stage.hm-desk {
  background: #171b24;
  box-shadow: none;
}

html[data-theme="dark"] .hm-sport.hm-desk {
  background: linear-gradient(180deg, #241c16 0%, #1a1512 100%);
  box-shadow: none;
}

html[data-theme="dark"] .hm-fun.hm-desk {
  color: inherit;
  background: linear-gradient(180deg, #22182c 0%, #161018 100%);
  box-shadow: none;
}

html[data-theme="dark"] .hm-desk-card {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

html[data-theme="dark"] .hm-desk-title,
html[data-theme="dark"] .hm-sport .hm-desk-title,
html[data-theme="dark"] .hm-fun .hm-desk-title {
  color: #f6f1fb;
}

html[data-theme="dark"] .hm-desk-more {
  color: #b7b1a8;
}


.hm-pair {
  margin: 0;
  padding: 1.05rem 1rem 1.15rem;
  border-radius: 28px !important;
}

.hm-life {
  background: linear-gradient(180deg, #fffdfb 0%, #fff3f1 100%);
  box-shadow: 0 12px 32px rgba(140, 40, 50, 0.05);
}

.hm-deen {
  background: linear-gradient(180deg, #f8fefb 0%, #e7f6f0 100%);
  box-shadow: 0 12px 32px rgba(16, 90, 70, 0.05);
}

.hm-pair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0.15rem 0.9rem;
}

.hm-pair-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.3;
}

.hm-pair-mark::before {
  content: "";
  width: 5px;
  height: 1.05em;
  flex-shrink: 0;
  border-radius: 999px !important;
  background: currentColor;
}

.hm-pair-mark a {
  color: inherit;
  text-decoration: none;
}

.hm-life .hm-pair-mark {
  color: #e11d48;
}

.hm-deen .hm-pair-mark {
  color: #0f766e;
}

.hm-pair-more {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  line-height: 1;
  color: #8d837c;
  text-decoration: none;
}

.hm-life .hm-pair-more:hover {
  color: #e11d48;
}

.hm-deen .hm-pair-more:hover {
  color: #0f766e;
}

.hm-pair-body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.76fr);
  gap: 0.9rem;
  align-items: stretch;
}

.hm-pair-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hm-pair-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px !important;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(30, 20, 20, 0.05);
}

.hm-pair-photo {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3eee9;
}

.hm-pair-photo img,
.hm-pair-photo .placeholder-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hm-pair-card:hover .hm-pair-photo img {
  transform: scale(1.04);
}

.hm-pair-copy,
.hm-pair-item {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.hm-pair-copy {
  padding: 0.68rem 0.75rem 0.8rem;
}

.hm-pair-copy time,
.hm-pair-item time {
  font-family: var(--font-dhivehi);
  font-size: 0.74rem;
  line-height: 1.3;
}

.hm-life .hm-pair-copy time,
.hm-life .hm-pair-item time {
  color: #e11d48;
}

.hm-deen .hm-pair-copy time,
.hm-deen .hm-pair-item time {
  color: #0f766e;
}

.hm-pair-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  line-height: 1.6;
  color: #241c1c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hm-pair-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-inline-start: 0.85rem;
  border-inline-start: 1px solid rgba(36, 28, 28, 0.08);
}

.hm-pair-item {
  padding: 0.7rem 0.1rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 28, 28, 0.07);
}

.hm-pair-item:last-child {
  border-bottom: 0;
}

.hm-life .hm-pair-item:hover .hm-pair-title {
  color: #e11d48;
}

.hm-deen .hm-pair-item:hover .hm-pair-title {
  color: #0f766e;
}

html[data-theme="dark"] .hm-life {
  background: linear-gradient(180deg, #2a1c1e 0%, #1c1416 100%);
  box-shadow: none;
}

html[data-theme="dark"] .hm-deen {
  background: linear-gradient(180deg, #152420 0%, #101816 100%);
  box-shadow: none;
}

/* Religion — full-width photo banner, content centered on the category width. */
.deen-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: 420px;
  box-sizing: border-box;
  background: #d7dbe3;
  color: #fff;
}

.deen-stage-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.deen-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.04) brightness(1.08);
}

.deen-stage::before,
.deen-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.deen-stage::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 32%, rgba(48, 80, 209, 0.18) 62%, rgba(36, 62, 174, 0.78) 100%);
}

.deen-stage::after {
  background: linear-gradient(to left, rgba(16, 28, 72, 0.38) 0%, rgba(16, 28, 72, 0.08) 46%, rgba(16, 28, 72, 0) 72%);
}

.deen-stage[dir="ltr"]::after {
  background: linear-gradient(to right, rgba(16, 28, 72, 0.38) 0%, rgba(16, 28, 72, 0.08) 46%, rgba(16, 28, 72, 0) 72%);
}

.deen-stage-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1108px, calc(100% - 32px));
  min-height: 420px;
  margin: 0 auto;
  padding: 68px 0 32px;
  box-sizing: border-box;
}

.deen-stage-logo {
  position: absolute;
  top: 16px;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.deen-stage-logo img {
  display: block;
  width: 92px;
  height: auto;
  filter:
    drop-shadow(0 0 0.4px #3050d1)
    drop-shadow(0.7px 0 0 #3050d1)
    drop-shadow(-0.7px 0 0 #3050d1)
    drop-shadow(0 0.7px 0 #3050d1)
    drop-shadow(0 -0.7px 0 #3050d1)
    drop-shadow(0 0 6px rgba(48, 80, 209, 0.7))
    drop-shadow(0 0 16px rgba(48, 80, 209, 0.32));
}

.deen-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
  width: 100%;
}

.deen-lead {
  display: block;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.deen-lead h2,
.deen-card strong {
  margin: 0;
  font-family: "Waheed", "MV Waheed", Faruma, sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

.deen-lead h2 {
  font-size: clamp(32px, 2.8vw, 44px);
  line-height: 1.65;
  color: #fff;
  text-shadow: 0 2px 16px rgba(12, 22, 70, 0.4);
}

.deen-lead p {
  margin: 14px 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
}

.deen-lead:hover h2 {
  color: #fff;
}

.deen-cards {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.deen-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  background: rgba(32, 34, 40, 0.78);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.deen-card:hover {
  background: rgba(22, 24, 30, 0.88);
}

.deen-card-photo {
  flex: 0 0 84px;
  width: 84px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: #3a3d44;
}

.deen-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deen-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-inline: 2px 4px;
}

.deen-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deen-card:hover strong {
  color: #fff;
}

.deen-card .thaana-datetime {
  color: rgba(255, 255, 255, 0.72);
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

html[lang="en"] .deen-lead h2,
html[lang="en"] .deen-card strong {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.28;
}

html[lang="en"] .deen-lead h2 {
  font-size: clamp(28px, 2.4vw, 40px);
}

html[lang="en"] .deen-lead p,
html[lang="en"] .deen-card .thaana-datetime {
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

html[data-theme="dark"] .deen-stage {
  background: #1a1c22;
}

html[data-theme="dark"] .deen-card {
  background: rgba(12, 14, 18, 0.82);
}

@media (max-width: 860px) {
  .deen-stage::before {
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.28) 0%, rgba(48, 80, 209, 0.22) 55%, rgba(36, 62, 174, 0.72) 100%);
  }

  .deen-stage::after,
  .deen-stage[dir="ltr"]::after {
    background: none;
  }

  .deen-stage,
  .deen-stage-inner {
    min-height: 0;
  }

  .deen-stage-inner {
    display: block;
    width: min(1108px, calc(100% - 24px));
    padding: 62px 0 22px;
  }

  .deen-stage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deen-lead h2 {
    font-size: 28px;
  }

  .deen-lead p {
    font-size: 15.5px;
  }
}

html[data-theme="dark"] .hm-pair-card {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

html[data-theme="dark"] .hm-pair-title {
  color: #f6f1ec;
}

html[data-theme="dark"] .hm-pair-more {
  color: #c4b8b0;
}

html[data-theme="dark"] .hm-pair-list,
html[data-theme="dark"] .hm-pair-item {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hm-pair-photo {
  background: #2a2422;
}

@media (max-width: 800px) {
  .hm-pair-body,
  .hm-pair-photos {
    grid-template-columns: 1fr;
  }

  .hm-pair-list {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid rgba(36, 28, 28, 0.08);
    padding-top: 0.35rem;
  }
}

.hm-tech {
  color: inherit;
  background-color: transparent;
  background-image: none;
  background: linear-gradient(180deg, #f7faff 0%, #e7f0fb 100%);
  box-shadow: 0 12px 32px rgba(24, 58, 110, 0.06);
}

.hm-tech .hm-pair-mark {
  color: #2563eb;
}

.hm-tech .hm-pair-more:hover,
.hm-tech .hm-pair-copy time,
.hm-tech .hm-pair-item time,
.hm-tech .hm-pair-item:hover .hm-pair-title {
  color: #2563eb;
}

.hm-tech .hm-pair-title {
  color: #172033;
}

html[data-theme="dark"] .hm-tech {
  color: inherit;
  background-image: none;
  background: linear-gradient(180deg, #152033 0%, #101820 100%);
  box-shadow: none;
}

html[data-theme="dark"] .hm-tech .hm-pair-title {
  color: #f4f7fb;
}

.category-archive-title,
.author-posts-title,
.hm-otd-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: 1.7;
}

.category-archive-title::before,
.author-posts-title::before,
.hm-otd-title::before {
  content: "";
  width: 5px;
  height: 1.15em;
  flex-shrink: 0;
  border-radius: 999px !important;
  background: var(--color-primary);
}

.hm-cat-sections {
  gap: 2.25rem;
}

.hm-cat-sections > .hm-ad-after-columns {
  padding-top: 0;
  padding-bottom: 0;
}

.hm-cat-sections > .hm-report-stage,
.hm-cat-sections > .hm-sport,
.hm-cat-sections > .hm-colboard,
.hm-cat-sections > .hm-fun,
.hm-cat-sections > .hm-life,
.hm-cat-sections > .hm-deen,
.hm-cat-sections > .deen-stage,
.hm-cat-sections > .hm-tech,
.hm-cat-sections > .hm-cat-section,
.hm-cat-sections > .hm-cat-featured-col {
  margin-top: 0;
  margin-bottom: 0;
}

.category-archive-card-media {
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(20, 24, 40, 0.06);
}

.category-archive-card-title,
.author-posts-title {
  line-height: 1.65;
}

.author-mark--paint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  container-type: size;
  background: linear-gradient(145deg, var(--mark-a, #3050d1), var(--mark-b, #7c5cff));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.author-mark--paint.is-glow {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.85) 0%, transparent 26%),
    linear-gradient(160deg, var(--mark-a), var(--mark-b));
}

.author-mark--paint.is-split {
  background: linear-gradient(135deg, var(--mark-a) 52%, var(--mark-b) 52%);
}

.author-mark--paint.is-mesh {
  background:
    radial-gradient(circle at 18% 82%, var(--mark-c), transparent 46%),
    radial-gradient(circle at 86% 14%, var(--mark-b), transparent 42%),
    var(--mark-a);
}

.author-mark--paint.is-arc::after {
  content: "";
  position: absolute;
  width: 135%;
  height: 135%;
  border: 0.14em solid rgba(255, 255, 255, 0.38);
  border-radius: 50% !important;
  right: -42%;
  bottom: -58%;
}

.author-mark--paint.is-stripe {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.16) 5px, rgba(255, 255, 255, 0.16) 7px),
    linear-gradient(160deg, var(--mark-a), var(--mark-b));
}

.author-mark--paint.is-bloom {
  background:
    radial-gradient(circle at 72% 28%, var(--mark-c), transparent 44%),
    linear-gradient(200deg, var(--mark-a), var(--mark-b));
}

.author-mark-letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 46cqh;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(8, 16, 48, 0.28);
}

/* Skip layout work for sections that are still below the screen. */
.hm-cat-sections > :nth-child(n + 2),
.otd-home,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* Story comments: card, reply, and like/dislike pill. */
.article-comments {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible;
}

.article-comments-title {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.article-comments-list {
  gap: 0.85rem;
}

.cmt {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px !important;
  padding: 1.15rem 1.25rem 1rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cmt-head,
.cmt-foot,
.cmt-who,
.cmt-compose-name,
.cmt-compose-actions {
  display: flex;
  align-items: center;
}

.cmt-head,
.cmt-foot,
.cmt-compose-actions {
  justify-content: space-between;
  gap: 0.85rem;
}

.cmt-head {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-divider-line, #eef1f5);
}

.cmt-who,
.cmt-compose-name {
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.cmt-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50% !important;
  background: #f3f0fb;
  color: #3050d1;
}

.cmt-mark svg {
  display: block;
}

.cmt-name {
  color: #3050d1;
  font-family: var(--font-dhivehi);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

.cmt-time {
  flex: 0 0 auto;
  color: #8b93a7;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  direction: ltr;
  text-align: left;
  white-space: nowrap;
}

.cmt-body {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 1.02rem;
  line-height: 1.9;
}

.cmt-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 10px !important;
  background: #f4f6f8;
  color: #6b7280;
  direction: ltr;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.cmt-votes-bar {
  width: 1px;
  height: 16px;
  background: #d5dbe3;
}

.article-comments .cmt-vote,
.article-comments .cmt-reply,
.article-comments .cmt-reply-cancel {
  border-radius: 10px !important;
}

.article-comments .cmt-vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
  cursor: pointer;
}

.article-comments .cmt-vote.is-active {
  color: #3050d1;
}

.article-comments .cmt-reply,
.article-comments .cmt-reply-cancel {
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid #e1e5ec;
  background: #f7f8fa;
  color: #6b7280;
  font-family: var(--font-dhivehi);
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: none;
}

.article-comments .cmt-reply:hover,
.article-comments .cmt-reply.is-open {
  border-color: #3050d1;
  color: #3050d1;
  background: #fff;
}

.cmt-replies {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-inline-start: 1.4rem;
}

.cmt-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.95rem;
  border: 1px solid var(--color-card-border);
  border-radius: 16px !important;
  background: var(--color-card-bg);
}

.article-comments-form.cmt-compose .cmt-compose-name input {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
}

.cmt-compose-name .cmt-mark:empty {
  display: none;
}

.cmt-reply-form input,
.cmt-reply-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-card-border);
  border-radius: 12px !important;
  background: var(--color-form-bg);
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  text-align: right;
  direction: rtl;
  unicode-bidi: plaintext;
  outline: none;
  box-shadow: none;
}

.cmt-reply-form input:focus,
.cmt-reply-form textarea:focus {
  border-color: rgba(50, 90, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(50, 90, 255, 0.1);
}

.cmt-reply-form textarea,
.article-comments-form.cmt-compose textarea {
  width: 100%;
  max-width: 100%;
  min-height: 8.5rem;
  margin: 0;
  resize: vertical;
  line-height: 1.75;
}

.cmt-compose-actions:has([data-comment-submit-note]:not([hidden])) .cmt-compose-note {
  display: none;
}

.article-comments-form.cmt-compose {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.article-comments-form.cmt-compose .cmt-compose-name {
  width: 100%;
  margin: 0;
}

.article-comments-form.cmt-compose textarea {
  margin: 0;
}

.article-comments-form.cmt-compose .cmt-compose-actions {
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-comments-form.cmt-compose .article-comments-submit {
  order: -1;
}

.article-comments-form.cmt-compose .cmt-compose-note {
  flex: 1 1 12rem;
  min-width: 0;
}

.cmt-compose .article-comments-submit,
.cmt-reply-form .article-comments-submit {
  width: auto !important;
  min-width: 5.5rem;
}

.article-comments-form button[type="submit"]:disabled,
.cmt-compose .article-comments-submit:disabled,
.cmt-reply-form .article-comments-submit:disabled {
  background: linear-gradient(180deg, #f4f6fb 0%, #e4e8f2 100%);
  color: #8b93a7;
  box-shadow: inset 0 0 0 1px rgba(48, 80, 209, 0.14);
  opacity: 1;
  cursor: not-allowed;
  transform: none;
}

html[data-theme="dark"] .article-comments-form button[type="submit"]:disabled,
html[data-theme="dark"] .cmt-compose .article-comments-submit:disabled,
html[data-theme="dark"] .cmt-reply-form .article-comments-submit:disabled {
  background: linear-gradient(180deg, #323948 0%, #282e3a 100%);
  color: #9aa3b5;
  box-shadow: inset 0 0 0 1px rgba(142, 164, 255, 0.2);
}

.cmt-reply-form .cmt-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  width: 100%;
}

html[data-theme="dark"] .cmt-mark {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cmt-name,
html[data-theme="dark"] .article-comments .cmt-vote.is-active,
html[data-theme="dark"] .article-comments .cmt-reply.is-open {
  color: #8aa4ff;
}

html[data-theme="dark"] .cmt-votes {
  background: rgba(255, 255, 255, 0.06);
  color: #c5cad3;
}

html[data-theme="dark"] .cmt-votes-bar {
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .article-comments .cmt-vote {
  color: #c5cad3;
}

html[data-theme="dark"] .article-comments .cmt-reply,
html[data-theme="dark"] .article-comments .cmt-reply-cancel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c5cad3;
}

@media (max-width: 640px) {
  .cmt-replies {
    padding-inline-start: 0.7rem;
  }

  .cmt-time {
    font-size: 0.82rem;
  }
}

/* Story tags and reactions: quiet cards with a light motion. */
.article-related-tags,
.post-reactions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--color-card-border);
  border-radius: 20px !important;
  background: var(--color-card-bg);
  box-shadow: none;
}

.article-related-tags-title,
.post-reactions-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0 0 0.45rem;
  border: 0;
  font-size: 1.02rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.8;
}

.post-reactions-title {
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

html[lang="en"] .post-reactions-title {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  font-synthesis: weight;
}

.article-related-tags-title::before,
.post-reactions-title::before {
  content: "";
  width: 5px;
  height: 0.95em;
  border-radius: 999px;
  background: #3050d1;
  flex: 0 0 auto;
}

.article-related-tag {
  padding: 0.38rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px !important;
  background: #f3f5fa;
  color: var(--color-text);
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  animation: tag-in 0.45s ease both;
}

.article-related-tags-list > :nth-child(2) { animation-delay: 0.05s; }
.article-related-tags-list > :nth-child(3) { animation-delay: 0.1s; }
.article-related-tags-list > :nth-child(4) { animation-delay: 0.15s; }

.article-related-tag:hover {
  background: #e8edff;
  border-color: transparent;
  color: #3050d1;
  box-shadow: none;
  transform: translateY(-2px);
}

.post-reactions-bar {
  gap: 0.55rem;
}

.post-reaction-item {
  border: 1px solid transparent;
  border-radius: 18px !important;
  background: #f6f7fb;
  box-shadow: none;
  animation: tag-in 0.5s ease both;
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.post-reactions-bar > :nth-child(2) { animation-delay: 0.05s; }
.post-reactions-bar > :nth-child(3) { animation-delay: 0.1s; }
.post-reactions-bar > :nth-child(4) { animation-delay: 0.15s; }
.post-reactions-bar > :nth-child(5) { animation-delay: 0.2s; }

.post-reaction-item[data-reaction="love"] { background: #fff4f6; }
.post-reaction-item[data-reaction="happy"] { background: #fff8ec; }
.post-reaction-item[data-reaction="wow"] { background: #f3f6ff; }
.post-reaction-item[data-reaction="sad"] { background: #f2f8ff; }
.post-reaction-item[data-reaction="angry"] { background: #fff3ee; }

.post-reaction-item:hover:not(:disabled) {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}

.post-reaction-item[data-reaction="love"]:hover:not(:disabled) { background: #ffe4eb; }
.post-reaction-item[data-reaction="happy"]:hover:not(:disabled) { background: #ffefd2; }
.post-reaction-item[data-reaction="wow"]:hover:not(:disabled) { background: #e4ebff; }
.post-reaction-item[data-reaction="sad"]:hover:not(:disabled) { background: #e3f1ff; }
.post-reaction-item[data-reaction="angry"]:hover:not(:disabled) { background: #ffe4da; }

.post-reaction-item.is-active {
  border-color: transparent;
  box-shadow: none;
}

.post-reaction-item[data-reaction="love"].is-active { background: #ffd5e0; }
.post-reaction-item[data-reaction="happy"].is-active { background: #ffe4b0; }
.post-reaction-item[data-reaction="wow"].is-active { background: #d5e0ff; }
.post-reaction-item[data-reaction="sad"].is-active { background: #d4e9ff; }
.post-reaction-item[data-reaction="angry"].is-active { background: #ffd4c6; }

.post-reaction-icon-wrap {
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
}

.post-reaction-icon {
  width: 100%;
  height: 100%;
  font-size: 0;
  line-height: 0;
  color: inherit;
}

.react-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: center;
  animation: react-idle 2.8s ease-in-out infinite;
}

.post-reactions-bar > :nth-child(2) .react-svg { animation-delay: 0.25s; }
.post-reactions-bar > :nth-child(3) .react-svg { animation-delay: 0.5s; }
.post-reactions-bar > :nth-child(4) .react-svg { animation-delay: 0.75s; }
.post-reactions-bar > :nth-child(5) .react-svg { animation-delay: 1s; }

.react-heart { fill: #ff4d6d; }
.react-heart-shine {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
}
.react-face { fill: #ffc857; }
.post-reaction-item[data-reaction="wow"] .react-face { fill: #8eacff; }
.post-reaction-item[data-reaction="sad"] .react-face { fill: #8ec8ff; }
.post-reaction-item[data-reaction="angry"] .react-face { fill: #ff8f6b; }
.react-blush { fill: #ff8fa8; opacity: 0.7; }
.react-eye,
.react-mouth,
.react-brow {
  fill: none;
  stroke: #3d2a16;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.post-reaction-item[data-reaction="wow"] .react-eye-open { fill: #243056; }
.post-reaction-item[data-reaction="wow"] .react-mouth-o { fill: none; stroke: #243056; stroke-width: 1.8; }
.react-eye-dot { fill: #3d2a16; }
.post-reaction-item[data-reaction="sad"] .react-eye-dot,
.post-reaction-item[data-reaction="sad"] .react-mouth { stroke: #1e4f86; }
.post-reaction-item[data-reaction="sad"] .react-eye-dot { fill: #1e4f86; }
.post-reaction-item[data-reaction="angry"] .react-eye-dot { fill: #6b2418; }
.post-reaction-item[data-reaction="angry"] .react-brow,
.post-reaction-item[data-reaction="angry"] .react-mouth { stroke: #6b2418; }
.react-tear {
  fill: #2f7ed6;
  transform-origin: 31.4px 27px;
  animation: react-tear 2.4s ease-in-out infinite;
}

.post-reaction-item[data-reaction="love"] .react-heart {
  transform-origin: 24px 24px;
  animation: react-heart 1.7s ease-in-out infinite;
}

.post-reaction-item:hover:not(:disabled) .react-svg {
  animation: react-float 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.post-reaction-item.is-bump .react-svg {
  animation: react-pop 0.5s cubic-bezier(0.2, 1.45, 0.36, 1);
}

.post-reaction-item.is-bump .post-reaction-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: react-ring 0.55s ease;
  pointer-events: none;
}

.post-reaction-item[data-reaction="love"].is-bump { color: #ff4d6d; }
.post-reaction-item[data-reaction="happy"].is-bump { color: #e0a020; }
.post-reaction-item[data-reaction="wow"].is-bump { color: #5b78ef; }
.post-reaction-item[data-reaction="sad"].is-bump { color: #3d8fd4; }
.post-reaction-item[data-reaction="angry"].is-bump { color: #ef6a45; }

.post-reaction-pct {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #8b93a7;
}

.post-reaction-item[data-reaction="love"].is-active .post-reaction-pct { color: #e11d48; }
.post-reaction-item[data-reaction="happy"].is-active .post-reaction-pct { color: #c4840a; }
.post-reaction-item[data-reaction="wow"].is-active .post-reaction-pct { color: #3050d1; }
.post-reaction-item[data-reaction="sad"].is-active .post-reaction-pct { color: #1d6fbf; }
.post-reaction-item[data-reaction="angry"].is-active .post-reaction-pct { color: #d4532e; }

html[data-theme="dark"] .article-related-tag {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .article-related-tag:hover {
  background: rgba(50, 90, 255, 0.16);
}

html[data-theme="dark"] .post-reaction-item[data-reaction="love"] { background: rgba(255, 77, 109, 0.14); }
html[data-theme="dark"] .post-reaction-item[data-reaction="happy"] { background: rgba(255, 200, 87, 0.14); }
html[data-theme="dark"] .post-reaction-item[data-reaction="wow"] { background: rgba(142, 172, 255, 0.14); }
html[data-theme="dark"] .post-reaction-item[data-reaction="sad"] { background: rgba(142, 200, 255, 0.14); }
html[data-theme="dark"] .post-reaction-item[data-reaction="angry"] { background: rgba(255, 143, 107, 0.14); }

html[data-theme="dark"] .post-reaction-item[data-reaction="love"]:hover:not(:disabled),
html[data-theme="dark"] .post-reaction-item[data-reaction="love"].is-active { background: rgba(255, 77, 109, 0.28); }
html[data-theme="dark"] .post-reaction-item[data-reaction="happy"]:hover:not(:disabled),
html[data-theme="dark"] .post-reaction-item[data-reaction="happy"].is-active { background: rgba(255, 200, 87, 0.28); }
html[data-theme="dark"] .post-reaction-item[data-reaction="wow"]:hover:not(:disabled),
html[data-theme="dark"] .post-reaction-item[data-reaction="wow"].is-active { background: rgba(142, 172, 255, 0.28); }
html[data-theme="dark"] .post-reaction-item[data-reaction="sad"]:hover:not(:disabled),
html[data-theme="dark"] .post-reaction-item[data-reaction="sad"].is-active { background: rgba(142, 200, 255, 0.28); }
html[data-theme="dark"] .post-reaction-item[data-reaction="angry"]:hover:not(:disabled),
html[data-theme="dark"] .post-reaction-item[data-reaction="angry"].is-active { background: rgba(255, 143, 107, 0.28); }

@keyframes tag-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes react-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes react-heart {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.08); }
  32% { transform: scale(1); }
  48% { transform: scale(1.12); }
}

@keyframes react-tear {
  0%, 35% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(7px); opacity: 0; }
  76% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

@keyframes react-float {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.16) rotate(-8deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes react-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32) rotate(-8deg); }
  68% { transform: scale(0.94) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes react-ring {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .article-related-tag,
  .post-reaction-item,
  .react-svg,
  .react-heart,
  .react-tear,
  .post-reaction-item.is-bump .post-reaction-icon-wrap::after {
    animation: none !important;
    transition: none !important;
  }
}

.policy-wrap {
  padding: 1.75rem 0 3.5rem;
}

.policy-doc {
  max-width: 46rem;
  margin-inline: auto;
  font-family: var(--font-article);
  color: var(--color-text);
}

.policy-doc--sheet {
  max-width: 52rem;
}

.policy-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.policy-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-card-border);
  border-radius: 999px;
  background: var(--color-card-bg);
  color: var(--color-secondary-text);
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.6;
  text-decoration: none;
}

.policy-switch a[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.policy-hero {
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 55%),
    var(--color-card-bg);
  box-shadow: 0 16px 40px rgba(26, 48, 140, 0.06);
}

.policy-kicker,
.policy-section-head h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.policy-kicker::before,
.policy-section-head h2::before {
  content: "";
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: #3050d1;
  flex: 0 0 auto;
}

.policy-kicker {
  margin: 0 0 0.55rem;
  color: var(--color-primary);
  font-size: 0.98rem;
  line-height: 1.8;
}

.policy-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.85;
}

.policy-en {
  margin: 0.15rem 0 0;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.policy-date {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
  color: var(--color-primary-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  direction: ltr;
}

.policy-download:hover {
  background: var(--color-primary-dark);
}

.policy-section {
  margin-top: 0.85rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  background: var(--color-card-bg);
}

.policy-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.policy-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: 0.15rem;
  border-radius: 12px;
  background: #3050d1;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  direction: ltr;
  flex: 0 0 auto;
}

.policy-section-head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.85;
}

.policy-section p,
.policy-points li,
.policy-adopted {
  margin: 0;
  font-size: 1.05rem;
  line-height: 2;
}

.policy-section p + p {
  margin-top: 0.75rem;
}

.policy-points {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-points li {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
}

.policy-adopted {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
  color: var(--color-primary-dark);
}

.policy-sheet {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--color-card-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(26, 48, 140, 0.08);
}

.policy-sheet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
}

html[lang="en"] .policy-doc,
html[lang="en"] .policy-doc :where(h1, h2, p, li, span, a) {
  direction: rtl !important;
  text-align: right !important;
  font-family: var(--font-article) !important;
}

html[lang="en"] .policy-en,
html[lang="en"] .policy-download,
html[lang="en"] .policy-num {
  direction: ltr !important;
  text-align: left !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

.readers-page {
  position: relative;
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.readers-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% -10%, color-mix(in srgb, #3050d1 18%, transparent), transparent 70%),
    linear-gradient(var(--color-bg), var(--color-bg));
}

.readers-inner {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
}

.readers-hero,
.readers-body {
  max-width: 40rem;
  margin-inline: auto;
}

.readers-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.readers-brand {
  margin: 0 0 0.85rem;
  color: #3050d1;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.75;
  text-align: center;
}

.readers-hero h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: clamp(1.85rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.readers-lead {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--color-secondary-text);
  font-family: var(--font-dhivehi);
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: center;
}

.readers-line {
  width: 4.5rem;
  height: 4px;
  margin: 1.75rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3050d1, #6980d1);
}

.readers-body > p,
.readers-rules {
  animation: readers-in 0.7s ease both;
}

.readers-body > p {
  margin: 0 0 1.15rem;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 1rem;
  line-height: 1.85;
  text-align: right;
}

.readers-rules {
  margin: 1.75rem 0 0;
  padding: 1.5rem 1.35rem 1.15rem;
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  background: var(--color-card-bg);
}

.readers-rules h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--color-text);
  font-family: var(--font-dhivehi);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.8;
}

.readers-rules h2::before {
  content: "";
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: #3050d1;
  flex: 0 0 auto;
}

.readers-rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.readers-rules li {
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-card-border);
  color: var(--color-secondary-text);
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: right;
}

.readers-rules li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.readers-close {
  margin: 1.75rem 0 0 !important;
  color: #3050d1 !important;
  font-weight: 600;
  text-align: center !important;
}

html[lang="en"] .readers-page,
html[lang="en"] .readers-page :where(h1, h2, p, li) {
  direction: rtl !important;
  font-family: var(--font-dhivehi) !important;
}

html[lang="en"] .readers-hero,
html[lang="en"] .readers-hero h1,
html[lang="en"] .readers-brand,
html[lang="en"] .readers-lead,
html[lang="en"] .readers-close {
  text-align: center !important;
}

@keyframes readers-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .readers-body > p,
  .readers-rules {
    animation: none;
  }
}

.category-page--modern {
  padding-top: 0;
}

.catx-hero {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 2.15rem 0 1.85rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(168deg, #4d6ae6 0%, #3050d1 48%, #1a2f8f 100%);
}

.catx-hero::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: otd-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.catx-hero-orb {
  position: absolute;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  inset-inline-start: -3rem;
  top: -3.2rem;
  animation: otd-orb 9s ease-in-out infinite;
  pointer-events: none;
}

.catx-hero-orb--soft {
  width: 7.5rem;
  height: 7.5rem;
  inset-inline-start: auto;
  inset-inline-end: 8%;
  top: auto;
  bottom: -2.4rem;
  background: rgba(255, 255, 255, 0.1);
  animation-duration: 11s;
}

.catx-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--site-gutter);
}

.catx-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-dhivehi);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  animation: otd-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.catx-hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  animation: otd-pulse 2.2s ease-out infinite;
}

.catx-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.catx-hero-count {
  flex-shrink: 0;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px !important;
  background: #fff;
  color: #3050d1;
  font-family: var(--font-dhivehi);
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow: 0 8px 18px rgba(16, 28, 84, 0.18);
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.category-page--modern .category-sidebar {
  position: sticky;
  top: calc(var(--frontend-admin-bar-height) + var(--header-height) + var(--top-bar-height) + 0.85rem);
  align-self: start;
  max-height: calc(100dvh - var(--frontend-admin-bar-height) - var(--header-height) - var(--top-bar-height) - 1.6rem);
  overflow: auto;
}

.category-page--modern .category-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-page--modern .category-archive-card {
  gap: 0;
  background: var(--color-card-bg);
  border: 1px solid color-mix(in srgb, #3050d1 14%, var(--color-border));
  box-shadow: 0 10px 24px rgba(26, 48, 140, 0.05);
  animation: otd-rise 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--cat-i, 0) * 0.045s);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-page--modern .category-archive-card:hover {
  transform: translateY(-4px);
  border-color: #3050d1;
  box-shadow: 0 16px 32px rgba(26, 48, 140, 0.12);
}

.category-page--modern .category-archive-card.is-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(13.5rem, 0.92fr) minmax(0, 1.15fr);
  min-height: 16rem;
  border-radius: var(--radius-panel) !important;
}

.category-page--modern .category-archive-card-media {
  border-radius: 0 !important;
  box-shadow: none;
  aspect-ratio: 16 / 10;
}

.category-page--modern .category-archive-card.is-lead .category-archive-card-media {
  aspect-ratio: auto;
  min-height: 16rem;
  height: 100%;
}

.category-page--modern .category-archive-card-media img,
.category-page--modern .category-archive-card-media .featured-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-page--modern .category-archive-card-media .featured-image-placeholder {
  display: block;
  background: linear-gradient(145deg, #4d6ae6, #1a2f8f);
}

.category-page--modern .category-archive-card:hover .category-archive-card-media img {
  transform: scale(1.05);
}

.category-page--modern .category-archive-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.85rem 0.95rem 1rem;
}

.category-page--modern .category-archive-card.is-lead .category-archive-card-body {
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
}

.category-page--modern[dir="ltr"] .category-archive-card.is-lead .category-archive-card-body {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, #3050d1 12%, transparent), transparent 46%),
    var(--color-card-bg);
}

.category-page--modern .category-archive-card-title {
  font-size: 1.05rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-page--modern .category-archive-card.is-lead .category-archive-card-title {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.5;
  -webkit-line-clamp: 4;
}

.category-page--modern .category-archive-card-date {
  color: #3050d1;
}

.category-page--modern .category-sidebar-latest {
  padding: 0.95rem 0.95rem 0.35rem;
  background: var(--color-card-bg);
  border: 1px solid color-mix(in srgb, #3050d1 14%, var(--color-border));
  border-radius: var(--radius-panel) !important;
  box-shadow: 0 12px 28px rgba(26, 48, 140, 0.05);
}

.category-page--modern .category-sidebar-latest-item {
  margin: 0;
  padding: 0.65rem 0;
  border-inline-start: 0;
  border-bottom: 1px solid var(--color-border);
}

.category-page--modern .category-sidebar-latest-item:last-child {
  border-bottom: 0;
}

.category-page--modern .category-sidebar-latest-link:hover {
  background: transparent;
}

.category-page--modern .category-sidebar-latest-link:hover .category-sidebar-latest-headline {
  color: #3050d1;
}

@media (max-width: 900px) {
  .category-page--modern .category-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .category-page--modern .category-archive-card.is-lead {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .category-page--modern .category-archive-card.is-lead .category-archive-card-media {
    min-height: 12rem;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .catx-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-page--modern .category-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catx-hero::after,
  .catx-hero-orb,
  .catx-hero-kicker,
  .catx-hero-dot,
  .catx-hero h1,
  .catx-hero-count,
  .category-page--modern .category-archive-card {
    animation: none;
  }

  .category-page--modern .category-archive-card:hover {
    transform: none;
  }
}

.author-page {
  padding-top: 0;
}

.author-page .author-profile {
  margin-bottom: 1.35rem;
  padding: 2.15rem 0 1.85rem;
  border: 0;
  border-radius: 0 !important;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(168deg, #4d6ae6 0%, #3050d1 48%, #1a2f8f 100%);
}

.author-page .author-profile::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -40%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: otd-sheen 7.5s ease-in-out infinite;
  pointer-events: none;
}

.author-page .author-profile-glow {
  inset-inline-end: auto;
  inset-inline-start: -3.2rem;
  top: -3.4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  animation: otd-orb 9s ease-in-out infinite;
}

.author-page .author-profile-orb {
  position: absolute;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  inset-inline-end: 8%;
  bottom: -2.4rem;
  animation: otd-orb 11s ease-in-out infinite;
  pointer-events: none;
}

.author-page .author-profile-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--site-gutter);
  animation: otd-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.author-page .author-profile-avatar {
  width: 118px;
  height: 118px;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(16, 28, 84, 0.28);
}

.author-page .author-profile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.86);
}

.author-page .author-profile-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  animation: otd-pulse 2.2s ease-out infinite;
}

.author-page .author-profile-name,
html[data-theme="dark"] .author-page .author-profile-name {
  color: #fff;
}

.author-page .author-profile-bio {
  color: rgba(255, 255, 255, 0.88);
}

.author-page .author-profile-stat {
  align-items: flex-start;
  min-width: 0;
  padding: 0.5rem 0.85rem 0.55rem;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.14);
}

.author-page .author-profile-stat-value,
.author-page .author-profile-stat--views .author-profile-stat-value,
.author-page .author-profile-stat-label {
  color: #fff;
}

.author-page .author-posts-title {
  border-bottom: 0;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .author-page .author-profile-inner {
    flex-direction: column;
    align-items: center;
  }

  .author-page .author-profile-copy,
  .author-page .author-profile-bio {
    text-align: center;
  }

  .author-page .author-profile-stats {
    justify-content: center;
  }

  .author-page .author-profile-stat {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-page .author-profile::after,
  .author-page .author-profile-glow,
  .author-page .author-profile-orb,
  .author-page .author-profile-dot,
  .author-page .author-profile-inner {
    animation: none;
  }
}

/* Phones, tablets, and iPads — keep every layout inside the screen */
.hm-atoll-section,
.home-popular-posts {
  width: 100dvw;
  margin-inline: calc(50% - 50dvw);
}

.catx-hero,
.author-page .author-profile,
.otd-slab,
.otd-page-hero {
  overflow: hidden;
}

.site-header {
  padding-top: env(safe-area-inset-top);
}

.site-footer {
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-drawer {
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-drawer-header {
  padding-top: calc(1rem + env(safe-area-inset-top));
}

.article-content {
  overflow-wrap: break-word;
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
  max-width: 100%;
}

.article-content pre,
.article-content .wp-block-table,
.article-content table {
  max-width: 100%;
}

@media (max-width: 960px) {
  .header-menu-btn,
  .mobile-drawer-close,
  .article-share-icon {
    width: 44px;
    height: 44px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  textarea,
  select {
    font-size: 16px;
  }

  .article-reader-toolbar {
    flex-wrap: wrap;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hm-desk-row,
  .hm-world-grid,
  .home-popular-posts-grid,
  .post-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-pair-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-pair-photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 561px) and (max-width: 1100px) {
  .hm-atoll-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-nav {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .footer-nav-list {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    gap: 0.65rem 1.1rem;
  }

  .footer-social {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-bottom-card-title {
    font-size: 0.95rem;
  }
}

.article-share-icon--copy,
.article-share-icon--more {
  display: none;
}

/* Story font control — same open row on desktop and phone */
.article-reader-toolbar__font,
html[data-theme="dark"] .article-reader-toolbar__font {
  margin-inline-start: 0;
  padding: 0;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.article-reader-toolbar__font-divider {
  display: none;
}

.site-main button.article-reader-toolbar__font-btn,
html[data-theme="dark"] .site-main button.article-reader-toolbar__font-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: #1a1a1a;
  box-shadow: none;
}

html[data-theme="dark"] .site-main button.article-reader-toolbar__font-btn {
  color: #f4f4f5;
}

.site-main button.article-reader-toolbar__font-btn:hover:not(:disabled),
html[data-theme="dark"] .site-main button.article-reader-toolbar__font-btn:hover:not(:disabled) {
  background: transparent;
  color: #111;
  transform: scale(1.08);
}

html[data-theme="dark"] .site-main button.article-reader-toolbar__font-btn:hover:not(:disabled) {
  color: #fff;
}

.article-reader-toolbar__font-btn[data-font-decrease] { order: 1; }

.article-reader-toolbar__meter {
  display: inline-flex;
  order: 2;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-inline: 2px;
}

.article-reader-toolbar__meter i {
  display: block;
  width: 5px;
  border-radius: 1px;
  background: #dcdcdc;
  transform-origin: bottom center;
  transition: background 0.28s ease, transform 0.28s ease;
}

.article-reader-toolbar__meter i:nth-child(1) { height: 8px; }
.article-reader-toolbar__meter i:nth-child(2) { height: 12px; }
.article-reader-toolbar__meter i:nth-child(3) { height: 16px; }
.article-reader-toolbar__meter i:nth-child(4) { height: 20px; }
.article-reader-toolbar__meter i:nth-child(5) { height: 25px; }

.article-reader-toolbar__meter i.is-on {
  background: #ff2d14;
}

.article-reader-toolbar__meter i.is-pop {
  animation: font-meter-rise 0.42s cubic-bezier(0.2, 0.85, 0.2, 1);
}

@keyframes font-meter-rise {
  0% { transform: scaleY(0.25); }
  70% { transform: scaleY(1.08); }
  100% { transform: scaleY(1); }
}

.article-reader-toolbar__font-btn[data-font-increase] { order: 3; }

.article-reader-toolbar__font-label {
  display: inline;
  order: 4;
  padding-inline-end: 4px;
  font-family: "Waheed", "MV Faseyha", var(--font-dhivehi), sans-serif;
  font-size: 22px;
  line-height: 1.7;
  color: #2a2a2a;
}

html[lang="en"] .article-reader-toolbar__font-label {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

html[data-theme="dark"] .article-reader-toolbar__meter i { background: #4a4f57; }
html[data-theme="dark"] .article-reader-toolbar__meter i.is-on { background: #ff3b22; }
html[data-theme="dark"] .article-reader-toolbar__font-label { color: #f3f4f6; }

@media (prefers-reduced-motion: reduce) {
  .article-reader-toolbar__meter i.is-pop { animation: none; }
}

/* Mobile story tools — plain row, icon line, font size */
@media (max-width: 1024px) {
  .article-top-meta {
    gap: 1.15rem;
    margin-top: 1.05rem;
    margin-bottom: 0;
    padding: 0.15rem 0 0;
    border: 0;
    background: transparent;
  }

  .article-top-meta::after {
    display: none;
  }

  .article-byline {
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .article-byline-text {
    align-items: flex-end;
    text-align: right;
    direction: rtl;
    gap: 0.2rem;
    order: 0;
  }

  .article-author,
  .article-author-site {
    text-align: right;
    color: var(--color-text);
    font-weight: 700;
  }

  .article-author-site {
    font-weight: 500;
    color: var(--color-muted);
  }

  .article-author-avatar,
  .article-author-avatar-link,
  .article-author-avatar--fallback {
    width: 52px;
    height: 52px;
    border-radius: 50% !important;
    border: 0;
    box-shadow: none;
  }

  .article-meta-row {
    justify-content: flex-end;
    gap: 0.7rem;
  }

  .article-date,
  .article-comments-meta {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #9a9a9a;
  }

  .article-date-text,
  .article-comments-meta-count {
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    color: #9a9a9a;
  }

  .article-date-icon,
  .article-comments-meta-icon {
    display: none;
  }

  .article-share-wrap,
  .article-share-icons {
    width: 100%;
  }

  .article-share-icons {
    justify-content: space-between;
    gap: 0.15rem;
  }

  .article-share-icon--copy { order: 1; }
  .article-share-icon--x { order: 2; }
  .article-share-icon--facebook { order: 3; }
  .article-share-icon--telegram { order: 4; }
  .article-share-icon--viber { order: 5; }
  .article-share-icon--whatsapp { order: 6; }
  .article-share-icon--more { order: 7; }

  .article-share-icon--copy,
  .article-share-icon--more {
    display: inline-flex;
  }

  .article-share-icon,
  .article-share-icon--facebook,
  .article-share-icon--telegram {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent !important;
    color: var(--color-text);
    box-shadow: none;
  }

  .article-share-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .article-share-icon.is-copied {
    color: #3050d1;
  }

  .article-reader-toolbar {
    justify-content: flex-start;
    gap: 0;
    margin: 0.15rem 0 1.15rem;
    padding: 0 0 0.95rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
    background: transparent;
  }

  .article-reader-toolbar__start {
    display: none;
  }

.article-reader-toolbar__font,
html[data-theme="dark"] .article-reader-toolbar__font {
  margin-inline-start: 0;
  padding: 0;
  gap: 16px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .article-reader-toolbar__font-divider {
    display: none;
  }

  .site-main button.article-reader-toolbar__font-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: #1a1a1a;
    box-shadow: none;
  }

  html[data-theme="dark"] .site-main button.article-reader-toolbar__font-btn {
    color: #f4f4f5;
  }

  .article-reader-toolbar__font-label {
    font-size: 20px;
  }
}

/* Mobile homepage type — Huvadhoo Media scale */
@media (max-width: 1024px) {
  .hero-featured-title {
    font-family: "Waheed", "MV Waheed", var(--font-heading);
    font-size: 43px;
    font-weight: 400;
    line-height: 1.58;
  }

  .hero-featured-excerpt {
    font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
    font-size: 20px;
    line-height: 1.9;
  }

  .hero-featured-category,
  .post-card-category {
    font-size: 13.5px;
  }

  .hm-desk-mark,
  .hm-pair-mark,
  .hm-colboard-title,
  .hm-atoll-title,
  .hm-cat-spotlight-title,
  .otd-kicker,
  .post-strip-title,
  .home-popular-posts-title,
  .home-reels-title,
  .home-gallery-title,
  .home-videos-title,
  .section-title,
  .hm-cat-title,
  .hm-cat-section-header-title,
  .hm-otd-title,
  .category-archive-title,
  .author-posts-title,
  .static-page-title {
    font-size: 20px;
    line-height: 1.35;
  }

  .hero-bottom-card-title,
  .post-strip-card-title,
  .home-popular-posts-card-title,
  .post-card-title,
  .hm-desk-title,
  .hm-pair-title,
  .hm-colboard-item-title,
  .hm-cat-grid-card-title,
  .hm-world-card-title,
  .hm-atoll-item-title,
  .otd-entry-title,
  .home-gallery-featured-text h3,
  .home-gallery-grid-caption,
  .search-result-card-title,
  .category-archive-card-title,
  .category-sidebar-latest-headline,
  .related-post-card-title {
    font-family: "Waheed", "MV Waheed", var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.62;
  }

  .hero-bottom-card-title,
  .post-strip-card-title,
  .home-popular-posts-card-title,
  .post-card-title,
  .hm-desk-title,
  .hm-pair-title,
  .hm-colboard-item-title,
  .hm-cat-grid-card-title,
  .hm-world-card-title,
  .hm-atoll-item-title,
  .otd-entry-title,
  .home-gallery-featured-text h3,
  .home-gallery-grid-caption {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .hero-featured-meta,
  .hero-bottom-card-time,
  .post-strip-card-time,
  .home-popular-posts-card-time,
  .hm-desk-copy time,
  .hm-pair-copy time,
  .hm-pair-item time,
  .hm-colboard-time,
  .hero-featured-lead-badge,
  .hero-featured-lead-author,
  .hero-featured-lead-cta,
  .hm-desk-more {
    font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
  }
}

/* Desktop homepage type — Huvadhoo Media scale (same breakpoint as the desktop header) */
@media (min-width: 961px) {
  .hero-featured-title {
    font-family: "Waheed", "MV Waheed", var(--font-heading);
    font-size: 43px;
    font-weight: 400;
    line-height: 1.58;
  }

  .hero-featured-excerpt {
    font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
    font-size: 20px;
    line-height: 1.9;
  }

  .nav-links > li > a,
  .nav-links a {
    font-size: 22px;
  }

  .hero-featured-category,
  .post-card-category {
    font-size: 13.5px;
  }

  .hm-desk-mark,
  .hm-pair-mark,
  .hm-colboard-title,
  .hm-atoll-title,
  .hm-cat-spotlight-title,
  .otd-kicker,
  .post-strip-title,
  .home-popular-posts-title,
  .home-reels-title,
  .home-gallery-title,
  .home-videos-title,
  .section-title,
  .hm-cat-title,
  .hm-cat-section-header-title,
  .hm-otd-title,
  .category-archive-title,
  .author-posts-title,
  .static-page-title {
    font-family: "Waheed", "MV Waheed", var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.35;
  }

  .hero-bottom-card-title,
  .post-strip-card-title,
  .home-popular-posts-card-title,
  .post-card-title,
  .hm-desk-title,
  .hm-pair-title,
  .hm-colboard-item-title,
  .hm-cat-grid-card-title,
  .hm-world-card-title,
  .hm-atoll-item-title,
  .otd-entry-title,
  .home-gallery-featured-text h3,
  .home-gallery-grid-caption,
  .search-result-card-title,
  .category-archive-card-title,
  .category-sidebar-latest-headline,
  .related-post-card-title {
    font-family: "Waheed", "MV Waheed", var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.62;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
  }

  .hero-featured-meta,
  .hero-bottom-card-time,
  .post-strip-card-time,
  .home-popular-posts-card-time,
  .hm-desk-copy time,
  .hm-pair-copy time,
  .hm-pair-item time,
  .hm-colboard-time,
  .hero-featured-lead-badge,
  .hero-featured-lead-author,
  .hero-featured-lead-cta,
  .hm-desk-more {
    font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
  }
}

/* Header and footer menus — same face and size */
.nav-links > li > a,
.nav-links a,
.nav-submenu a,
.mobile-nav-link,
.mobile-nav-submenu a,
.footer-nav-list a {
  font-family: "Waheed", "MV Waheed", var(--font-heading);
  font-size: clamp(19px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.35;
}

/* One Thaana face on every Dhivehi page except the homepage, which keeps the Huvadhoo Media scale. */
html[lang="dv"] body:not(:has(.home-page)),
html[lang="dv"] body:not(:has(.home-page)) * {
  font-family: "Waheed", "MV Waheed", sans-serif;
}

html[lang="dv"] body:not(:has(.home-page)) .site-main :is(
  p,
  li,
  figcaption,
  blockquote,
  .post-card-excerpt,
  .static-page-content,
  .search-result-excerpt,
  .article-comments-empty,
  .comment-submit-note
) {
  font-size: 20px;
  line-height: 1.85;
}

html[lang="dv"] .article-content,
html[lang="dv"] .article-content p {
  font-size: calc(16px * var(--article-font-scale, 1.25));
  line-height: 1.9;
}

/* Story page — Huvadhoo Media face and size for the article, byline, and comment form. */
html[lang="dv"] body:not(:has(.home-page)) .site-main .article-content,
html[lang="dv"] body:not(:has(.home-page)) .site-main .article-content * {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-weight: 400;
}

html[lang="dv"] body:not(:has(.home-page)) .site-main .article-content,
html[lang="dv"] body:not(:has(.home-page)) .site-main .article-content p {
  font-size: calc(16px * var(--article-font-scale, 1.25));
  line-height: 1.9;
}

html[lang="dv"] body:not(:has(.home-page)) .article-author,
html[lang="dv"] body:not(:has(.home-page)) .article-author-site {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.45;
}

html[lang="dv"] body:not(:has(.home-page)) .article-date-text,
html[lang="dv"] body:not(:has(.home-page)) .article-date-value,
html[lang="dv"] body:not(:has(.home-page)) .article-comments-meta-count {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
}

html[lang="dv"] body:not(:has(.home-page)) .article-comments-title {
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
}

html[lang="dv"] body:not(:has(.home-page)) .article-comments-form :is(input, textarea) {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.95;
}

html[lang="dv"] body:not(:has(.home-page)) .article-comments-form button[type="submit"] {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: clamp(17px, 1.2vw, 17.5px);
  font-weight: 400;
  line-height: 1.72;
}

html[lang="dv"] body:not(:has(.home-page)) .site-main :is(.comment-submit-note, .article-comments-empty) {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
}

/* News tip strip — sits on top of the footer */
.footer-tip {
  background: #0c0c0e;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding-block: 0.9rem;
}

.footer-tip-line {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.35;
}

.footer-tip-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.72rem 0.95rem;
  border-radius: 2px;
  background: #3050d1;
  color: #fff;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.footer-tip-phone:hover {
  background: #243fb0;
  color: #fff;
}

html[lang="dv"] body .footer-tip-line {
  font-family: "Waheed", "MV Waheed", sans-serif;
}

html[lang="dv"] body .footer-tip-phone,
html[lang="dv"] body .footer-tip-phone span {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 640px) {
  .footer-tip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    padding-block: 1rem;
  }

  .footer-tip-line {
    font-size: 24px;
  }
}

/* Contact page */
.contact-page {
  max-width: 980px;
  margin-inline: auto;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.contact-hero {
  margin-bottom: 1.75rem;
}

.contact-kicker {
  margin: 0 0 0.35rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3050d1;
}

.contact-page h1 {
  margin: 0 0 0.75rem;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(43px, 30.4px + 3.13vw, 66px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
}

.contact-lead,
.contact-block p {
  margin: 0 0 0.85rem;
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--color-text);
}

.contact-lead {
  max-width: 38rem;
  margin-bottom: 0;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  height: 100%;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--color-card-border, #e6e8ee);
  border-radius: 12px;
  background: var(--color-card-bg, #fff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

a.contact-card:hover {
  border-color: #3050d1;
  color: inherit;
}

.contact-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(48, 80, 209, 0.1);
  color: #3050d1;
}

.contact-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.contact-card-label {
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.contact-card-value {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--color-muted, #5c6570);
  overflow-wrap: anywhere;
}

.contact-sections {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-block h2 {
  margin: 0 0 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-border, #e6e8ee);
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
}

.contact-block a {
  color: #3050d1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-office-name {
  margin-bottom: 0.15rem !important;
  font-family: ui-sans-serif, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 650;
  line-height: 1.4 !important;
}

.contact-office-address {
  font-family: ui-sans-serif, system-ui, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--color-muted, #5c6570);
}

.contact-page .header-social {
  display: flex;
  margin-top: 0.35rem;
}

html[lang="dv"] body .contact-page h1,
html[lang="dv"] body .contact-page h2,
html[lang="dv"] body .contact-card-label {
  font-family: "Waheed", "MV Waheed", sans-serif;
}

html[lang="dv"] body .contact-lead,
html[lang="dv"] body .contact-block p {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 20px;
  line-height: 1.9;
}

html[lang="dv"] body .contact-card-value--latin,
html[lang="dv"] body .contact-kicker,
html[lang="dv"] body .contact-office-name,
html[lang="dv"] body .contact-office-address {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 800px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding-top: 1.5rem;
  }
}

/* Full footer — one modern black gradient */
.site-footer {
  background:
    radial-gradient(ellipse 70% 42% at 0% 0%, rgba(48, 80, 209, 0.28), transparent 58%),
    radial-gradient(ellipse 48% 36% at 100% 100%, rgba(48, 80, 209, 0.16), transparent 52%),
    linear-gradient(168deg, #0a0c12 0%, #07080c 46%, #030304 100%);
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
}

.footer-tip,
.footer-section,
.footer-section--bottom {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.footer-section--bottom {
  border-bottom: none;
}

.footer-contact-brand,
.footer-contact-chip,
.footer-contact-address,
.footer-contact-note {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-nav-list a {
  color: #e4e4e7;
}

.footer-bottom-links a {
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.55;
}

html[lang="en"] .footer-bottom-links a {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.footer-bottom-links a,
.footer-rights,
.footer-contact-label,
.footer-contact-note {
  color: #a1a1aa;
}

/* Latin type that has to stay readable, and an On this day list that fits its card */
html[lang="dv"] body .footer-copy,
html[lang="dv"] body .footer-rights,
html[lang="dv"] body .footer-contact-name,
html[lang="dv"] body .footer-contact-since,
html[lang="dv"] body .footer-contact-label,
html[lang="dv"] body .footer-contact-value,
html[lang="dv"] body .footer-contact-note,
html[lang="dv"] body .otd-daynum,
html[lang="dv"] body .otd-year,
html[lang="dv"] body .otd-entry-year {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.footer-copy {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-rights {
  font-size: 12px;
  line-height: 1.35;
}

.otd-kicker {
  font-size: 22px;
  line-height: 1.2;
}

.otd-daynum {
  font-size: clamp(3.5rem, 4.6vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.otd-month {
  font-size: 18px;
  line-height: 1.35;
}

.otd-year {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.otd-entry {
  grid-template-columns: auto minmax(0, 1fr) 4.25rem;
  flex: 1 1 0;
  align-items: center;
  min-height: 0;
  padding-block: 0.55rem;
  overflow: hidden;
}

.otd-entry-year {
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  padding: 0.2rem 0.48rem;
}

.otd-entry-title {
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.otd-entry-photo {
  width: 4.25rem;
  height: 3.2rem;
  aspect-ratio: auto;
  border-radius: 10px;
}

.otd-entry-photo .placeholder-image {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-image-bg)), var(--color-image-bg));
}

@media (min-width: 801px) {
  .otd-stage {
    min-height: 33rem;
  }
}

@media (max-width: 800px) {
  .otd-entry {
    grid-template-columns: auto minmax(0, 1fr) 3.6rem;
    min-height: 3.8rem;
  }

  .otd-entry-photo {
    width: 3.6rem;
    height: 2.7rem;
  }

  .otd-entry-title {
    font-size: 15.5px;
  }
}

.about-cards {
  margin: 0.35rem 0 1.15rem;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.2rem 0 1rem;
}

.about-facts > div {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-card-border, #e6e8ee);
  border-radius: 12px;
  background: var(--color-card-bg, #fff);
}

.about-facts dt {
  margin: 0 0 0.25rem;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.about-facts dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-muted, #5c6570);
  overflow-wrap: anywhere;
}

html[lang="dv"] body .about-facts dt {
  font-family: "Waheed", "MV Waheed", sans-serif;
}

html[lang="dv"] body .about-fact-latin {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 800px) {
  .about-facts {
    grid-template-columns: 1fr;
  }
}

/* Header icons — same size as the menu words */
.nav-home-icon,
.header-search-icon,
.header-social-icon,
.header-social-icon svg {
  width: clamp(19px, 1.5vw, 22px);
  height: clamp(19px, 1.5vw, 22px);
}

.nav-home-icon,
.header-search-icon {
  display: block;
  flex-shrink: 0;
}

.header-utility .header-search-btn,
.header-social-link {
  width: 40px;
  height: 44px;
  color: #3f3f46;
}

.header-utility .header-search-btn:hover,
.header-social-link:hover {
  color: #3050d1;
}

/* Article date, caption, and reading-time pill share one comfortable size.
   Latin digits use a real number face so they match the Thaana instead of shrinking. */
html[lang="dv"] body:not(:has(.home-page)) .article-date-text,
html[lang="dv"] body:not(:has(.home-page)) .article-date .thaana-datetime {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
}

html[lang="dv"] body .thaana-datetime-num,
html[lang="dv"] body .thaana-datetime-time,
html[lang="dv"] body:not(:has(.home-page)) .article-comments-meta-count,
html[lang="dv"] body:not(:has(.home-page)) .article-reader-toolbar__reading-num {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1em;
  font-weight: 650;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

html[lang="dv"] body:not(:has(.home-page)) .article-date .thaana-datetime-num,
html[lang="dv"] body:not(:has(.home-page)) .article-date .thaana-datetime-time,
html[lang="dv"] body:not(:has(.home-page)) .article-comments-meta-count {
  font-size: 12px;
}

html[lang="dv"] body:not(:has(.home-page)) .article-date-icon,
html[lang="dv"] body:not(:has(.home-page)) .article-comments-meta-icon {
  width: 15px;
  height: 15px;
}

html[lang="dv"] body:not(:has(.home-page)) .article-date-icon svg,
html[lang="dv"] body:not(:has(.home-page)) .article-comments-meta-icon svg {
  width: 14px;
  height: 14px;
}

html[lang="dv"] body:not(:has(.home-page)) .article-figure-caption-text {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
}

html[lang="dv"] body:not(:has(.home-page)) .site-main .article-reader-toolbar__reading-text,
html[lang="dv"] body:not(:has(.home-page)) .site-main .article-reader-toolbar__reading-lead,
html[lang="dv"] body:not(:has(.home-page)) .site-main .article-reader-toolbar__reading-unit {
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
}

html[lang="dv"] body:not(:has(.home-page)) .site-main .article-reader-toolbar__reading-num {
  font-size: 14.5px;
  color: inherit;
}

/* Logged-in toolbar is English. A Latin face keeps "Howdy" and the menu from shrinking in Waheed. */
html[lang="dv"] body .frontend-admin-bar,
html[lang="dv"] body .frontend-admin-bar * {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[lang="dv"] body .frontend-admin-bar,
html[lang="dv"] body .frontend-admin-bar .frontend-admin-bar-link,
html[lang="dv"] body .frontend-admin-bar .frontend-admin-bar-account,
html[lang="dv"] body .frontend-admin-bar .frontend-admin-bar-views,
html[lang="dv"] body .frontend-admin-bar .frontend-admin-bar-comments-count {
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
}

html[lang="dv"] body .breaking-news-badge {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.site-newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2.75rem;
  padding: 1.7rem 0;
  color: #fff;
  background:
    radial-gradient(ellipse 42% 140% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 58%),
    linear-gradient(105deg, #243fb0 0%, #3050d1 46%, #5b78ef 100%);
}

.site-newsletter::before {
  content: "";
  position: absolute;
  inset: -50% -15%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.2) 50%, transparent 62%);
  animation: footer-news-sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.site-newsletter + .site-footer {
  margin-top: 0;
}

.footer-news {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-news-copy {
  min-width: 0;
  flex: 1 1 16rem;
}

.footer-news-kicker {
  margin: 0 0 0.35rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.footer-news-title {
  margin: 0;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.45;
  color: #fff;
}

.footer-news-lead {
  margin: 0.35rem 0 0;
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

html[lang="en"] .footer-news-lead {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
}

.footer-news-action {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 22rem;
  justify-content: flex-end;
}

.footer-news-field {
  flex: 1 1 16rem;
  min-width: 0;
}

.footer-news-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.footer-news-field input {
  width: 100%;
  height: 52px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #141820;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-news-field input::placeholder {
  color: #8b93a7;
}

.footer-news-field input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.footer-news-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.footer-news-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 52px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #3050d1;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-synthesis: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(12, 22, 64, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[lang="en"] .footer-news-submit {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.footer-news-submit svg {
  transition: transform 0.2s ease;
}

html[dir="rtl"] .footer-news-submit svg {
  transform: scaleX(-1);
}

.footer-news-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(48, 80, 209, 0.5);
}

.footer-news-submit:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .footer-news-submit:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.footer-news-submit:disabled {
  cursor: wait;
  opacity: 0.8;
}

.footer-news.is-done .footer-news-submit {
  background: linear-gradient(180deg, #3ecf8e, #14915a);
  box-shadow: 0 10px 24px rgba(20, 145, 90, 0.35);
}

.footer-news-msg {
  flex: 1 1 100%;
  margin: 0;
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #d7ffe9;
}

html[lang="en"] .footer-news-msg {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.footer-news-msg.is-error {
  color: #ffd0d0;
}

html[lang="dv"] body .footer-news-kicker,
html[lang="dv"] body .footer-news-field input,
html[lang="en"] .footer-news-kicker,
html[lang="en"] .footer-news-field input {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

html[lang="dv"] body .footer-news-field input:placeholder-shown {
  direction: rtl;
  text-align: right;
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
}

html[lang="dv"] body .footer-news-field input:not(:placeholder-shown) {
  direction: ltr;
  text-align: left;
}

.newsletter-left {
  max-width: 40rem;
  margin: 3rem auto 4rem;
  padding: 2rem 1.4rem;
}

.newsletter-left-kicker {
  margin: 0 0 0.4rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3050d1;
}

.newsletter-left h1 {
  margin: 0 0 0.6rem;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 36px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.45;
}

html[lang="en"] .newsletter-left h1 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 32px;
  font-weight: 600;
}

.newsletter-left p {
  margin: 0 0 1.2rem;
  font-family: "MV Faseyha", Faruma, "Noto Sans Thaana", sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

html[lang="en"] .newsletter-left p {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

.newsletter-left-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: #3050d1;
  color: #fff;
  text-decoration: none;
  font-family: "Waheed", "MV Waheed", sans-serif;
  font-size: 18px;
}

html[lang="en"] .newsletter-left-home {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

@keyframes footer-news-sheen {
  0% { transform: translateX(-18%); }
  50% { transform: translateX(18%); }
  100% { transform: translateX(-18%); }
}

@media (max-width: 800px) {
  .footer-news,
  .footer-news-action {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-news-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-newsletter::before,
  .footer-news::before,
  .footer-news-submit,
  .footer-news-submit svg {
    animation: none;
    transition: none;
  }
}

.header-today-search {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  flex: none;
}
.header-today { position: relative; flex: none; }
.header-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font: inherit;
}
.header-today-btn:focus-visible {
  outline: 2px solid #3050d1;
  outline-offset: 2px;
}
.header-today-count {
  box-sizing: border-box;
  flex: none;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3050d1;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
}
.header-today-label {
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.35;
  white-space: nowrap;
  transform: translateY(1px);
}
html[lang="en"] .header-today-label {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: none;
}
.header-today-btn:hover .header-today-count,
.header-today.is-open .header-today-count {
  background: #243eae;
  color: #fff;
}
.header-today-btn:hover .header-today-label,
.header-today.is-open .header-today-label { color: #3050d1; }
html[data-theme="dark"] .header-today-label { color: #c5c8ce; }
html[data-theme="dark"] .header-today-btn:hover .header-today-label,
html[data-theme="dark"] .header-today.is-open .header-today-label { color: #c5d0ff; }

/* Homepage headline ticker — brand blue, logo between stories */
.news-ticker {
  position: relative;
  overflow: hidden;
  direction: ltr;
  background: #3050d1;
  border-radius: 14px;
  margin: 22px 0 8px;
  padding: 11px 0;
}
.news-ticker-track {
  display: flex;
  width: max-content;
  animation: news-ticker-slide 90s linear infinite;
  will-change: transform;
}
.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track {
  animation-play-state: paused;
}
.news-ticker-set {
  display: flex;
  align-items: center;
  flex: none;
}
.news-ticker-item {
  display: inline-flex;
  align-items: center;
  margin: 0 14px;
  direction: rtl;
}
.news-ticker-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: "Randhoo", "MV Typewriter", "Waheed", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  direction: rtl;
  transition: color 0.18s ease;
}
.news-ticker-item a:hover,
.news-ticker-item a:focus-visible {
  color: #fff;
}
.news-ticker-mark {
  display: block;
  height: 18px;
  width: auto;
  max-width: none;
  margin: 0 16px;
  flex: none;
  object-fit: contain;
}
.news-ticker::before,
.news-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.news-ticker::before {
  left: 0;
  background: linear-gradient(to right, #3050d1, transparent);
  border-radius: 14px 0 0 14px;
}
.news-ticker::after {
  right: 0;
  background: linear-gradient(to left, #3050d1, transparent);
  border-radius: 0 14px 14px 0;
}
html[lang="en"] .news-ticker-item,
html[lang="en"] .news-ticker-item a {
  direction: ltr;
}
html[lang="en"] .news-ticker-item a {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
@keyframes news-ticker-slide {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (max-width: 640px) {
  .news-ticker {
    border-radius: 12px;
    margin-top: 14px;
  }
  .news-ticker-item { margin: 0 10px; }
  .news-ticker-item a { font-size: 15px; }
  .news-ticker-mark { height: 15px; margin: 0 10px; }
  .news-ticker::before,
  .news-ticker::after { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker { overflow-x: auto; }
  .news-ticker-track { animation: none; }
}
.header-today-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 8px;
}
html[dir="rtl"] .header-today-menu { direction: rtl; text-align: right; }
html[dir="ltr"] .header-today-menu { direction: ltr; text-align: left; }
.header-today.is-open .header-today-menu { animation: header-today-in 0.18s ease; }
.header-today-menu[hidden] { display: none !important; }
.header-today-date {
  position: relative;
  display: flex;
  align-items: center;
  direction: rtl;
  unicode-bidi: isolate;
  gap: 12px;
  margin: 4px 4px 8px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(48, 80, 209, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #f3f6ff 0%, #fff 72%);
}
.header-today-date::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, 0.72) 50%, transparent 72%);
  transform: translateX(130%);
  pointer-events: none;
}
.header-today.is-open .header-today-date::after {
  animation: header-date-shine 0.95s ease 0.12s both;
}
.header-today-date-day {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #3050d1;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(48, 80, 209, 0.28);
}
.header-today-date-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.header-today-date-month {
  font-family: "Waheed", "MV Faseyha", var(--font-dhivehi), sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #1d2327;
}
.header-today-date-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.header-today-date-week {
  font-family: "Waheed", "MV Faseyha", var(--font-dhivehi), sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #3050d1;
}
.header-today-date-year {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #8b909a;
  font-variant-numeric: tabular-nums;
}
html[lang="en"] .header-today-date { direction: ltr; }
html[lang="en"] .header-today-date-month,
html[lang="en"] .header-today-date-week {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}
html[lang="en"] .header-today-date-month { font-size: 15px; }
html[lang="en"] .header-today-date-week { font-size: 12px; }
.header-today.is-open .header-today-date-day {
  animation: header-date-pop 0.42s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}
.header-today.is-open .header-today-date-month,
.header-today.is-open .header-today-date-meta {
  animation: header-date-rise 0.46s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.header-today.is-open .header-today-date-month { animation-delay: 0.06s; }
.header-today.is-open .header-today-date-meta { animation-delay: 0.14s; }
html[data-theme="dark"] .header-today-date {
  background: linear-gradient(135deg, rgba(48, 80, 209, 0.28), rgba(28, 33, 40, 0.2));
  border-color: rgba(140, 160, 255, 0.22);
}
html[data-theme="dark"] .header-today-date-month { color: #f3f4f6; }
html[data-theme="dark"] .header-today-date-week { color: #c5d0ff; }
html[data-theme="dark"] .header-today-date-year { color: #9aa3b2; }
html[data-theme="dark"] .header-today-date::after {
  background: linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, 0.16) 50%, transparent 72%);
}
@keyframes header-date-pop {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: none; }
}
@keyframes header-date-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes header-date-shine {
  from { transform: translateX(130%); }
  to { transform: translateX(-130%); }
}
@media (prefers-reduced-motion: reduce) {
  .header-today.is-open .header-today-date::after,
  .header-today.is-open .header-today-date-day,
  .header-today.is-open .header-today-date-month,
  .header-today.is-open .header-today-date-meta {
    animation: none;
  }
}
.header-today-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid #f0f0f1;
}
.header-today-menu-head strong {
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 18px;
  font-weight: 400;
  color: #1d2327;
}
html[lang="en"] .header-today-menu-head strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.header-today-menu-head span {
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef1ff;
  color: #3050d1;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-today-empty {
  margin: 0;
  padding: 16px 12px 14px;
  color: #1d2327;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}
html[lang="en"] .header-today-empty {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
}
html[data-theme="dark"] .header-today-empty { color: #f3f4f6; }
.header-today-list { list-style: none; margin: 6px 0 0; padding: 0; }
.header-today-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.header-today-list a:hover { background: #f4f6ff; }
.header-today-list img,
.header-today-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #f0f0f1;
}
.header-today-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.header-today-title {
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 16px;
  line-height: 1.35;
  color: #1d2327;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[lang="en"] .header-today-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.header-today-copy time { font-size: 12px; color: #3050d1; font-weight: 600; }
html[data-theme="dark"] .header-today-menu { background: #1c2128; border-color: #2a3038; }
html[data-theme="dark"] .header-today-menu-head { border-bottom-color: #2a3038; }
html[data-theme="dark"] .header-today-menu-head strong,
html[data-theme="dark"] .header-today-title { color: #f3f4f6; }
html[data-theme="dark"] .header-today-list a:hover { background: #262c36; }
html[data-theme="dark"] .header-today-count {
  background: #3050d1;
  color: #fff;
  box-shadow: none;
}
@keyframes header-today-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.header-today-otd-head { margin-top: 4px; }
.header-today-otd-head a {
  color: #3050d1;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 15px;
  text-decoration: none;
}
html[lang="en"] .header-today-otd-head a {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.header-today-otd-head a:hover { text-decoration: underline; }
.header-today-year {
  flex: none;
  min-width: 46px;
  padding: 4px 0;
  border-radius: 8px;
  background: #eef1ff;
  color: #3050d1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  direction: ltr;
}
.header-today.is-open .header-today-list li {
  animation: header-today-row 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes header-today-row {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
html[data-theme="dark"] .header-today-thumb { background: #2a3038; }
html[data-theme="dark"] .header-today-year { background: #243049; color: #c5d0ff; }
html[data-theme="dark"] .header-today-otd-head a { color: #9eb0f5; }
@media (prefers-reduced-motion: reduce) {
  .header-today.is-open .header-today-menu { animation: none; }
  .header-today.is-open .header-today-list li { animation: none; }
}

/* On this day archive — year rail and story cards */
.otd-board {
  background:
    radial-gradient(circle at 50% 0%, rgba(48, 80, 209, 0.06), transparent 28%),
    #f6f7fb;
  padding: 28px var(--site-gutter) 48px;
}
.otd-board-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto 28px;
  text-align: center;
}
.otd-board-date {
  margin: 0;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 22px;
  line-height: 1.3;
  color: #1d2327;
}
html[lang="en"] .otd-board-date {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.otd-board-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e8ee;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  color: #243044;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 18px;
  line-height: 1;
}
html[lang="en"] .otd-board-pill {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.otd-board-pill svg { color: #3050d1; flex: none; }
.otd-board-mark {
  display: inline-flex;
  color: #9aa0a6;
}
.otd-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  direction: ltr;
}
.otd-board-stories { grid-column: 1; min-width: 0; }
.otd-board-years {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 16px;
}
.otd-year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: rtl;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(226, 228, 234, 0.9);
  border-radius: 16px;
  background: transparent;
  color: #1d2327;
  cursor: pointer;
  text-align: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.otd-year strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  direction: ltr;
}
.otd-year small {
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 13px;
  line-height: 1.3;
  color: #6b7280;
}
html[lang="en"] .otd-year small {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
}
.otd-year:hover { border-color: #c5c9d4; background: rgba(255, 255, 255, 0.7); }
.otd-year.is-active {
  background: linear-gradient(160deg, #3d5fe0 0%, #3050d1 52%, #243eae 100%);
  border-color: #243eae;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 14px 28px rgba(48, 80, 209, 0.32);
  z-index: 1;
}
.otd-year.is-active small { color: rgba(255, 255, 255, 0.82); }
.otd-year-panel { display: none; }
.otd-year-panel.is-active { display: block; }
.otd-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.otd-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.otd-year-panel.is-active .otd-story {
  animation: otd-story-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.otd-story::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #243eae, #3050d1 45%, #7d93f0);
}
.otd-story:hover {
  transform: translateY(-4px);
  border-color: #b7c2ea;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}
.otd-story-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef0f4;
}
.otd-story-photo img,
.otd-story-fallback {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.otd-story:hover .otd-story-photo img { transform: scale(1.08); }
.otd-story-fallback {
  background: linear-gradient(145deg, #3050d1, #1a2f8f);
}
.otd-story-cat {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  max-width: calc(100% - 20px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #3050d1;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="en"] .otd-story-cat {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.otd-story-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 12px 12px 10px;
}
.otd-story-title {
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 17px;
  line-height: 1.45;
  color: #1d2327;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[lang="en"] .otd-story-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.otd-story-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #8b919a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.otd-story-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}
.otd-story-foot time { direction: ltr; white-space: nowrap; }
.otd-board[dir="rtl"] .otd-story-body,
.otd-board[dir="rtl"] .otd-story-title,
.otd-board[dir="rtl"] .otd-story-cat { direction: rtl; text-align: right; }
.otd-board[dir="ltr"] .otd-story-body,
.otd-board[dir="ltr"] .otd-story-title { direction: ltr; text-align: left; }
.otd-board-empty {
  margin: 24px auto;
  text-align: center;
  color: #6b7280;
  font-family: "Waheed", "MV Typewriter", serif;
  font-size: 18px;
}
@keyframes otd-story-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html[data-theme="dark"] .otd-board { background: #12161c; }
html[data-theme="dark"] .otd-board-date,
html[data-theme="dark"] .otd-story-title,
html[data-theme="dark"] .otd-year { color: #f3f4f6; }
html[data-theme="dark"] .otd-board-pill,
html[data-theme="dark"] .otd-story { background: #1c2128; border-color: #2a3038; color: #f3f4f6; }
html[data-theme="dark"] .otd-year { border-color: #2a3038; }
html[data-theme="dark"] .otd-year small { color: #9aa0a6; }
html[data-theme="dark"] .otd-year.is-active,
html[data-theme="dark"] .otd-year.is-active small { color: #fff; }
html[data-theme="dark"] .otd-story-photo { background: #2a3038; }
@media (max-width: 980px) {
  .otd-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .otd-board-layout { grid-template-columns: 1fr; gap: 14px; }
  .otd-board-stories, .otd-board-years { grid-column: auto; }
  .otd-board-years {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .otd-year { min-width: 112px; width: auto; flex: none; }
  .otd-year.is-active { transform: none; }
  .otd-story-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .otd-year-panel.is-active .otd-story,
  .otd-story,
  .otd-story-photo img,
  .otd-year { animation: none; transition: none; }
}

/* Homepage On this day — year photo cards */
.otd-home.otd-film-section {
  margin-top: 1.35rem;
  padding: 0.35rem 0 1.4rem;
  background: transparent;
  border-top: 0;
}

.otd-film-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.35rem;
}

.otd-film-title {
  display: inline-flex;
  margin: 0 0 4px;
  padding-bottom: 2px;
  border-bottom: 4px solid var(--color-primary);
  color: var(--color-text);
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
}

.otd-film-date {
  margin: 4px 0 0;
  color: #6b7280;
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}

html[data-theme="dark"] .otd-film-date {
  color: #9aa3b2;
}

.otd-film-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4b5563;
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.otd-film-all:hover {
  color: var(--color-primary);
}

.otd-film-section[dir="rtl"] .otd-film-all svg {
  transform: scaleX(-1);
}

.otd-film {
  position: relative;
}

.otd-film-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.otd-film-track::-webkit-scrollbar {
  display: none;
}

.otd-film-card {
  position: relative;
  flex: 0 0 calc((100% - 60px) / 4);
  width: calc((100% - 60px) / 4);
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #111318;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
  transition: box-shadow 0.3s ease;
}

.otd-film-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.otd-film-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.otd-film-card:hover .otd-film-photo {
  transform: scale(1.1);
}

.otd-film-photo-empty {
  background: linear-gradient(160deg, #1c2433, #0e1218);
}

.otd-film-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.otd-film-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
}

.otd-film-year {
  align-self: flex-start;
  min-width: 74px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  text-align: center;
}

.otd-film-year-num {
  display: block;
  color: #fff;
  font-family: var(--font-sans), sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.otd-film-year-ago {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.otd-film-cat {
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 0.875rem;
  line-height: 1.3;
}

.otd-film-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #fff;
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
}

.otd-film-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}

.otd-film-section[dir="ltr"] .otd-film-prev { left: 12px; }
.otd-film-section[dir="ltr"] .otd-film-next { right: 12px; }
.otd-film-section[dir="rtl"] .otd-film-prev { right: 12px; }
.otd-film-section[dir="rtl"] .otd-film-next { left: 12px; }
.otd-film-section[dir="rtl"] .otd-film-nav svg { transform: scaleX(-1); }

@media (min-width: 768px) {
  .otd-film-nav { display: flex; }
}

@media (max-width: 980px) {
  .otd-film-card {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .otd-film-card {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otd-film-photo,
  .otd-film-card,
  .otd-film-track { transition: none; scroll-behavior: auto; }
  .otd-film-card:hover .otd-film-photo { transform: none; }
}

/* Header menu — story panel on hover */
.nav-item-has-stories {
  position: relative;
}
.nav-item-has-stories::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
}
.nav-item-has-stories:hover > a,
.nav-item-has-stories:focus-within > a {
  color: #3050d1;
}
.nav-story-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 240;
  width: min(430px, 70vw);
  padding: 6px 4px;
  border: 1px solid rgba(20, 24, 40, 0.06);
  border-radius: 22px;
  background: var(--color-bg);
  box-shadow: 0 18px 44px rgba(20, 24, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-item-has-stories:hover .nav-story-menu,
.nav-item-has-stories:focus-within .nav-story-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.nav-story-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-story-menu li + li {
  border-top: 1px solid rgba(20, 24, 40, 0.08);
}
.nav-story-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  padding: 12px 14px;
  white-space: normal;
  text-decoration: none;
  border-radius: 14px;
}
.nav-story-menu a:hover {
  background: rgba(48, 80, 209, 0.06);
  color: inherit;
}
.nav-story-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}
.nav-story-copy time {
  display: block;
  margin-bottom: 4px;
  color: #9a9a9a;
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "Waheed", "MV Faseyha", var(--font-dhivehi), sans-serif;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}
.nav-story-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #2c2c2c;
  font-family: "Waheed", "MV Waheed", var(--font-dhivehi), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}
.nav-story-menu img,
.nav-story-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  max-width: none;
  border-radius: 12px;
  object-fit: cover;
  background: #e7e5e1;
}
html[data-theme="dark"] .nav-story-menu {
  background: var(--color-bg);
  border-color: #2a3038;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .nav-story-menu li + li {
  border-top-color: #2a3038;
}
html[data-theme="dark"] .nav-story-title {
  color: #f3f4f6;
}
html[data-theme="dark"] .nav-story-thumb,
html[data-theme="dark"] .nav-story-menu img {
  background: #2a3038;
}
html[data-theme="dark"] .nav-story-menu a:hover {
  background: rgba(48, 80, 209, 0.16);
}
.main-nav[dir="ltr"] .nav-story-menu {
  right: auto;
  left: 0;
}
.main-nav[dir="ltr"] .nav-story-menu a {
  direction: ltr;
}
.main-nav[dir="ltr"] .nav-story-copy {
  text-align: left;
}
@media (max-width: 960px) {
  .nav-story-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-story-menu { transition: none; }
}

/* Live blogs */
.lb-page {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 64px;
}
.lb-page-head { text-align: center; margin-bottom: 18px; }
.lb-brand {
  margin: 0 0 22px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.lb-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.lb-kicker {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.lb-page-head h1 {
  margin: 0;
  font-family: "MV Waheed", "Faruma", sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
}
.lb-empty { text-align: center; color: #6b7280; padding: 32px 0; }
.lb-feature,
.lb-card {
  display: block;
  background: var(--color-bg);
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lb-feature:hover,
.lb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.lb-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  margin-bottom: 22px;
}
.lb-feature-media,
.lb-card-media {
  position: relative;
  display: block;
  background: #111827;
  overflow: hidden;
}
.lb-feature-media { min-height: 280px; }
.lb-card-media { aspect-ratio: 16 / 9; }
.lb-feature-media img,
.lb-card-media img,
.lb-photo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  transition: transform 0.45s ease;
}
.lb-feature:hover img,
.lb-card:hover img { transform: scale(1.04); }
.lb-photo-fallback {
  background: linear-gradient(145deg, #1e293b, #3050d1);
}
.lb-datechip {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.lb-datechip span {
  display: block;
  background: #3050d1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 0 2px;
}
.lb-datechip strong {
  display: block;
  color: #111827;
  font-size: 22px;
  line-height: 1.15;
  padding: 4px 0 6px;
}
.lb-live-flag {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: #3050d1;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.lb-feature-copy,
.lb-card-copy { display: block; padding: 22px 22px 18px; }
.lb-feature-copy h2,
.lb-card-copy h3 {
  margin: 0 0 10px;
  font-family: "MV Waheed", "Faruma", sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: #374151;
}
.lb-feature-copy h2 { font-size: 30px; }
.lb-card-copy h3 {
  font-size: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lb-feature-copy p,
.lb-card-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lb-meta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  color: #6b7280;
  font-size: 13px;
}
.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lb-story {
  width: min(760px, calc(100% - 32px));
  margin: 22px auto 72px;
}
.lb-back {
  display: inline-flex;
  margin-bottom: 16px;
  color: #3050d1;
  text-decoration: none;
  font-size: 14px;
}
.lb-story-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lb-live-pill,
.lb-ended-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.lb-live-pill { background: rgba(48, 80, 209, 0.1); color: #3050d1; }
.lb-live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3050d1;
  box-shadow: 0 0 0 0 rgba(48, 80, 209, 0.6);
  animation: lb-pulse 1.6s ease-out infinite;
}
.lb-ended-pill { background: #f3f4f6; color: #4b5563; }
.lb-share-row { display: flex; gap: 8px; }
.lb-share {
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
.lb-share.is-copied { background: #3050d1; }
.lb-story-head h1 {
  margin: 0 0 12px;
  font-family: "MV Waheed", "Faruma", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.35;
}
.lb-lead {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
}
.lb-story-meta {
  display: flex;
  gap: 16px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}
.lb-hero { margin: 18px 0 8px; border-radius: 16px; overflow: hidden; }
.lb-hero img { width: 100%; height: auto; display: block; }
.lb-timeline { position: relative; margin-top: 8px; }
.lb-entry { position: relative; padding-bottom: 8px; }
.lb-entry-time {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  position: relative;
}
.lb-entry-time i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #3050d1;
  background: var(--color-bg);
  box-shadow: inset 0 0 0 4px var(--color-bg), inset 0 0 0 9px #3050d1;
  flex: 0 0 20px;
  position: relative;
  z-index: 1;
}
.lb-entry-time::before {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  top: 0;
  bottom: -8px;
  width: 2px;
  background: #e5e7eb;
}
.lb-entry:last-child .lb-entry-time::before { bottom: 50%; }
.lb-entry-time time {
  font-family: "MV Randhoo", "Faruma", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}
.lb-pin {
  background: rgba(48, 80, 209, 0.12);
  color: #3050d1;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.lb-entry-card {
  margin-inline-start: 32px;
  margin-bottom: 8px;
  background: var(--color-bg);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 22px 24px 20px;
}
.lb-entry-card h2 {
  margin: 0 0 12px;
  font-family: "MV Waheed", "Faruma", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.55;
  color: #374151;
}
.lb-entry-body p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
}
.lb-entry-body p:last-child { margin-bottom: 0; }
.lb-entry-body ul, .lb-entry-body ol { margin: 0 0 12px; padding-inline-start: 1.3em; }
.lb-entry-body blockquote {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-inline-start: 3px solid #3050d1;
  color: #1f2937;
}
.lb-entry-body a { color: #3050d1; }
.lb-entry-body img { max-width: 100%; border-radius: 12px; }
.lb-entry.is-correction .lb-entry-card { border-color: #f59e0b; }
.lb-entry.is-quote .lb-entry-card { background: #f8fafc; }
.lb-entry.is-key .lb-type { background: #3050d1; color: #fff; }
.lb-entry-photo,
.lb-entry-video,
.lb-embed {
  width: 100%;
  margin-top: 14px;
  border-radius: 12px;
}
.lb-entry-photo,
.lb-entry-video { display: block; height: auto; }
.lb-embed { position: relative; padding-top: 56.25%; }
.lb-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.lb-entry.is-new .lb-entry-card { animation: lb-in 0.45s ease; }
@keyframes lb-pulse {
  70% { box-shadow: 0 0 0 8px rgba(48, 80, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 80, 209, 0); }
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
html[data-theme="dark"] .lb-feature,
html[data-theme="dark"] .lb-card,
html[data-theme="dark"] .lb-entry-card {
  background: var(--color-card-bg);
  border-color: #2a3038;
}
html[data-theme="dark"] .lb-feature-copy h2,
html[data-theme="dark"] .lb-card-copy h3,
html[data-theme="dark"] .lb-story-head h1,
html[data-theme="dark"] .lb-entry-card h2,
html[data-theme="dark"] .lb-lead,
html[data-theme="dark"] .lb-entry-body p,
html[data-theme="dark"] .lb-entry-time time { color: #f3f4f6; }
html[data-theme="dark"] .lb-feature-copy p,
html[data-theme="dark"] .lb-card-copy p,
html[data-theme="dark"] .lb-meta,
html[data-theme="dark"] .lb-story-meta { color: #9ca3af; }
html[data-theme="dark"] .lb-meta,
html[data-theme="dark"] .lb-entry-card { border-color: #2a3038; }
html[data-theme="dark"] .lb-datechip strong { color: #111827; }
@media (max-width: 860px) {
  .lb-feature,
  .lb-grid { grid-template-columns: 1fr; }
  .lb-feature-copy h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-live-pill i,
  .lb-entry.is-new .lb-entry-card,
  .lb-feature,
  .lb-card,
  .lb-feature-media img,
  .lb-card-media img { animation: none; transition: none; }
}



