
/* ===== DhivehiFont v3: Always-on RTL for widgets, with LTR opt-out ===== */
:where(html[dir="rtl"], body.dhf-rtl) .widget,
:where(html[dir="rtl"], body.dhf-rtl) .widget-area,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-widget-area,
:where(html[dir="rtl"], body.dhf-rtl) aside.widget,
:where(html[dir="rtl"], body.dhf-rtl) .sidebar {
  direction: rtl !important;
  text-align: right !important;
}

:where(html[dir="rtl"], body.dhf-rtl) .widget-area ul,
:where(html[dir="rtl"], body.dhf-rtl) .widget-area ol,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-widget-area ul,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-widget-area ol,
:where(html[dir="rtl"], body.dhf-rtl) .widget ul,
:where(html[dir="rtl"], body.dhf-rtl) .widget ol {
  list-style: none !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

:where(html[dir="rtl"], body.dhf-rtl) .widget li::marker { content: "" !important; }
:where(html[dir="rtl"], body.dhf-rtl) .widget li::before,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-widget-area li::before {
  content: "•" !important;
  background: none !important;
  width: auto !important; height: auto !important;
  border: 0 !important;
  color: currentColor;
  position: absolute;
  inset-inline-end: 0 !important;
  inset-inline-start: auto !important;
  left: auto !important; right: 0 !important;
  top: 0.55em;
  line-height: 1;
  font-weight: 700;
}

:where(html[dir="rtl"], body.dhf-rtl) .widget li {
  position: relative;
  padding-inline-end: 16px !important;
  padding-inline-start: 0 !important;
}

:where(html[dir="rtl"], body.dhf-rtl) .widget-title,
:where(html[dir="rtl"], body.dhf-rtl) .widget .title,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-heading {
  text-align: right !important;
}

:where(html[dir="rtl"], body.dhf-rtl) .widget_search form,
:where(html[dir="rtl"], body.dhf-rtl) .wp-block-search__inside-wrapper { direction: rtl !important; }

.widget.dhf-left, .widget.dhf-left * { direction:ltr !important; text-align:left !important; }
.widget.dhf-left li { padding-inline-start:16px !important; padding-inline-end:0 !important; }
.widget.dhf-left li::before { inset-inline-start:0 !important; inset-inline-end:auto !important; right:auto !important; left:0 !important; }
