.rr-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}

.rr-header {
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  font-family: Rubik, "IBM Plex Sans Arabic", sans-serif;
  color: var(--chrome-text);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.rr-header a:hover:not(.rr-btn):not(.rr-logo) {
  color: inherit;
}

.rr-logo,
.rr-logo:hover,
.rr-logo:focus,
.rr-logo:focus-visible {
  color: inherit;
  background: none;
  outline: none;
  box-shadow: none;
  filter: none;
}

.rr-logo img {
  width: auto;
  object-fit: contain;
}

[data-theme="dark"] .rr-logo img {
  filter: brightness(0) invert(1);
}

.rr-header svg {
  max-width: none;
  flex-shrink: 0;
}

.rr-nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
}

.rr-nav-start {
  display: flex;
  align-items: center;
  justify-self: start;
}

.rr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rr-logo-mobile {
  display: block;
  height: 22px;
  width: 86px;
}

.rr-logo-desktop {
  display: none;
  height: 32px;
  width: 118px;
}

@media (min-width: 768px) {
  .rr-logo-mobile {
    display: none;
  }

  .rr-logo-desktop {
    display: block;
  }
}

.rr-menu {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rr-menu > li {
  position: relative;
  padding-block: 8px;
}

.rr-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  color: var(--chrome-text);
  font-size: 0.875rem;
  line-height: 1.125rem;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 8px;
  transition: color 0.2s;
}

.rr-menu a:hover,
.rr-menu .is-current {
  color: #00a1d3;
}

.rr-menu .is-current {
  font-weight: 600;
}

.rr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a1d3;
  display: inline-block;
  animation: rrNavPulse 2s ease-in-out infinite;
}

.rr-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  display: inline-block;
  flex-shrink: 0;
}

.rr-mini-dot.is-on,
.drawer .is-current .rr-mini-dot {
  background: #00a1d3;
}

.rr-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.rr-arrow {
  width: 16px;
  height: 11px;
}

.rr-has-sub:hover > a,
.rr-has-sub:focus-within > a {
  color: #00a1d3;
}

.rr-has-sub:hover .rr-chevron,
.rr-has-sub:focus-within .rr-chevron,
.drawer-acc[aria-expanded="true"] .rr-chevron {
  transform: rotate(180deg);
}

.rr-has-sub::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 14px;
}

.rr-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 13.75rem;
  max-width: 18rem;
  width: max-content;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.22);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  z-index: 80;
}

.rr-has-sub:hover .rr-drop,
.rr-has-sub:focus-within .rr-drop {
  display: flex;
}

.rr-drop a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  padding: 10px 14px;
  color: var(--chrome-text);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.15rem;
  border-radius: 8px;
  text-align: start;
}

.rr-drop .rr-mini-dot {
  display: none;
}

.rr-drop a:hover {
  background: var(--drop-hover);
  color: #00a1d3;
}

.rr-nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  justify-self: end;
}

.rr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  box-sizing: border-box;
}

.rr-btn-solid {
  background: #00a1d3;
  color: #fff;
  border: 0;
  border-bottom: 3px solid #00c1fb;
}

.rr-btn-solid:hover,
.rr-header .rr-btn-solid:hover,
.drawer-ctas .rr-btn-solid:hover {
  background: #0089b4;
  color: #fff;
}

.rr-btn-solid:hover svg,
.rr-header .rr-btn-solid:hover svg,
.drawer-ctas .rr-btn-solid:hover svg {
  color: #fff;
  fill: currentColor;
}

.rr-btn-outline {
  background: transparent;
  color: #00a1d3;
  border: 0;
  border-top: 1px solid #00c1fb;
  border-bottom: 3px solid #00c1fb;
}

.rr-btn-outline:hover {
  background: var(--drop-hover);
  color: #00a1d3;
}

.rr-cta-compact {
  display: none;
}

.rr-header a.rr-cta-desktop {
  display: inline-flex;
}

.rr-header .icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--icon-btn-border);
  background: var(--icon-btn-bg);
  color: var(--icon-btn-color);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rr-header .icon-btn:hover {
  color: #00a1d3;
}

.rr-header .icon-btn.nav-toggle {
  display: none;
}

.nav-toggle .rr-icon-close {
  display: none;
}

.nav-toggle.is-open .rr-icon-open {
  display: none;
}

.nav-toggle.is-open .rr-icon-close {
  display: block;
}

.drawer {
  display: none;
}

.drawer-search {
  margin: 0 0 16px;
}

.drawer-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-muted);
}

.drawer-search__field:focus-within {
  border-color: #00a1d3;
  color: #00a1d3;
  box-shadow: 0 0 0 3px color-mix(in srgb, #00a1d3 16%, transparent);
}

.drawer-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  min-height: 44px;
}

.drawer-search__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: none;
}

.drawer-search__list:not(:empty) {
  display: block;
}

.drawer-search__list a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.drawer-search__list li:last-child a {
  border-bottom: 0;
}

.drawer-search__list a:hover {
  background: var(--bg-muted);
}

.drawer-search__list .rr-search-msg {
  padding: 12px 14px;
}

.drawer-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.drawer-list > li + li {
  border-top: 1px solid var(--border);
}

.drawer-list a,
.drawer-acc {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: start;
  padding: 10px 4px;
  color: var(--chrome-text);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.drawer-acc .rr-chevron {
  margin-inline-start: auto;
  color: #949b9d;
}

.drawer .is-current {
  color: #00a1d3;
}

.drawer-sub {
  display: none;
  margin-inline-start: 8px;
  margin-bottom: 8px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--border);
}

.drawer-acc[aria-expanded="true"] + .drawer-sub {
  display: grid;
}

.drawer-sub a {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
}

.drawer-sub a:hover {
  background: var(--drop-hover);
  color: #00a1d3;
}

.drawer-ctas {
  display: grid;
  gap: 12px;
}

.drawer-ctas .rr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #00a1d3;
}

.drawer-ctas .rr-btn-outline {
  background: var(--bg-elevated);
  color: #00a1d3;
  border: 0;
  border-top: 1px solid #00c1fb;
  border-bottom: 3px solid #00c1fb;
}

.drawer-ctas .rr-btn-solid {
  background: #00a1d3;
  color: #fff;
  border: 0;
  border-bottom: 3px solid #00c1fb;
}

@media (min-width: 1450px) {
  .rr-nav {
    min-height: 72px;
    grid-template-columns: minmax(7.5rem, 0.5fr) auto 1fr;
  }

  .rr-menu {
    display: flex;
    justify-self: center;
    grid-column: 2;
  }

  .rr-nav-end {
    justify-self: end;
    grid-column: 3;
  }

  .rr-header a.rr-cta-compact,
  .rr-header .icon-btn.nav-toggle {
    display: none;
  }
}

@media (max-width: 1449px) {
  .rr-header a.rr-cta-desktop {
    display: none;
  }

  .rr-header a.rr-cta-compact,
  .rr-header .icon-btn.nav-toggle {
    display: inline-flex;
  }

  .rr-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .rr-nav-start {
    min-width: 0;
  }

  .rr-logo {
    max-width: 100%;
  }

  .rr-logo img {
    max-width: 100%;
  }

  .rr-header .rr-search {
    display: none;
  }

  .drawer {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: calc(var(--app-viewport-h, 100dvh) - var(--wp-admin--admin-bar--height, 0px) - 4.75rem);
    overflow-y: auto;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    transform: none;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
    z-index: 50;
  }

  .drawer.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .drawer[hidden] {
    display: none;
  }

  .drawer .drawer-ctas .rr-btn {
    display: inline-flex;
    width: 100%;
    height: 44px;
  }
}

@media (max-width: 900px) {
  .rr-header a.rr-cta-compact {
    height: 36px;
    padding: 0 12px 0 10px;
    font-size: 0.78rem;
  }

  .rr-header a.rr-cta-compact .rr-arrow {
    display: none;
  }

  .rr-nav-end {
    gap: 6px;
  }

  .rr-header .icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .rr-nav {
    min-height: 56px;
    gap: 8px;
  }

  .rr-header a.rr-cta-compact {
    display: none;
  }

  .rr-logo-mobile {
    height: 28px;
    width: auto;
    max-width: min(150px, 48vw);
  }

  .rr-nav-end {
    gap: 4px;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 24px));
  }
}

@keyframes rrNavPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #00a1d3;
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-dot {
    animation: none;
  }
}

.site-main {
  min-height: 60vh;
  padding: 36px 0 72px;
}

.site-main.is-home {
  padding-top: 0;
}

/* The pattern runs 9rem under the next section and fades into the page color there. */
.blog-hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  text-align: center;
  padding: 4.5rem 1.25rem 5rem;
  font-family: Rubik, "IBM Plex Sans Arabic", sans-serif;
}

.blog-hero::before,
.blog-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -9rem;
  z-index: -1;
  pointer-events: none;
}

.blog-hero::before {
  top: 0;
  background: url("../brand/page-hero-bg.jpg") center top / 100% auto no-repeat;
}

.blog-hero::after {
  top: 9.5rem;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    var(--bg) 18%,
    color-mix(in srgb, var(--bg) 92%, transparent) 42%,
    color-mix(in srgb, var(--bg) 55%, transparent) 68%,
    transparent 100%
  );
}

[data-theme="dark"] .blog-hero::before {
  filter: invert(1);
  opacity: 0.7;
}

.blog-hero + #blog-articles {
  position: relative;
}

.blog-hero-inner {
  width: min(46rem, 100%);
  margin-inline: auto;
}

.blog-hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 20px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  margin: 0 0 16px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  box-sizing: border-box;
}

.blog-hero h1 {
  color: var(--hero-title);
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  line-height: 1.35;
  margin: 0 0 16px;
  font-weight: 700;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 46ch;
}

.blog-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-hero .rr-btn-solid:hover,
.blog-hero .rr-btn-solid:hover svg {
  color: #fff;
}

#blog-articles {
  padding: 48px 0 24px;
  scroll-margin-top: 96px;
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 3rem 1rem 3.5rem;
  }

  .blog-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-hero .rr-btn {
    width: 100%;
  }
}

.site-footer,
.rr-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 64px 0 28px;
}

.rr-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) repeat(var(--rr-footer-cols, 3), minmax(0, 1fr));
  gap: 36px 28px;
  align-items: start;
}

.rr-footer__logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.rr-footer__logo img {
  height: 44px;
  width: auto;
  display: block;
}

[data-theme="dark"] .rr-footer__logo img {
  filter: brightness(0) invert(1);
}

.rr-footer__about {
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.92rem;
  max-width: 38ch;
}

.rr-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rr-footer__contact li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.rr-footer__ico {
  display: inline-flex;
  color: var(--text-faint);
  margin-top: 2px;
}

.rr-footer__contact-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rr-footer__contact-label {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.rr-footer__contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.rr-footer__contact a:hover {
  text-decoration: underline;
}

.rr-footer__address {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.rr-footer__title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.rr-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rr-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}

.rr-footer__links a:hover {
  color: var(--accent);
}

.rr-footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.rr-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rr-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.rr-footer__social-btn:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-muted));
  transform: translateY(-1px);
}

.rr-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.rr-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.rr-footer__legal a,
.rr-footer__legal-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.rr-footer__legal a:hover,
.rr-footer__legal-list a:hover {
  color: var(--accent);
}

.rr-footer__copy {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

@media (max-width: 1024px) {
  .rr-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rr-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .rr-footer {
    padding: 48px 0 24px;
  }

  .rr-footer__logo {
    margin-bottom: 12px;
  }

  .rr-footer__logo img {
    height: 28px;
    width: auto;
    max-width: min(150px, 48vw);
  }

  .rr-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rr-footer__bottom {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .rr-footer__social,
  .rr-footer__legal {
    justify-content: center;
  }
}

/* legacy class hooks if referenced elsewhere */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 36ch;
}

.footer-title {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
