/**
 * Bait Al-Karam Core Design Tokens & Reset
 *
 * @package BaitAlKaram
 */

:root {
  --ink: #1e1e1e;
  --ink-light: #525252;
  --paper: #ffffff;
  --mist: #f0f0f2;
  --bg-page: #f5f5f7;
  --red: #ba2029;
  --red-deep: #94161e;
  --red-light: #e02f3a;
  --red-rgb: 186, 32, 41;
  --line: rgba(30, 30, 30, 0.08);
  --radius: 8px;
  --wa-gradient: linear-gradient(115deg, #1fa855, #25d366 55%, #128c7e);
  --cta-gradient: linear-gradient(135deg, var(--red), var(--red-deep));
  --ok-bg: #eaf8ef;
  --ok-line: #b9e6c8;
  --ok-ink: #17603a;
  --err-bg: #fdecec;
  --err-line: #f3b9bd;
  --err-ink: #94161e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-page);
  font-family: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

.storefront {
  min-height: 100svh;
  padding: 0 clamp(20px, 5vw, 84px) 36px;
  display: flex;
  flex-direction: column;
}

.jelly-arrow {
  width: 20px;
  height: 14px;
  display: block;
  fill: currentColor;
  transition: transform 0.32s ease;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal;
}

.entry-content {
  max-width: 760px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink);
}
.entry-content h2 { font-size: 26px; margin: 2em 0 0.6em; }
.entry-content h3 { font-size: 20px; margin: 1.6em 0 0.5em; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.page-content { padding: 28px 0 48px; }
.entry-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 18px; line-height: 1.25; }

.seo-excerpt-body p { margin: 0 0 0.7em; }
.seo-excerpt-body p:last-child { margin-bottom: 0; }
.seo-excerpt-body h2 {
  margin: 1em 0 0.4em;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}
.seo-excerpt-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-excerpt-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.seo-excerpt-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.seo-excerpt:not(.is-open) .seo-excerpt-body {
  max-height: 7.6em;
  overflow: hidden;
}
@media (max-width: 767px) {
  .seo-excerpt:not(.is-open) .seo-excerpt-body {
    max-height: 6.6em;
  }
}

@media (max-width: 700px) {
  .storefront {
    padding: 0 16px 24px;
  }
}
