/*
 * 02 base: tokens, the scoped reset, type, buttons, layout, shared parts.
 * Every selector lives under .se-ir (npm run check:scope). Tokens and their sources: brand/brand-tokens.md.
 */
.se-ir {
  /* Elsewedy red: elsewedyelectric.com css/style.css :root --base-color #d71921 (logo arc #D7181F) */
  --se-red: #d71921;
  /* pressed/hover red: elsewedyelectric.com inline style, #b3000a */
  --se-red-deep: #b3000a;
  --se-red-tint: #fbe8e9;
  /* text: style.css .text-extra-dark-gray #232323 */
  --se-ink: #232323;
  /* secondary text: style.css body (commented) / inline #6f6f6f, AA on white and mist */
  --se-ink-2: #5f5f5f;
  /* style.css .text-medium-gray #939393: decorative only (rules, disabled) */
  --se-grey: #939393;
  /* style.css .bg-medium-gray #dbdbdb */
  --se-line: #dbdbdb;
  --se-line-soft: #e9e9e9;
  /* style.css .bg-light-gray #f7f7f7, and the business-line cards #ededed */
  --se-mist: #f7f7f7;
  --se-cloud: #ededed;
  /* style.css .bg-extra-dark-gray #383838 (footer, ESG band) and its commented #1c1c1c */
  --se-char: #383838;
  --se-night: #1c1c1c;
  --se-white: #fff;
  /* functional, not in the corporate palette: AA on white and on mist */
  --se-up: #11734f;
  --se-down: #b3000a;
  --se-up-dark: #6fdcae;
  --se-down-dark: #ff8a8f;
  /* footprint categories: the corporate globe legend (elsewedyelectric.com home, .globe-legend-btn) */
  --se-map-factories: #ef9f27;
  --se-map-projects: #378add;
  --se-map-offices: #1d9e75;
  --se-map-exports: #e24b4a;

  --se-radius: 20px;
  --se-radius-s: 12px;
  --se-wrap: 1200px;
  --se-gutter: 40px;
  --se-shadow: 0 18px 50px rgba(28, 28, 28, 0.12);
  --se-shadow-s: 0 6px 20px rgba(28, 28, 28, 0.08);
  --se-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --se-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --se-font-latin: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  font-family: var(--se-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--se-ink);
  background: var(--se-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'lnum' 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.se-ir[dir='rtl'] {
  --se-font: 'Cairo', 'Montserrat', Tahoma, sans-serif;
  line-height: 1.8;
}

/* the scoped reset (enumerable: box sizing, margins, media, form fonts, links, lists) */
.se-ir *, .se-ir *::before, .se-ir *::after { box-sizing: border-box; }
.se-ir h1, .se-ir h2, .se-ir h3, .se-ir h4, .se-ir p, .se-ir figure, .se-ir blockquote, .se-ir dl, .se-ir dd, .se-ir ul, .se-ir ol { margin: 0; }
.se-ir ul, .se-ir ol { padding: 0; list-style: none; }
.se-ir img, .se-ir svg { display: block; max-width: 100%; }
.se-ir img { height: auto; }
.se-ir button, .se-ir input, .se-ir select, .se-ir textarea { font: inherit; color: inherit; }
.se-ir button { cursor: pointer; }
.se-ir a { color: inherit; text-decoration: none; }
.se-ir table { border-collapse: collapse; width: 100%; }
.se-ir :focus-visible { outline: 3px solid var(--se-red); outline-offset: 3px; border-radius: 4px; }
.se-ir .se-dark :focus-visible, .se-ir .se-on-dark:focus-visible { outline-color: #fff; }
.se-ir [hidden] { display: none !important; }
.se-ir .se-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.se-ir .se-skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; background: var(--se-red); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.se-ir .se-skip:focus { top: 12px; }

/* Latin runs inside Arabic pages: tickers, ISINs, prices, periods keep Montserrat and LTR */
.se-ir .se-latin, .se-ir .se-num { font-family: var(--se-font-latin); font-variant-numeric: tabular-nums lining-nums; }
.se-ir[dir='rtl'] .se-latin { direction: ltr; unicode-bidi: isolate; }
.se-ir .se-ltr { direction: ltr; unicode-bidi: isolate; }

/* layout */
.se-ir .se-wrap { width: 100%; max-width: calc(var(--se-wrap) + 2 * var(--se-gutter)); margin-inline: auto; padding-inline: var(--se-gutter); }
.se-ir .se-narrow { max-width: calc(880px + 2 * var(--se-gutter)); }
.se-ir main { flex: 1 0 auto; }
.se-ir .se-sec { padding-block: 96px; position: relative; }
.se-ir .se-sec-tight { padding-block: 64px; }
.se-ir .se-sec-mist { background: var(--se-mist); }
.se-ir .se-sec-dark { background: var(--se-char); color: #fff; }
.se-ir .se-sec-night { background: var(--se-night); color: #fff; }
.se-ir .se-sec:not(.se-sec-mist):not(.se-sec-dark):not(.se-sec-night) + .se-sec:not(.se-sec-mist):not(.se-sec-dark):not(.se-sec-night) { padding-top: 0; }
.se-ir .se-sec-mist + .se-sec-mist { padding-top: 0; }

/* type */
.se-ir .se-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--se-red);
  line-height: 1.4;
}
.se-ir .se-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.se-ir .se-dark .se-eyebrow, .se-ir .se-sec-dark .se-eyebrow, .se-ir .se-sec-night .se-eyebrow { color: #ff9ea2; }
.se-ir[dir='rtl'] .se-eyebrow { letter-spacing: 0; font-size: 14px; font-weight: 700; }

.se-ir .se-h2 {
  font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em;
  text-transform: uppercase; margin-top: 14px;
}
.se-ir .se-h2 .se-thin { font-weight: 300; }
.se-ir .se-h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.se-ir .se-lead { font-size: 19px; line-height: 1.7; color: var(--se-ink-2); font-weight: 400; }
.se-ir .se-sec-dark .se-lead, .se-ir .se-sec-night .se-lead { color: rgba(255, 255, 255, 0.78); }
.se-ir .se-muted { color: var(--se-ink-2); }
.se-ir .se-small { font-size: 13px; line-height: 1.55; }
.se-ir[dir='rtl'] .se-h2 { text-transform: none; letter-spacing: 0; line-height: 1.35; font-size: clamp(28px, 3vw, 38px); }
.se-ir[dir='rtl'] .se-h3 { line-height: 1.5; }
.se-ir[dir='rtl'] .se-lead { line-height: 1.95; font-size: 18px; }
.se-ir .se-prose p + p { margin-top: 1.1em; }
.se-ir .se-prose { font-size: 17px; line-height: 1.8; color: #3d3d3d; }
.se-ir[dir='rtl'] .se-prose { line-height: 2; }

/* section head with the arc: the logo's own red swoosh under the heading */
.se-ir .se-head { margin-bottom: 48px; max-width: 820px; }
.se-ir .se-head-center { margin-inline: auto; text-align: center; }
.se-ir .se-head-center .se-arc { margin-inline: auto; }
.se-ir .se-head .se-lead { margin-top: 18px; }
.se-ir .se-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.se-ir .se-head-row .se-head { margin-bottom: 0; }
.se-ir .se-arc { display: block; width: 74px; height: 10px; margin-top: 18px; color: var(--se-red); overflow: visible; }
.se-ir .se-arc path { fill: currentColor; }
.se-ir[dir='rtl'] .se-arc { transform: scaleX(-1); }

/* buttons: the corporate site's pill */
.se-ir .se-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--se-red);
  background: var(--se-red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.25s var(--se-ease), border-color 0.25s var(--se-ease), color 0.25s var(--se-ease), transform 0.25s var(--se-ease);
  white-space: nowrap;
}
.se-ir .se-btn:hover { background: var(--se-red-deep); border-color: var(--se-red-deep); }
.se-ir .se-btn-ghost { background: transparent; color: var(--se-ink); border-color: var(--se-ink); }
.se-ir .se-btn-ghost:hover { background: var(--se-ink); color: #fff; border-color: var(--se-ink); }
.se-ir .se-btn-light { background: #fff; color: var(--se-ink); border-color: #fff; }
.se-ir .se-btn-light:hover { background: transparent; color: #fff; }
.se-ir .se-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.se-ir .se-btn-outline-light:hover { background: #fff; color: var(--se-ink); border-color: #fff; }
.se-ir .se-btn-s { min-height: 38px; padding: 0 18px; font-size: 12px; }
.se-ir[dir='rtl'] .se-btn { letter-spacing: 0; font-size: 15px; text-transform: none; }
.se-ir .se-btn svg { width: 16px; height: 16px; }
.se-ir[dir='rtl'] .se-flip { transform: scaleX(-1); }

.se-ir .se-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--se-red); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color 0.2s;
}
.se-ir .se-link:hover { border-color: currentColor; }
.se-ir .se-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--se-ease); }
.se-ir .se-link:hover svg { transform: translateX(4px); }
.se-ir[dir='rtl'] .se-link:hover svg { transform: scaleX(-1) translateX(4px); }
.se-ir[dir='rtl'] .se-link { letter-spacing: 0; text-transform: none; font-size: 15px; }
.se-ir .se-sec-dark .se-link, .se-ir .se-sec-night .se-link { color: #fff; }

/* chips and tags */
.se-ir .se-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-family: var(--se-font-latin); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--se-line); color: var(--se-ink); background: #fff; white-space: nowrap; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.se-ir a.se-chip:hover { border-color: var(--se-red); color: var(--se-red); }
.se-ir .se-chip svg { width: 13px; height: 13px; }
.se-ir .se-chip-red { background: var(--se-red); border-color: var(--se-red); color: #fff; }
.se-ir .se-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--se-ink-2);
}
.se-ir[dir='rtl'] .se-tag { letter-spacing: 0; font-size: 13px; }
.se-ir .se-illus {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #fff4d6; color: #6b4a00;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px dashed #c99a2e; white-space: nowrap;
}
.se-ir[dir='rtl'] .se-illus { letter-spacing: 0; font-size: 12px; }

/* change indicator */
.se-ir .se-chg { display: inline-flex; align-items: center; gap: 4px; font-family: var(--se-font-latin); font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.se-ir .se-chg svg { width: 10px; height: 10px; }
.se-ir .se-chg-up { color: var(--se-up); }
.se-ir .se-chg-down { color: var(--se-down); }
.se-ir .se-chg-flat { color: var(--se-ink-2); }

/* cards */
.se-ir .se-card { background: #fff; border-radius: var(--se-radius); border: 1px solid var(--se-line-soft); }
.se-ir .se-sec-mist .se-card { border-color: transparent; }

/* empty state */
.se-ir .se-empty {
  display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 24px; border-radius: var(--se-radius);
  border: 1.5px dashed var(--se-line); background: #fff; color: var(--se-ink-2);
}
.se-ir .se-empty svg { width: 44px; height: 44px; color: var(--se-red); }
.se-ir .se-empty strong { color: var(--se-ink); font-size: 18px; font-weight: 600; }
.se-ir .se-empty p { max-width: 520px; }

/* tables */
.se-ir .se-table-wrap { overflow-x: auto; border-radius: var(--se-radius); border: 1px solid var(--se-line-soft); background: #fff; }
.se-ir .se-table { font-size: 15px; }
.se-ir .se-table caption { text-align: start; padding: 18px 22px 0; font-weight: 600; }
.se-ir .se-table th { text-align: start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--se-ink-2); padding: 16px 22px; border-bottom: 1px solid var(--se-line); white-space: nowrap; background: var(--se-mist); }
.se-ir[dir='rtl'] .se-table th { letter-spacing: 0; font-size: 13.5px; }
.se-ir .se-table td { padding: 15px 22px; border-bottom: 1px solid var(--se-line-soft); vertical-align: top; }
.se-ir .se-table tbody tr:last-child td { border-bottom: 0; }
.se-ir .se-table tbody tr { transition: background 0.2s; }
.se-ir .se-table tbody tr:hover { background: #fcf5f5; }
.se-ir .se-table .se-r { text-align: end; }
.se-ir .se-table th[scope='row'] { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--se-ink); background: transparent; border-bottom-color: var(--se-line-soft); white-space: normal; }

/* reveal on scroll (pure CSS: the class is set by components/ui/reveal.tsx) */
.se-ir.se-js .se-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--se-ease), transform 0.8s var(--se-ease); }
.se-ir.se-js .se-reveal.se-in { opacity: 1; transform: none; }

/* demo ribbon */
.se-ir .se-demo { background: #fff4d6; color: #5a3f00; font-size: 13px; text-align: center; padding: 10px var(--se-gutter); border-top: 1px dashed #c99a2e; }

@media (prefers-reduced-motion: reduce) {
  .se-ir *, .se-ir *::before, .se-ir *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .se-ir .se-reveal { opacity: 1; transform: none; }
}
