
/* =========================================================
   MEDIKA V23 — PHASE 4 CONTENT ECOSYSTEM
   ========================================================= */

.phase4-content-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #dce7f5;
  border-radius: 999px;
  background: #fff;
  color: #496487;
  font-size: 11px;
  font-weight: 800;
}

.phase4-content-chip i {
  color: #2057ad;
}

.podcast-phase4-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dce8f6;
  border-radius: 16px;
  background: #f7faff;
  color: #627a99;
  font-size: 12px;
  font-weight: 700;
}

.podcast-phase4-note i {
  color: #2059b7;
}

/* BIMROH BOARD */
.bimroh-v24 {
  --bimroh-blue: #153f86;
  --bimroh-soft: #f5f8fd;
  --bimroh-border: #dfe8f4;
  --bimroh-text: #15345f;
  --bimroh-muted: #70819b;
  --bimroh-green: #17694d;
}

.bimroh-v24-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 25px;
  border: 1px solid var(--bimroh-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 15%, rgba(60, 122, 218, .13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4f8fe 100%);
  box-shadow: 0 16px 46px rgba(21, 62, 120, .07);
}

.bimroh-v24-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #2c5da6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bimroh-v24-hero h3 {
  margin: 0;
  color: var(--bimroh-text);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 900;
  letter-spacing: -.035em;
}

.bimroh-v24-hero p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--bimroh-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.bimroh-v24-contact {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 245px;
  padding: 13px 15px;
  border: 1px solid rgba(27, 127, 91, .16);
  border-radius: 18px;
  background: #f0faf6;
  color: var(--bimroh-green);
  text-decoration: none;
}

.bimroh-v24-contact > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #dff3e9;
  font-size: 19px;
}

.bimroh-v24-contact span {
  display: grid;
  gap: 1px;
}

.bimroh-v24-contact small {
  color: #739486;
  font-size: 9px;
  font-weight: 750;
}

.bimroh-v24-contact strong {
  font-size: 12px;
  font-weight: 900;
}

.bimroh-v24-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 14px;
  align-items: center;
  margin-bottom: 17px;
}

.bimroh-v24-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.bimroh-v24-tabs::-webkit-scrollbar {
  display: none;
}

.bimroh-v24-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--bimroh-border);
  border-radius: 999px;
  background: #fff;
  color: #607895;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.bimroh-v24-tab.active {
  border-color: #1e58ad;
  background: #154a9f;
  color: #fff;
  box-shadow: 0 9px 24px rgba(20, 74, 159, .18);
}

.bimroh-v24-search {
  position: relative;
}

.bimroh-v24-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #7890ae;
  font-size: 12px;
}

.bimroh-v24-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--bimroh-border);
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #173b70;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.bimroh-v24-search input:focus {
  border-color: #7ea5de;
  box-shadow: 0 0 0 4px rgba(36, 99, 190, .08);
}

.bimroh-v24-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bimroh-v24-card {
  display: flex;
  min-width: 0;
  min-height: 194px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--bimroh-border);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(22, 62, 112, .055);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bimroh-v24-card:hover {
  transform: translateY(-2px);
  border-color: #bfd2ed;
  box-shadow: 0 16px 38px rgba(22, 62, 112, .09);
}

.bimroh-v24-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 13px;
  border-radius: 14px;
  background: #edf4ff;
  color: #1d57ad;
  font-size: 18px;
}

.bimroh-v24-card small {
  color: #7b8da6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bimroh-v24-card h4 {
  margin: 6px 0 7px;
  color: #163764;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.bimroh-v24-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #75859d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bimroh-v24-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 13px;
  color: #68819f;
  font-size: 10px;
  font-weight: 750;
}

.bimroh-v24-card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #1954a9;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

/* BIMROH READER */
.bimroh-v24-reader {
  position: relative;
  padding: 0;
  background: #f7f9fd;
}

.bimroh-v24-reader-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #e3eaf4;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bimroh-v24-reader-back,
.bimroh-v24-reader-tool {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #dce6f3;
  border-radius: 13px;
  background: #fff;
  color: #174b98;
  cursor: pointer;
}

.bimroh-v24-reader-title {
  min-width: 0;
}

.bimroh-v24-reader-title small {
  display: block;
  color: #7b8da6;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.bimroh-v24-reader-title strong {
  display: block;
  overflow: hidden;
  color: #153864;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bimroh-v24-reader-tools {
  display: flex;
  gap: 6px;
}

.bimroh-v24-reader-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 11px 15px;
  border-bottom: 1px solid #e4eaf3;
  background: #fff;
}

.bimroh-v24-reader-settings button {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  background: #fff;
  color: #627a99;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.bimroh-v24-reader-settings button.active {
  border-color: #245fb7;
  background: #edf4ff;
  color: #174b98;
}

.bimroh-v24-font-value {
  min-width: 44px;
  text-align: center;
  color: #5d7391;
  font-size: 10px;
  font-weight: 850;
}

.bimroh-v24-article {
  width: min(830px, calc(100% - 28px));
  margin: 0 auto;
  padding: 31px 0 44px;
  color: #203d63;
  font-size: var(--bimroh-font, 16px);
}

.bimroh-v24-article-intro {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfe7f2;
}

.bimroh-v24-article-intro span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2960aa;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bimroh-v24-article-intro h1 {
  margin: 9px 0 7px;
  color: #123564;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.bimroh-v24-article-intro p {
  margin: 0;
  color: #71829a;
  font-size: .82em;
  font-weight: 600;
  line-height: 1.65;
}

.bimroh-v24-block {
  margin: 0 0 18px;
}

.bimroh-v24-block p {
  margin: 0;
  color: #314e70;
  font-size: 1em;
  line-height: 1.85;
}

.bimroh-v24-block h3 {
  margin: 0 0 9px;
  color: #173b6c;
  font-size: 1.02em;
  font-weight: 900;
}

.bimroh-v24-block ul,
.bimroh-v24-block ol {
  margin: 0;
  padding-left: 23px;
  color: #314e70;
}

.bimroh-v24-block li {
  margin: 0 0 8px;
  padding-left: 4px;
  line-height: 1.75;
}

.bimroh-v24-note {
  padding: 15px 16px;
  border: 1px solid #dbe6f3;
  border-left: 4px solid #2b65b7;
  border-radius: 14px;
  background: #f4f8fe;
}

.bimroh-v24-arabic {
  padding: 21px 18px;
  border: 1px solid #e0e8f2;
  border-radius: 18px;
  background: #fff;
}

.bimroh-v24-arabic h3 {
  margin: 0 0 13px;
  color: #244a7e;
  font-size: .83em;
}

.bimroh-v24-arabic-text {
  color: #142f57;
  font-family: "Noto Naskh Arabic", "Traditional Arabic", serif;
  font-size: 1.85em;
  line-height: 2.05;
  text-align: right;
}

.bimroh-v24-latin {
  margin-top: 15px;
  color: #4a6483;
  font-size: .92em;
  font-style: italic;
  line-height: 1.72;
}

.bimroh-v24-arti {
  margin-top: 9px;
  color: #6d7f98;
  font-size: .88em;
  line-height: 1.72;
}

.bimroh-v24-reader.hide-arabic .bimroh-v24-arabic-text {
  display: none;
}

.bimroh-v24-reader.hide-latin .bimroh-v24-latin {
  display: none;
}

.bimroh-v24-reader.hide-arti .bimroh-v24-arti {
  display: none;
}

.bimroh-v24-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 25px 0 7px;
  padding: 15px;
  border: 1px solid rgba(27, 127, 91, .14);
  border-radius: 18px;
  background: #f1faf6;
}

.bimroh-v24-help > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #def2e8;
  color: #16704f;
  font-size: 19px;
}

.bimroh-v24-help small {
  display: block;
  color: #77988a;
  font-size: 9px;
  font-weight: 800;
}

.bimroh-v24-help strong {
  display: block;
  margin-top: 2px;
  color: #17674c;
  font-size: 12px;
  font-weight: 900;
}

.bimroh-v24-help a {
  padding: 9px 12px;
  border-radius: 12px;
  background: #19744f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.bimroh-v24-neighbours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid #dfe7f2;
}

.bimroh-v24-neighbours button {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border: 1px solid #dce6f2;
  border-radius: 15px;
  background: #fff;
  color: #214b7f;
  text-align: left;
  cursor: pointer;
}

.bimroh-v24-neighbours button.next {
  justify-content: flex-end;
  text-align: right;
}

.bimroh-v24-neighbours small {
  display: block;
  color: #8796aa;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.bimroh-v24-neighbours strong {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 900;
}

/* Analytics quiet-state */
.medika-v24-analytics-pulse {
  position: fixed;
  left: 10px;
  bottom: 94px;
  z-index: 60;
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b70ce;
  box-shadow: 0 0 0 5px rgba(43,112,206,.10);
  pointer-events: none;
}

.medika-v24-analytics-pulse.is-flushing {
  display: block;
  animation: medikaV24AnalyticsPulse 1s ease infinite;
}

@keyframes medikaV24AnalyticsPulse {
  50% { opacity: .35; transform: scale(.8); }
}

@media (max-width: 960px) {
  .bimroh-v24-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bimroh-v24-hero {
    grid-template-columns: 1fr;
  }

  .bimroh-v24-contact {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .bimroh-v24-toolbar {
    grid-template-columns: 1fr;
  }

  .bimroh-v24-grid {
    grid-template-columns: 1fr;
  }

  .bimroh-v24-card {
    min-height: 0;
  }

  .bimroh-v24-reader-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .bimroh-v24-reader-settings {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .bimroh-v24-article {
    width: min(100% - 26px, 830px);
    padding-top: 24px;
    font-size: var(--bimroh-font, 16px);
  }

  .bimroh-v24-arabic-text {
    font-size: 1.62em;
  }

  .bimroh-v24-help {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bimroh-v24-help a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .bimroh-v24-neighbours {
    grid-template-columns: 1fr;
  }
}
