/* Shared design tokens and global foundations. */

:root {
  --elbi-blue: #0b4eaa;
  --elbi-blue-dark: #083b80;
  --elbi-red: #a13c44;
  --elbi-red-dark: #813036;
  --elbi-red-soft: #f8eff0;
  --elbi-red-border: #e7cace;
  --elbi-charcoal: #15171a;
  --elbi-text: #15171a;
  --elbi-muted: #667085;
  --elbi-border: #e4e7ec;
  --elbi-soft: #f5f6f8;
  --elbi-white: #ffffff;
  --elbi-radius: 6px;
  --elbi-radius-sm: 6px;
  --elbi-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  --elbi-shadow-card: 0 2px 7px rgba(16, 24, 40, 0.07);
  --elbi-container: 1320px;
  --elbi-page-gutter: 24px;
  --elbi-section-gap: 32px;
  --elbi-section-gap-mobile: 22px;
  --elbi-section-padding: 20px;
  --elbi-heading-gap: 16px;
  --elbi-card-gap: 20px;
  --elbi-row-gap: 12px;
  --elbi-font-arabic: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

@media screen and (max-width: 1279px) { :root { --elbi-page-gutter: 22px; } }
@media screen and (max-width: 1024px) { :root { --elbi-page-gutter: 18px; } }
@media screen and (max-width: 768px) { :root { --elbi-page-gutter: 16px; } }

/* Global foundations */
body {
  background: var(--elbi-soft);
  color: var(--elbi-text);
  font-family: var(--elbi-font-arabic);
  font-size: 15px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea,
.font-family-1,
.font-family-2 {
  font-family: var(--elbi-font-arabic);
}

a,
a:visited {
  color: inherit;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--elbi-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.main-navigation a:focus-visible {
  outline: 2px solid var(--elbi-red);
  outline-offset: 3px;
}

/* Keep standard ReviewNews pages aligned without changing Elementor layouts. */
body:not(.elementor-page):not(.elementor-default) .container-wrapper {
  box-sizing: border-box;
  width: min(calc(100% - 40px), var(--elbi-container));
  max-width: var(--elbi-container);
  margin-right: auto;
  margin-left: auto;
}

@media screen and (max-width: 768px) {
  body:not(.elementor-page):not(.elementor-default) .container-wrapper {
    width: min(calc(100% - 28px), var(--elbi-container));
  }
}

@media screen and (max-width: 480px) {
  body:not(.elementor-page):not(.elementor-default) .container-wrapper {
    width: min(calc(100% - 24px), var(--elbi-container));
  }
}
