.tmd-baladi,
.tmd-baladi-page-shell {
  --tmd-gold: #b88927;
  --tmd-gold-2: #e0bf70;
  --tmd-ink: #17140f;
  --tmd-muted: #6f675b;
  --tmd-cream: #fbf8f1;
  --tmd-line: rgba(184, 137, 39, .22);
  --tmd-white: #fff;
}

.tmd-baladi,
.tmd-baladi * { box-sizing: border-box; }

.tmd-baladi {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 48px auto;
  color: var(--tmd-ink);
  font-family: inherit;
}

.tmd-baladi--scroll {
  overflow: hidden;
  padding: clamp(24px, 4vw, 52px) clamp(16px, 3.5vw, 42px) 24px;
  border: 1px solid var(--tmd-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(224,191,112,.15), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(184,137,39,.08), transparent 32%),
    linear-gradient(145deg, #fff 0%, #fdfbf7 55%, #faf5e9 100%);
  box-shadow: 0 22px 70px rgba(42, 31, 13, .08);
}

.tmd-baladi__glow {
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  background: var(--tmd-gold-2);
  pointer-events: none;
}
.tmd-baladi__glow--one { top: -120px; right: -80px; }
.tmd-baladi__glow--two { bottom: -150px; left: -80px; }

.tmd-baladi__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.tmd-baladi__heading-wrap { max-width: 760px; }
.tmd-baladi__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #8c681e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.tmd-baladi__eyebrow span { color: var(--tmd-gold-2); font-size: 10px; }

.tmd-baladi__title,
.tmd-baladi-archive__title {
  margin: 0;
  color: var(--tmd-ink);
  font-size: clamp(26px, 3.4vw, 43px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.025em;
}

.tmd-baladi__subtitle,
.tmd-baladi-archive__subtitle {
  max-width: 690px;
  margin: 10px 0 0;
  color: var(--tmd-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.9;
}

.tmd-baladi__arrows { display: flex; gap: 9px; flex: 0 0 auto; }
.tmd-baladi__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(184,137,39,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--tmd-ink);
  box-shadow: 0 8px 24px rgba(50,38,16,.07);
  cursor: pointer;
  transition: .25s ease;
}
.tmd-baladi__arrow:hover { transform: translateY(-2px); background: var(--tmd-ink); color: #fff; border-color: var(--tmd-ink); }
.tmd-baladi__arrow:disabled { opacity: .35; cursor: default; transform: none; }
.tmd-baladi__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tmd-baladi__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(225px, 24vw, 300px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,137,39,.45) transparent;
  outline: none;
}
.tmd-baladi__rail::-webkit-scrollbar { height: 6px; }
.tmd-baladi__rail::-webkit-scrollbar-track { background: transparent; }
.tmd-baladi__rail::-webkit-scrollbar-thumb { background: rgba(184,137,39,.42); border-radius: 99px; }

.tmd-baladi-card {
  scroll-snap-align: start;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184,137,39,.17);
  border-radius: 22px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 13px 34px rgba(35,26,10,.07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tmd-baladi-card:hover { transform: translateY(-5px); border-color: rgba(184,137,39,.42); box-shadow: 0 20px 42px rgba(35,26,10,.12); }

.tmd-baladi-card__media,
.tmd-baladi-article-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #f5efe0, #fff);
}
.tmd-baladi-card__media { aspect-ratio: 1 / 1; }
.tmd-baladi-article-card__media { aspect-ratio: 16 / 10.5; }

.tmd-baladi-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.tmd-baladi-card:hover .tmd-baladi-card__image,
.tmd-baladi-article-card:hover .tmd-baladi-card__image { transform: scale(1.045); }

.tmd-baladi-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(145deg,#fff8e7,#efe0b8);
}
.tmd-baladi-card__placeholder span { font-size: 36px; color: var(--tmd-gold); }

.tmd-baladi-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.32) 49%, transparent 60%);
  transform: translateX(-110%);
  transition: transform .7s ease;
  pointer-events: none;
}
.tmd-baladi-card:hover .tmd-baladi-card__shine { transform: translateX(110%); }

.tmd-baladi-card__badge {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: rgba(22,18,10,.75);
  color: #fff8e7;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.tmd-baladi-card__body { padding: 16px; display:flex; flex-direction:column; gap:14px; flex:1 1 auto; }
.tmd-baladi-card__title { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 850; }
.tmd-baladi-card__title a,
.tmd-baladi-article-card__title a { color: inherit; text-decoration: none; }

.tmd-baladi-card__button,
.tmd-baladi-article-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
  transition: .25s ease;
}
.tmd-baladi-card__button {
  width: 100%;
  margin-top: auto;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(184,137,39,.3);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbf5e8);
  color: #6e4d0f !important;
  font-size: 13px;
  font-weight: 850;
}
.tmd-baladi-card__button:hover { background: linear-gradient(135deg, #b88927, #d9b65f); color: #171109 !important; border-color: transparent; }
.tmd-baladi-card__button svg,
.tmd-baladi-article-card__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(-1); }

.tmd-baladi__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  color: #887a64;
  font-size: 11px;
}
.tmd-baladi__hint i { position: relative; width: 34px; height: 1px; background: rgba(184,137,39,.35); }
.tmd-baladi__hint i::after { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--tmd-gold); animation: tmdHint 1.8s ease-in-out infinite; }
@keyframes tmdHint { 0%,100% { transform: translateX(0); } 50% { transform: translateX(29px); } }

/* Archive */
.tmd-baladi--archive { margin-top: 20px; }
.tmd-baladi-archive__hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(28px,5vw,58px) clamp(20px,5vw,62px);
  text-align: center;
  border: 1px solid rgba(184,137,39,.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -20%, rgba(224,191,112,.25), transparent 35%),
    linear-gradient(145deg,#fff,#fbf6ea);
  box-shadow: 0 20px 60px rgba(43,32,12,.07);
}
.tmd-baladi-archive__subtitle { margin-inline: auto; }
.tmd-baladi-archive__ornament { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:18px; color:var(--tmd-gold); }
.tmd-baladi-archive__ornament i { width:55px; height:1px; background:linear-gradient(90deg,transparent,var(--tmd-gold)); }
.tmd-baladi-archive__ornament i:last-child { transform:scaleX(-1); }
.tmd-baladi-archive__ornament span { font-size:10px; }

.tmd-baladi-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tmd-baladi-article-card {
  overflow: hidden;
  border: 1px solid rgba(184,137,39,.17);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 36px rgba(35,26,10,.07);
  transition: .28s ease;
}
.tmd-baladi-article-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(35,26,10,.11); border-color: rgba(184,137,39,.36); }
.tmd-baladi-article-card__content { padding: 18px; }
.tmd-baladi-article-card__meta { display:flex; align-items:center; gap:7px; margin-bottom:9px; color:#95876f; font-size:11px; }
.tmd-baladi-article-card__dot { color: var(--tmd-gold); }
.tmd-baladi-article-card__title { margin:0 0 9px; font-size:20px; line-height:1.55; font-weight:900; }
.tmd-baladi-article-card__excerpt { margin:0 0 15px; color:var(--tmd-muted); font-size:13px; line-height:1.85; }
.tmd-baladi-article-card__link { color:#8a651c !important; font-size:13px; font-weight:900; }
.tmd-baladi-article-card__link:hover { gap:12px; color:var(--tmd-ink) !important; }

.tmd-baladi-pagination { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:30px; }
.tmd-baladi-pagination .page-numbers {
  display:grid;
  place-items:center;
  min-width:40px;
  min-height:40px;
  padding:7px 12px;
  border:1px solid rgba(184,137,39,.22);
  border-radius:11px;
  background:#fff;
  color:var(--tmd-ink);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}
.tmd-baladi-pagination .page-numbers.current,
.tmd-baladi-pagination a.page-numbers:hover { background:var(--tmd-ink); color:#fff; border-color:var(--tmd-ink); }

@media (max-width: 900px) {
  .tmd-baladi-archive__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .tmd-baladi { margin: 32px auto; }
  .tmd-baladi--scroll { padding: 22px 14px 18px; border-radius: 22px; }
  .tmd-baladi__header { align-items:flex-start; margin-bottom:19px; }
  .tmd-baladi__arrows { display:none; }
  .tmd-baladi__rail { grid-auto-columns: minmax(230px, 81vw); gap: 12px; margin-inline: -2px; }
  .tmd-baladi-card { border-radius: 18px; }
  .tmd-baladi-card__body { padding: 14px; }
  .tmd-baladi__hint { justify-content:flex-start; }
  .tmd-baladi-archive__hero { border-radius:22px; }
  .tmd-baladi-archive__grid { grid-template-columns: 1fr; gap:14px; }
  .tmd-baladi-article-card { border-radius:18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tmd-baladi *, .tmd-baladi *::before, .tmd-baladi *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

/* =========================================================
   Special single article — الذهب البلدي / v1.5
   ========================================================= */
.tmd-baladi-page-shell,
.tmd-baladi-page-shell * { box-sizing: border-box; }

.tmd-baladi-page-shell {
  --tmd-page-gold:#d39b2c;
  --tmd-page-gold-dark:#a56e0d;
  --tmd-page-ink:#171717;
  --tmd-page-muted:#6f6a61;
  --tmd-page-line:rgba(199,145,32,.24);
  position:relative;
  width:100vw;
  margin-inline:calc(50% - 50vw);
  padding:26px 0 72px;
  overflow:hidden;
  background:
    linear-gradient(rgba(255,255,255,.91),rgba(255,255,255,.94)),
    var(--tmd-article-bg, none),
    radial-gradient(circle at 2% 12%,rgba(211,155,44,.09),transparent 20%),
    radial-gradient(circle at 98% 30%,rgba(211,155,44,.08),transparent 23%),
    #fff;
  background-size:cover,cover,auto,auto;
  background-position:center top,center top,left top,right center;
  background-attachment:scroll;
}
.tmd-baladi-page-shell::before,
.tmd-baladi-page-shell::after{
  content:'';position:absolute;pointer-events:none;border-radius:50%;filter:blur(1px);opacity:.3
}
.tmd-baladi-page-shell::before{width:340px;height:340px;left:-210px;top:760px;border:44px double rgba(203,150,42,.18);transform:rotate(28deg)}
.tmd-baladi-page-shell::after{width:300px;height:300px;right:-205px;top:1450px;border:34px double rgba(203,150,42,.14);transform:rotate(-20deg)}

.tmd-baladi-single {
  position:relative;
  z-index:1;
  width:min(1190px,calc(100% - 30px));
  margin:0 auto;
  color:var(--tmd-page-ink);
  font-family:inherit;
}
.tmd-baladi-single__article{margin:0}

.tmd-baladi-breadcrumb{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;
  margin:0 4px 18px;color:#8a8277;font-size:12px;line-height:1.7
}
.tmd-baladi-breadcrumb a{color:#6f675c;text-decoration:none}
.tmd-baladi-breadcrumb a:hover{color:var(--tmd-page-gold-dark)}
.tmd-baladi-breadcrumb span:nth-child(even){color:#ba8a31}

/* Hero */
.tmd-baladi-single__hero{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(350px,.82fr);
  gap:18px;
  direction:ltr;
  align-items:stretch;
  margin-bottom:14px;
}
.tmd-baladi-single__gallery,
.tmd-baladi-single__specs{
  direction:rtl;
  background:rgba(255,255,255,.96);
  border:1px solid var(--tmd-page-line);
  border-radius:19px;
  box-shadow:0 10px 34px rgba(67,46,10,.06);
}
.tmd-baladi-single__gallery{position:relative;padding:10px}
.tmd-baladi-single__gallery-badge{
  position:absolute;z-index:7;top:22px;left:22px;
  display:inline-flex;align-items:center;gap:8px;
  min-height:39px;padding:8px 14px;border-radius:11px;
  background:#fff;color:#7d5512;font-size:12px;font-weight:900;
  border:1px solid rgba(201,147,36,.26);box-shadow:0 5px 16px rgba(71,49,9,.08)
}
.tmd-baladi-single__gallery-badge-icon{display:grid;place-items:center;width:21px;height:21px;color:#cb9019}
.tmd-baladi-single__gallery-badge-icon svg{width:21px;height:21px;display:block}
.tmd-baladi-single__gallery-main{
  position:relative;overflow:hidden;
  min-height:435px;aspect-ratio:1.36/1;
  border-radius:14px;background:#f4eadc;
}
.tmd-baladi-single__slide{position:absolute;inset:0;margin:0;opacity:0;transform:scale(.992);pointer-events:none;transition:.35s ease}
.tmd-baladi-single__slide.is-active{opacity:1;transform:scale(1);pointer-events:auto}
.tmd-baladi-single__image{display:block;width:100%;height:100%;object-fit:cover}
.tmd-baladi-single__empty-image{display:grid;place-items:center;align-content:center;gap:9px;height:100%;min-height:435px;background:linear-gradient(145deg,#fffaf0,#ead7ae);color:#a97616}
.tmd-baladi-single__empty-image span{font-size:46px}.tmd-baladi-single__empty-image small{color:#7d7468}
.tmd-baladi-single__nav{
  position:absolute;z-index:6;top:50%;transform:translateY(-50%);
  width:40px;height:40px;padding:0;border-radius:50%;
  display:grid;place-items:center;border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.93);color:#35312c;box-shadow:0 5px 15px rgba(0,0,0,.09);cursor:pointer;transition:.2s ease
}
.tmd-baladi-single__nav:hover{background:#171717;color:#fff}
.tmd-baladi-single__nav--prev{left:12px}.tmd-baladi-single__nav--next{right:12px}
.tmd-baladi-single__nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tmd-baladi-single__thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px;overflow-x:auto}
.tmd-baladi-single__thumb{
  position:relative;min-width:72px;aspect-ratio:1.5/1;overflow:hidden;padding:0;
  border-radius:10px;border:1px solid rgba(199,145,32,.18);background:#f7f0e5;cursor:pointer;opacity:.82;transition:.2s ease
}
.tmd-baladi-single__thumb.is-active,.tmd-baladi-single__thumb:hover{opacity:1;border-color:#d59b27;box-shadow:0 0 0 2px rgba(213,155,39,.12)}
.tmd-baladi-single__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.tmd-baladi-single__thumb-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(23,23,23,.72);color:#fff;font-size:11px}

.tmd-baladi-single__specs{
  padding:25px 24px 18px;
  display:flex;flex-direction:column;justify-content:flex-start
}
.tmd-baladi-single__hero-label{
  align-self:flex-start;display:inline-flex;align-items:center;gap:7px;
  padding:7px 12px;border-radius:999px;background:#fff8e7;color:#936414;
  font-size:11px;font-weight:900;border:1px solid rgba(209,154,43,.18)
}
.tmd-baladi-single__hero-label span{color:#d89c22}
.tmd-baladi-single__piece-name{
  margin:12px 0 5px;color:#080808;font-size:clamp(34px,4vw,48px);line-height:1.12;font-weight:950;letter-spacing:-.025em
}
.tmd-baladi-single__hero-subtitle{margin:0 0 15px;color:#655f57;font-size:13px;line-height:1.8}
.tmd-baladi-single__spec-grid{display:grid;gap:8px}
.tmd-baladi-single__spec-row{
  display:flex;align-items:center;gap:13px;padding:12px 13px;
  border:1px solid rgba(198,148,46,.16);border-radius:13px;background:#fffdfa
}
.tmd-baladi-single__spec-icon{
  flex:0 0 45px;width:45px;height:45px;display:grid;place-items:center;
  border-radius:11px;background:linear-gradient(145deg,#fff6d9,#f2d889);color:#ba7c12
}
.tmd-baladi-single__spec-icon svg{width:30px;height:30px}
.tmd-baladi-single__spec-label{display:block;margin-bottom:2px;color:#665f55;font-size:12px}
.tmd-baladi-single__spec-value{display:block;color:#111;font-size:18px;line-height:1.35;font-weight:950}
.tmd-baladi-single__spec-value.is-yes{color:#1b7a3a}.tmd-baladi-single__spec-value.is-no{color:#b6392c}.tmd-baladi-single__spec-value.is-neutral{color:#6d675f}
.tmd-baladi-single__spec-investment-copy{min-width:0;flex:1}
.tmd-baladi-single__reason-link{display:inline-flex;align-items:center;gap:5px;margin-top:3px;color:#a66e0b!important;font-size:12px;font-weight:900;text-decoration:none!important}
.tmd-baladi-single__reason-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.tmd-baladi-single__details-cta{
  margin-top:10px;display:grid;grid-template-columns:34px 1fr 54px;align-items:center;gap:10px;
  min-height:64px;padding:8px 10px;border-radius:14px;text-decoration:none!important;
  background:linear-gradient(105deg,#fff9e8,#f0cf72);border:1px solid rgba(196,137,19,.22);color:#2b2110!important;box-shadow:0 8px 20px rgba(183,128,24,.10)
}
.tmd-baladi-single__details-arrow{display:grid;place-items:center;font-size:29px;color:#a86f0a}
.tmd-baladi-single__details-copy strong{display:block;font-size:12px;font-weight:950}.tmd-baladi-single__details-copy small{display:block;margin-top:2px;font-size:10px;color:#685c49}
.tmd-baladi-single__details-icon{display:grid;place-items:center;color:#bd8117}.tmd-baladi-single__details-icon svg{width:48px;height:48px}

/* Trust strip */
.tmd-baladi-single__trust-strip{
  display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;
  margin-bottom:56px;border:1px solid rgba(198,148,46,.17);border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 8px 26px rgba(65,44,10,.04)
}
.tmd-trust-item{position:relative;text-align:center;padding:16px 9px 14px;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tmd-trust-item:not(:last-child)::after{content:'';position:absolute;top:20%;bottom:20%;left:0;width:1px;background:rgba(181,138,54,.16)}
.tmd-trust-item__icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:5px;color:#ca921f}.tmd-trust-item__icon svg{width:31px;height:31px}
.tmd-trust-item strong{font-size:13px;font-weight:950;color:#28231d}.tmd-trust-item small{margin-top:3px;font-size:10px;color:#8a8174}

/* Article heading */
.tmd-baladi-single__content-section{width:min(1080px,100%);margin:0 auto}
.tmd-baladi-single__content-header{text-align:center;margin-bottom:26px}
.tmd-baladi-single__guide-label{display:flex;align-items:center;justify-content:center;gap:9px;color:#b87b13;font-size:14px;font-weight:900}
.tmd-baladi-single__guide-label i{width:28px;height:2px;border-radius:99px;background:linear-gradient(90deg,transparent,#d09a31)}
.tmd-baladi-single__guide-label i:last-child{transform:scaleX(-1)}
.tmd-baladi-single__title{max-width:910px;margin:13px auto 8px;color:#111;font-size:clamp(31px,4vw,43px);line-height:1.35;font-weight:950;letter-spacing:-.022em}

/* TOC + card grid */
.tmd-baladi-single__article-grid{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;direction:ltr;align-items:start}
.tmd-baladi-single__toc-column,.tmd-baladi-single__content{direction:rtl}
.tmd-baladi-single__toc-column{position:sticky;top:20px}
.tmd-baladi-toc{overflow:hidden;border:1px solid rgba(198,145,35,.24);border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(62,42,9,.04)}
.tmd-baladi-toc__title{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border-bottom:1px solid rgba(198,145,35,.18);font-size:16px;color:#222}.tmd-baladi-toc__title span{color:#c28718;font-size:17px}
.tmd-baladi-toc ol{list-style:none;margin:0;padding:8px}
.tmd-baladi-toc li{margin:0}.tmd-baladi-toc li.level-3 a{padding-right:17px;font-size:11px}
.tmd-baladi-toc a{display:flex;align-items:center;gap:8px;padding:6px 7px;color:#4c4740;text-decoration:none;font-size:11.5px;line-height:1.45;border-radius:7px;transition:.18s ease}
.tmd-baladi-toc a:hover{background:#fff7e5;color:#9c6810}
.tmd-baladi-toc__num{flex:0 0 24px;width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#fff3d1;color:#b17611;font-size:10px;font-weight:900}
.tmd-baladi-single__price-teaser{position:relative;margin-top:10px;padding:13px 14px 13px 60px;min-height:72px;border-radius:12px;background:linear-gradient(135deg,#ffefb8,#dfa739);color:#30200a;overflow:hidden;box-shadow:0 9px 23px rgba(183,128,24,.13)}
.tmd-baladi-single__price-teaser span,.tmd-baladi-single__price-teaser strong{display:block;position:relative;z-index:2}.tmd-baladi-single__price-teaser span{font-size:11px}.tmd-baladi-single__price-teaser strong{font-size:14px;margin-top:3px}
.tmd-baladi-single__price-icon{position:absolute!important;left:8px;bottom:4px;color:#a96e08}.tmd-baladi-single__price-icon svg{width:53px;height:53px}

.tmd-baladi-single__content{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  color:#332f2a;font-size:14px;line-height:1.9
}
.tmd-baladi-single__content > p,
.tmd-baladi-single__content > ul,
.tmd-baladi-single__content > ol,
.tmd-baladi-single__content > blockquote,
.tmd-baladi-single__content > figure,
.tmd-baladi-single__content > .wp-block-image,
.tmd-baladi-single__content > .wp-block-video,
.tmd-baladi-single__content > .tmd-legacy-intro,
.tmd-baladi-single__content > .tmd-faq-section,
.tmd-baladi-single__content > .tmd-content-card--full{grid-column:1/-1}
.tmd-baladi-single__content > h2,
.tmd-baladi-single__content > h3{grid-column:1/-1}
.tmd-baladi-single__content p{margin:0 0 .9em}.tmd-baladi-single__content a{color:#9d6810}
.tmd-legacy-intro{padding:16px 18px;border:1px solid rgba(199,145,32,.16);border-radius:13px;background:rgba(255,255,255,.92)}

/* Content cards */
.tmd-content-card{
  position:relative;overflow:hidden;min-width:0;
  padding:18px 18px 17px;border:1px solid rgba(197,145,40,.20);border-radius:13px;
  background:rgba(255,255,255,.97);box-shadow:0 7px 20px rgba(61,42,10,.035)
}
.tmd-content-card--half{grid-column:auto}.tmd-content-card--full{grid-column:1/-1}
.tmd-content-card::after{content:'';position:absolute;inset:auto -28px -42px auto;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle,rgba(215,161,55,.06),transparent 68%);pointer-events:none}
.tmd-content-card__header{display:flex;align-items:flex-start;gap:10px;margin-bottom:9px}
.tmd-content-card__icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#fff6d9,#f1cf72);color:#b77c13}
.tmd-content-card__icon svg{width:25px;height:25px}
.tmd-content-card__title,.tmd-content-card--auto > h2{margin:4px 0 0!important;padding:0!important;border:0!important;color:#25221e!important;font-size:18px!important;line-height:1.45!important;font-weight:950!important}
.tmd-content-card--auto > h2{margin-bottom:9px!important}
.tmd-content-card__text{color:#4f4941}.tmd-content-card__text > :last-child{margin-bottom:0}
.tmd-content-card__list{list-style:none!important;margin:2px 0 0!important;padding:0!important;display:grid;gap:7px}
.tmd-content-card__list li{display:flex;align-items:flex-start;gap:8px;margin:0!important;color:#49443d}
.tmd-content-card__list-icon{flex:0 0 19px;width:19px;height:19px;margin-top:3px;color:#c58b1d}.tmd-content-card__list-icon svg{display:block;width:19px;height:19px}
.tmd-content-card--pros .tmd-content-card__list-icon{color:#2aa25b}.tmd-content-card--cons .tmd-content-card__list-icon{color:#d54a3e}
.tmd-content-card--pros{border-color:rgba(49,155,92,.24);background:linear-gradient(180deg,#fff,#fbfffc)}
.tmd-content-card--cons{border-color:rgba(211,71,61,.22);background:linear-gradient(180deg,#fff,#fffdfd)}
.tmd-content-card--investment{border-color:rgba(43,157,84,.24)}
.tmd-content-card--summary{border-color:rgba(198,145,40,.32);background:linear-gradient(135deg,#fffefa,#fff9ea)}
.tmd-content-card__split{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.9fr);gap:16px;align-items:center;direction:ltr}
.tmd-content-card__copy,.tmd-content-card__media{direction:rtl;min-width:0}
.tmd-content-card.media-left .tmd-content-card__media{order:1}.tmd-content-card.media-left .tmd-content-card__copy{order:2}
.tmd-content-card.media-right .tmd-content-card__copy{order:1}.tmd-content-card.media-right .tmd-content-card__media{order:2}
.tmd-content-card__media{overflow:hidden;border-radius:10px;background:#f3ebdf;position:relative}
.tmd-content-card__image,.tmd-content-card__video{display:block;width:100%;aspect-ratio:1.45/1;object-fit:cover;border-radius:10px}
.tmd-content-card__embed{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:10px}.tmd-content-card__embed iframe{position:absolute!important;inset:0;width:100%!important;height:100%!important;border:0}

/* FAQ */
.tmd-faq-section{grid-column:1/-1;margin-top:8px;padding-top:14px}
.tmd-faq-section__header{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:13px}
.tmd-faq-section__header h2{margin:0!important;padding:0!important;border:0!important;font-size:25px!important;color:#1c1a17!important}
.tmd-faq-section__icon{display:grid;place-items:center;width:37px;height:37px;color:#ca8f1d}.tmd-faq-section__icon svg{width:37px;height:37px}
.tmd-faq-list{display:grid;gap:7px}
.tmd-faq-item{overflow:hidden;border:1px solid rgba(204,147,33,.40);border-radius:9px;background:rgba(255,255,255,.98)}
.tmd-faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;color:#2a2723;font-size:13px;font-weight:850}
.tmd-faq-item summary::-webkit-details-marker{display:none}
.tmd-faq-item__plus{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;border:1px solid #d69b26;color:#bb7d12;font-size:16px;line-height:1;transition:.2s ease}
.tmd-faq-item[open] .tmd-faq-item__plus{transform:rotate(45deg);background:#d49a27;color:#fff}
.tmd-faq-item__answer{padding:0 14px 12px;color:#5d574e;font-size:12.5px;line-height:1.9;border-top:1px solid rgba(203,149,40,.11)}
.tmd-faq-item__answer p{margin:10px 0 0}

.tmd-baladi-anchor-target{display:block;position:relative;top:-16px;visibility:hidden}
.tmd-baladi-page-shell{scroll-behavior:smooth}
.tmd-baladi-single__content .ez-toc-container,
.tmd-baladi-single__content .lwptoc,
.tmd-baladi-single__content .toc_container{display:none!important}

@media (max-width:960px){
  .tmd-baladi-single__hero{grid-template-columns:1fr;direction:rtl}
  .tmd-baladi-single__gallery-main{min-height:390px}
  .tmd-baladi-single__trust-strip{grid-template-columns:repeat(2,1fr)}
  .tmd-trust-item:nth-child(2)::after{display:none}
  .tmd-baladi-single__article-grid{grid-template-columns:1fr;direction:rtl}
  .tmd-baladi-single__toc-column{position:static}
  .tmd-baladi-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}
  .tmd-baladi-single__price-teaser{display:none}
}

@media (max-width:650px){
  .tmd-baladi-page-shell{padding-top:14px}
  .tmd-baladi-single{width:calc(100% - 16px)}
  .tmd-baladi-breadcrumb{font-size:10px;margin-bottom:10px}
  .tmd-baladi-single__gallery,.tmd-baladi-single__specs{border-radius:14px}
  .tmd-baladi-single__gallery{padding:7px}.tmd-baladi-single__gallery-main{min-height:0;aspect-ratio:1.15/1;border-radius:11px}
  .tmd-baladi-single__gallery-badge{top:14px;left:14px;font-size:10px;min-height:34px;padding:6px 10px}
  .tmd-baladi-single__nav{width:34px;height:34px}
  .tmd-baladi-single__thumbs{gap:5px;margin-top:6px}.tmd-baladi-single__thumb{min-width:60px;border-radius:7px}
  .tmd-baladi-single__specs{padding:19px 16px 14px}
  .tmd-baladi-single__piece-name{font-size:34px}.tmd-baladi-single__hero-subtitle{font-size:12px}
  .tmd-baladi-single__trust-strip{margin-bottom:38px;border-radius:12px}.tmd-trust-item{min-height:88px;padding:12px 7px}.tmd-trust-item strong{font-size:11px}.tmd-trust-item small{font-size:9px}
  .tmd-baladi-single__title{font-size:28px}
  .tmd-baladi-toc ol{grid-template-columns:1fr}.tmd-baladi-single__content{grid-template-columns:1fr;gap:10px}
  .tmd-content-card--half,.tmd-content-card--full{grid-column:1/-1}.tmd-content-card{padding:15px 14px;border-radius:11px}
  .tmd-content-card__title,.tmd-content-card--auto > h2{font-size:17px!important}
  .tmd-content-card__split{grid-template-columns:1fr;direction:rtl}.tmd-content-card__copy,.tmd-content-card__media{order:initial!important}
  .tmd-content-card.media-left .tmd-content-card__media{order:1!important}.tmd-content-card.media-left .tmd-content-card__copy{order:2!important}
  .tmd-content-card.media-right .tmd-content-card__copy{order:1!important}.tmd-content-card.media-right .tmd-content-card__media{order:2!important}
  .tmd-faq-section__header h2{font-size:21px!important}.tmd-faq-item summary{font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  .tmd-baladi-page-shell *, .tmd-baladi-page-shell *::before,.tmd-baladi-page-shell *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


/* Hide Easy Table of Contents only inside special Baladi article pages.
   Other categories and regular posts keep their existing TOC. */
.tmd-baladi-single div#ez-toc-container,
.tmd-baladi-single .ez-toc-container,
.tmd-baladi-single .ez-toc-split-section {
  display: none !important;
}

/* Classic Editor saved cards take part in the same visual grid as Gutenberg cards. */
.tmd-classic-cards-output{display:contents}


/* v1.5.3 refinements */
.tmd-baladi-single__spec-row{
  gap:14px;
}
.tmd-baladi-single__spec-icon,
.tmd-baladi-single__details-icon{
  flex:0 0 58px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(145deg,#fff8de,#efd27a);
  color:#b67911;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 10px 22px rgba(171,120,23,.12);
}
.tmd-baladi-single__spec-icon svg,
.tmd-baladi-single__details-icon svg{
  width:34px;
  height:34px;
  display:block;
}
.tmd-baladi-single__spec-label{
  color:#7a6d5a;
  font-size:15px;
  font-weight:700;
  line-height:1.5;
}
.tmd-baladi-single__spec-value{
  font-size:clamp(26px,3vw,38px);
  line-height:1.2;
  font-weight:950;
}
.tmd-baladi-single__details-cta{
  align-items:center;
}
.tmd-baladi-single__details-copy strong{
  display:block;
  font-size:18px;
  line-height:1.45;
  font-weight:900;
}
.tmd-baladi-single__details-copy small{
  display:block;
  margin-top:5px;
  color:#655844;
  font-size:12px;
  line-height:1.8;
}
.tmd-baladi-single__price-teaser{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:16px 18px;
  min-height:84px;
  border-radius:16px;
  background:linear-gradient(135deg,#ffefb8,#dfa739);
  color:#30200a;
  overflow:hidden;
  box-shadow:0 11px 26px rgba(183,128,24,.15);
}
.tmd-baladi-single__price-title{
  display:block;
  margin:0;
  color:#2c1d07;
  font-size:clamp(14px,1.2vw,18px);
  line-height:1.35;
  font-weight:900;
  white-space:nowrap;
}
.tmd-baladi-single__price-icon{
  position:static !important;
  flex:0 0 60px;
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  color:#aa6f08;
}
.tmd-baladi-single__price-icon svg{
  width:56px;
  height:56px;
  display:block;
}
.tmd-baladi-single__sidebar-links{
  display:grid;
  gap:10px;
}
.tmd-baladi-single__sidebar-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 14px;
  border:1px solid rgba(199,145,35,.18);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#2e2922 !important;
  text-align:center;
  text-decoration:none !important;
  font-size:13px;
  font-weight:850;
  line-height:1.7;
  box-shadow:0 8px 18px rgba(54,39,10,.035);
  transition:.2s ease;
}
.tmd-baladi-single__sidebar-link:hover{
  transform:translateY(-2px);
  border-color:rgba(199,145,35,.38);
  color:#8e6212 !important;
  box-shadow:0 12px 22px rgba(54,39,10,.07);
}
@media (max-width:960px){
  .tmd-baladi-single__price-teaser{min-height:72px; display:flex;}
  .tmd-baladi-single__sidebar-links{grid-template-columns:1fr 1fr;}
}
@media (max-width:650px){
  .tmd-baladi-card__media{aspect-ratio:1/1;}
  .tmd-baladi-single__spec-icon,
  .tmd-baladi-single__details-icon{flex-basis:50px;width:50px;height:50px;border-radius:16px;}
  .tmd-baladi-single__spec-icon svg,
  .tmd-baladi-single__details-icon svg{width:30px;height:30px;}
  .tmd-baladi-single__spec-label{font-size:14px;}
  .tmd-baladi-single__spec-value{font-size:clamp(22px,5.6vw,32px);}
  .tmd-baladi-single__details-copy strong{font-size:16px;}
  .tmd-baladi-single__price-title{font-size:14px;white-space:normal;}
  .tmd-baladi-single__price-icon{flex-basis:48px;width:48px;height:48px;}
  .tmd-baladi-single__price-icon svg{width:44px;height:44px;}
  .tmd-baladi-single__sidebar-links{grid-template-columns:1fr;}
  .tmd-baladi-single__sidebar-link{font-size:12px;min-height:44px;}
}


/* v1.5.4 luxury refinement */
.tmd-baladi-single__hero-label{
  font-size:10px;
  padding:6px 11px;
}
.tmd-baladi-single__piece-name{
  margin:10px 0 4px;
  font-size:clamp(28px,3.6vw,40px);
  line-height:1.08;
}
.tmd-baladi-single__hero-subtitle{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.75;
}
.tmd-baladi-single__spec-grid{gap:10px}
.tmd-baladi-single__spec-row{
  gap:12px;
  padding:11px 12px;
  border-radius:16px;
}
.tmd-baladi-single__spec-icon,
.tmd-baladi-single__details-icon,
.tmd-trust-item__icon{
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.92), rgba(255,255,255,.35) 26%, transparent 27%),
    linear-gradient(145deg,#fff7db,#efd178 60%, #dfb34b 100%);
  color:#b57910;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(170,120,18,.12);
}
.tmd-baladi-single__spec-icon{
  flex:0 0 54px;
  width:54px;
  height:54px;
  border-radius:17px;
}
.tmd-baladi-single__spec-icon svg{width:31px;height:31px}
.tmd-baladi-single__spec-label{
  margin-bottom:4px;
  font-size:14px;
  font-weight:700;
}
.tmd-baladi-single__spec-value{
  font-size:clamp(18px,2.2vw,24px);
  line-height:1.28;
}
.tmd-baladi-single__reason-link{font-size:11.5px}
.tmd-baladi-single__details-cta{
  grid-template-columns:28px 1fr 60px;
  min-height:72px;
  padding:10px 12px;
  border-radius:18px;
  background:linear-gradient(105deg,#fffaf0,#f2d27b);
  box-shadow:0 14px 28px rgba(183,128,24,.12);
}
.tmd-baladi-single__details-copy strong{
  font-size:16px;
  line-height:1.35;
}
.tmd-baladi-single__details-copy small{
  margin-top:4px;
  font-size:11px;
}
.tmd-baladi-single__details-icon{
  width:60px;
  height:60px;
  border-radius:19px;
}
.tmd-baladi-single__details-icon svg{width:36px;height:36px}

.tmd-trust-item{
  min-height:112px;
  padding:18px 10px 16px;
}
.tmd-trust-item__icon{
  width:48px;
  height:48px;
  margin-bottom:10px;
  border-radius:50%;
}
.tmd-trust-item__icon svg{width:28px;height:28px}
.tmd-trust-item strong{font-size:15px;line-height:1.35}
.tmd-trust-item small{font-size:11px;line-height:1.7}

.tmd-baladi-single__toc-column{display:grid;gap:14px}
.tmd-baladi-single__price-teaser{
  position:relative;
  margin-top:0;
  margin-bottom:0;
  padding:18px 18px 18px 82px;
  min-height:88px;
  border-radius:20px;
  border:1px solid rgba(199,145,35,.22);
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.44), transparent 20%),
    linear-gradient(135deg,#f7e7a6 0%, #e1b249 58%, #c89223 100%);
  color:#241807;
  overflow:hidden;
  box-shadow:0 20px 34px rgba(168,117,17,.16);
}
.tmd-baladi-single__price-teaser::after{
  content:'';
  position:absolute;
  inset:10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  pointer-events:none;
}
.tmd-baladi-single__price-title{
  position:relative;
  z-index:2;
  font-size:15px;
  line-height:1.4;
  font-weight:950;
  white-space:nowrap;
}
.tmd-baladi-single__price-icon{
  position:absolute !important;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  color:#a96d08;
  filter:drop-shadow(0 6px 10px rgba(126,80,6,.14));
}
.tmd-baladi-single__price-icon svg{width:50px;height:50px}

.tmd-baladi-single__sidebar-links{gap:12px}
.tmd-baladi-single__sidebar-link{
  position:relative;
  justify-content:flex-start;
  min-height:58px;
  padding:14px 50px 14px 18px;
  border:1px solid rgba(199,145,35,.18);
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(254,250,242,.97));
  color:#241f18 !important;
  text-align:right;
  font-size:13px;
  font-weight:900;
  line-height:1.7;
  box-shadow:0 10px 26px rgba(54,39,10,.045);
  overflow:hidden;
}
.tmd-baladi-single__sidebar-link::before{
  content:'';
  position:absolute;
  right:14px;
  top:50%;
  width:20px;
  height:14px;
  transform:translateY(-50%) skewX(-18deg);
  border-radius:2px;
  background:linear-gradient(135deg,#e8bf59,#b67b10);
  box-shadow:0 7px 12px rgba(182,123,16,.18);
}
.tmd-baladi-single__sidebar-link::after{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg,#f0d37b,#c28c1f);
  opacity:.85;
}
.tmd-baladi-single__sidebar-link:hover{
  transform:translateY(-2px);
  border-color:rgba(199,145,35,.4);
  color:#8e6212 !important;
  box-shadow:0 16px 30px rgba(54,39,10,.085);
}

@media (max-width:960px){
  .tmd-baladi-single__price-teaser{display:block; padding-left:82px; min-height:84px;}
  .tmd-baladi-single__price-title{white-space:normal;}
  .tmd-baladi-single__sidebar-links{grid-template-columns:1fr;}
}
@media (max-width:650px){
  .tmd-baladi-single__piece-name{font-size:clamp(25px,7.2vw,34px)}
  .tmd-baladi-single__hero-subtitle{font-size:11px}
  .tmd-baladi-single__spec-icon{flex-basis:48px;width:48px;height:48px;border-radius:15px}
  .tmd-baladi-single__spec-icon svg{width:28px;height:28px}
  .tmd-baladi-single__spec-label{font-size:13px}
  .tmd-baladi-single__spec-value{font-size:clamp(16px,5.2vw,22px)}
  .tmd-baladi-single__details-cta{grid-template-columns:22px 1fr 50px; min-height:66px; padding:9px 10px;}
  .tmd-baladi-single__details-copy strong{font-size:15px}
  .tmd-baladi-single__details-copy small{font-size:10px}
  .tmd-baladi-single__details-icon{width:50px;height:50px;border-radius:16px}
  .tmd-baladi-single__details-icon svg{width:30px;height:30px}
  .tmd-trust-item{min-height:102px}
  .tmd-trust-item__icon{width:42px;height:42px;margin-bottom:8px}
  .tmd-trust-item__icon svg{width:24px;height:24px}
  .tmd-trust-item strong{font-size:13px}
  .tmd-trust-item small{font-size:10px}
  .tmd-baladi-single__price-teaser{padding:14px 14px 14px 66px; min-height:74px; border-radius:16px}
  .tmd-baladi-single__price-icon{left:10px; width:46px; height:46px}
  .tmd-baladi-single__price-icon svg{width:40px;height:40px}
  .tmd-baladi-single__price-title{font-size:13px; line-height:1.45}
  .tmd-baladi-single__sidebar-link{min-height:52px; padding:12px 44px 12px 14px; border-radius:15px; font-size:12px}
  .tmd-baladi-single__sidebar-link::before{right:12px; width:17px; height:12px}
}


/* v1.5.5 controls + premium trust icons */
.tmd-baladi-single__hero-label{font-size:var(--tmd-hero-label-size,10px)}
.tmd-baladi-single__piece-name{font-size:clamp(24px,3.6vw,var(--tmd-hero-name-size,36px))}
.tmd-baladi-single__hero-subtitle{font-size:var(--tmd-hero-subtitle-size,12px)}
.tmd-baladi-single__spec-label{font-size:var(--tmd-hero-spec-label-size,14px)}
.tmd-baladi-single__spec-value{font-size:var(--tmd-hero-spec-value-size,22px)}
.tmd-baladi-single__details-copy strong{font-size:var(--tmd-hero-details-size,16px)}

.tmd-trust-item__icon{
  position:relative;
  border:1px solid rgba(187,132,20,.18);
  background:linear-gradient(145deg,#fffdf7,#f8edcf);
  color:#b47a12;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 10px 24px rgba(123,83,8,.08);
}
.tmd-trust-item__icon::after{
  content:'';
  position:absolute;
  inset:5px;
  border:1px solid rgba(185,129,18,.10);
  border-radius:inherit;
  pointer-events:none;
}
.tmd-trust-item--gold .tmd-trust-item__icon{background:linear-gradient(145deg,#fff9e8,#efd88f);color:#a96d06}
.tmd-trust-item--craft .tmd-trust-item__icon{background:linear-gradient(145deg,#fff,#f7f0df);color:#9b6d24}
.tmd-trust-item--invest .tmd-trust-item__icon{background:linear-gradient(145deg,#f8fff9,#e5f2e7);color:#327a47;border-color:rgba(50,122,71,.16)}
.tmd-trust-item--heritage .tmd-trust-item__icon{background:linear-gradient(145deg,#fffaf0,#f3dfb0);color:#a96d13}
.tmd-trust-item--gold .tmd-trust-item__icon svg{width:30px;height:30px}
.tmd-trust-item--craft .tmd-trust-item__icon svg{width:27px;height:27px}
.tmd-trust-item--invest .tmd-trust-item__icon svg{width:27px;height:27px}
.tmd-trust-item--heritage .tmd-trust-item__icon svg{width:29px;height:29px}

@media (max-width:650px){
  .tmd-baladi-single__piece-name{font-size:clamp(24px,7vw,var(--tmd-hero-name-size,36px))}
  .tmd-baladi-single__hero-subtitle{font-size:min(var(--tmd-hero-subtitle-size,12px),13px)}
  .tmd-baladi-single__hero-label{font-size:min(var(--tmd-hero-label-size,10px),12px)}
  .tmd-baladi-single__spec-label{font-size:min(var(--tmd-hero-spec-label-size,14px),14px)}
  .tmd-baladi-single__spec-value{font-size:min(var(--tmd-hero-spec-value-size,22px),24px)}
  .tmd-baladi-single__details-copy strong{font-size:min(var(--tmd-hero-details-size,16px),17px)}
}


/* v1.5.6 — Desktop-only hero gallery: vertical thumbnails at left.
   Tablet and mobile keep the previous layout unchanged. */
@media (min-width:1100px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:108px;
    --tmd-desktop-thumb-gap:12px;
    --tmd-desktop-thumb-size:108px;
    display:grid;
    grid-template-columns:var(--tmd-desktop-thumb-width) minmax(0,1fr);
    grid-template-rows:auto;
    column-gap:var(--tmd-desktop-thumb-gap);
    align-items:start;
    direction:ltr;
    padding:12px;
  }

  .tmd-baladi-single__gallery-main{
    grid-column:2;
    grid-row:1;
    width:100%;
    max-width:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    min-height:0;
    height:auto;
    aspect-ratio:1 / 1;
    justify-self:start;
    border-radius:18px;
    box-shadow:0 12px 28px rgba(67,46,10,.07);
  }

  .tmd-baladi-single__gallery-badge{
    top:24px;
    left:calc(12px + var(--tmd-desktop-thumb-width) + var(--tmd-desktop-thumb-gap) + 22px);
    right:auto;
  }

  .tmd-baladi-single__thumbs{
    grid-column:1;
    grid-row:1;
    display:flex;
    flex-direction:column;
    gap:var(--tmd-desktop-thumb-gap);
    align-self:start;
    margin-top:0;
    padding:0 2px 0 0;
    height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    max-height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(190,137,35,.28) transparent;
  }

  .tmd-baladi-single__thumbs::-webkit-scrollbar{width:5px;height:5px}
  .tmd-baladi-single__thumbs::-webkit-scrollbar-track{background:transparent}
  .tmd-baladi-single__thumbs::-webkit-scrollbar-thumb{background:rgba(190,137,35,.30);border-radius:999px}

  .tmd-baladi-single__thumb{
    flex:0 0 var(--tmd-desktop-thumb-size);
    width:calc(var(--tmd-desktop-thumb-width) - 8px);
    min-width:calc(var(--tmd-desktop-thumb-width) - 8px);
    height:var(--tmd-desktop-thumb-size);
    aspect-ratio:1 / 1;
    border-radius:14px;
    border:1px solid rgba(199,145,32,.22);
    background:#f7f0e5;
    box-shadow:0 7px 18px rgba(49,35,8,.055);
  }

  .tmd-baladi-single__thumb.is-active{
    opacity:1;
    border-color:#d39a2a;
    box-shadow:0 0 0 2px rgba(211,154,42,.18), 0 9px 20px rgba(49,35,8,.08);
  }

  .tmd-baladi-single__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .tmd-baladi-single__nav{
    width:42px;
    height:42px;
    background:rgba(255,255,255,.96);
    border-color:rgba(0,0,0,.07);
    box-shadow:0 8px 22px rgba(0,0,0,.10);
  }
  .tmd-baladi-single__nav--prev{left:16px}
  .tmd-baladi-single__nav--next{right:16px}
}

@media (min-width:1100px) and (max-width:1280px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:96px;
    --tmd-desktop-thumb-size:96px;
    --tmd-desktop-thumb-gap:10px;
  }
}

@media (min-width:1281px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:112px;
    --tmd-desktop-thumb-size:112px;
    --tmd-desktop-thumb-gap:12px;
  }
}


/* =========================================================
   v1.6.1 — Exact reference-style Gold Price Menu
   Uses the user's real gold-bar image from tamandahab.com.
   ========================================================= */
.tmd-gold-price-menu,
.tmd-gold-price-menu *{box-sizing:border-box}

.tmd-gold-price-menu{
  width:100%;
  direction:rtl;
  font-family:inherit;
}

.tmd-gold-price-menu__head{
  position:relative;
  min-height:104px;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  direction:ltr;
  align-items:center;
  gap:18px;
  padding:12px 20px;
  border:2px solid #d39b1f;
  border-radius:30px;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.72),transparent 19%),
    linear-gradient(118deg,#ffefad 0%,#f0ca63 35%,#dfa52a 100%);
  box-shadow:
    inset 0 0 0 6px rgba(255,255,255,.23),
    inset 0 1px 0 rgba(255,255,255,.72),
    0 14px 26px rgba(157,105,12,.14);
  overflow:hidden;
}
.tmd-gold-price-menu__head::after{
  content:'';
  position:absolute;
  left:111px;
  top:23px;
  bottom:23px;
  width:1px;
  background:linear-gradient(180deg,rgba(167,111,11,.06),rgba(167,111,11,.68),rgba(167,111,11,.06));
}
.tmd-gold-price-menu__head-icon{
  position:relative;
  z-index:2;
  width:82px;
  height:72px;
  display:grid;
  place-items:center;
  justify-self:center;
}
.tmd-gold-price-menu__head-icon img{
  display:block;
  width:78px;
  height:78px;
  object-fit:contain;
  filter:drop-shadow(0 8px 8px rgba(125,78,0,.18));
}
.tmd-gold-price-menu__head h3{
  position:relative;
  z-index:2;
  direction:rtl;
  margin:0;
  color:#2b1a05;
  text-align:center;
  font-size:clamp(18px,1.45vw,22px);
  line-height:1.42;
  font-weight:900;
  letter-spacing:-.015em;
}

.tmd-gold-price-menu__items{
  display:grid;
  gap:14px;
  margin-top:16px;
}
.tmd-gold-price-menu__item{
  position:relative;
  min-height:88px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 78px;
  direction:ltr;
  align-items:center;
  gap:12px;
  padding:10px 15px;
  border:1.7px solid #dcab36;
  border-radius:25px;
  background:
    radial-gradient(circle at 16% 50%,rgba(250,241,217,.55),transparent 22%),
    linear-gradient(180deg,#fffefd 0%,#fffaf2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 24px rgba(92,66,15,.065);
  color:#23170b!important;
  text-decoration:none!important;
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.tmd-gold-price-menu__item::after{
  content:'';
  position:absolute;
  right:88px;
  top:18px;
  bottom:18px;
  width:1px;
  background:linear-gradient(180deg,rgba(214,168,49,.08),rgba(214,168,49,.62),rgba(214,168,49,.08));
}
.tmd-gold-price-menu__item:hover{
  transform:translateY(-1px);
  border-color:#cf961c;
  box-shadow:0 14px 28px rgba(92,66,15,.095);
}
.tmd-gold-price-menu__arrow{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  justify-self:center;
  border-radius:50%;
  background:linear-gradient(180deg,#fbf5e7,#f8f0db);
  color:#af7817;
}
.tmd-gold-price-menu__arrow svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tmd-gold-price-menu__label{
  min-width:0;
  direction:rtl;
  color:#25170b;
  text-align:center;
  font-size:clamp(14px,1.25vw,18px);
  line-height:1.55;
  font-weight:850;
  overflow-wrap:normal;
  word-break:normal;
  white-space:normal;
}
.tmd-gold-price-menu__item-icon{
  width:70px;
  height:64px;
  display:grid;
  place-items:center;
  justify-self:center;
}
.tmd-gold-price-menu__item-icon img{
  display:block;
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 7px 8px rgba(137,88,3,.16));
}

/* Give the desktop sidebar enough room for the reference composition. */
@media (min-width:961px){
  .tmd-baladi-single__article-grid{
    grid-template-columns:minmax(300px,330px) minmax(0,1fr)!important;
    gap:24px!important;
  }
  .tmd-baladi-single__toc-column{min-width:0}
}

@media (max-width:1100px) and (min-width:961px){
  .tmd-baladi-single__article-grid{grid-template-columns:300px minmax(0,1fr)!important}
  .tmd-gold-price-menu__head{grid-template-columns:78px minmax(0,1fr);min-height:94px;border-radius:27px;padding-inline:15px}
  .tmd-gold-price-menu__head::after{left:94px}
  .tmd-gold-price-menu__head-icon img{width:68px;height:68px}
  .tmd-gold-price-menu__head h3{font-size:18px}
  .tmd-gold-price-menu__item{grid-template-columns:52px minmax(0,1fr) 68px;min-height:82px;border-radius:23px;padding-inline:12px;gap:8px}
  .tmd-gold-price-menu__item::after{right:76px}
  .tmd-gold-price-menu__label{font-size:14px}
  .tmd-gold-price-menu__item-icon img{width:56px;height:56px}
}

@media (max-width:960px){
  .tmd-gold-price-menu__head{grid-template-columns:78px minmax(0,1fr);min-height:92px;border-radius:25px}
  .tmd-gold-price-menu__head::after{left:97px;top:19px;bottom:19px}
  .tmd-gold-price-menu__head-icon img{width:66px;height:66px}
  .tmd-gold-price-menu__head h3{font-size:18px}
  .tmd-gold-price-menu__item{grid-template-columns:54px minmax(0,1fr) 72px;min-height:82px;border-radius:23px}
  .tmd-gold-price-menu__item::after{right:82px;top:15px;bottom:15px}
  .tmd-gold-price-menu__label{font-size:15px}
  .tmd-gold-price-menu__item-icon img{width:58px;height:58px}
}

@media (max-width:640px){
  .tmd-gold-price-menu__items{gap:11px;margin-top:12px}
  .tmd-gold-price-menu__head{grid-template-columns:64px minmax(0,1fr);min-height:78px;padding:9px 12px;border-radius:21px;gap:10px}
  .tmd-gold-price-menu__head::after{left:76px;top:15px;bottom:15px}
  .tmd-gold-price-menu__head-icon{width:58px;height:56px}
  .tmd-gold-price-menu__head-icon img{width:54px;height:54px}
  .tmd-gold-price-menu__head h3{font-size:15px;line-height:1.45}
  .tmd-gold-price-menu__item{grid-template-columns:45px minmax(0,1fr) 60px;min-height:70px;padding:8px 10px;gap:7px;border-radius:19px}
  .tmd-gold-price-menu__item::after{right:67px;top:13px;bottom:13px}
  .tmd-gold-price-menu__arrow{width:36px;height:36px}
  .tmd-gold-price-menu__arrow svg{width:19px;height:19px}
  .tmd-gold-price-menu__label{font-size:12.5px;line-height:1.55}
  .tmd-gold-price-menu__item-icon{width:54px;height:50px}
  .tmd-gold-price-menu__item-icon img{width:48px;height:48px}
}


/* v1.6.3 desktop slider + referenced icon images */
@media (min-width:1100px){
  .tmd-baladi-single__hero{
    grid-template-columns:minmax(0, 640px) minmax(350px, 1fr);
    justify-content:space-between;
    align-items:start;
  }
  .tmd-baladi-single__gallery{
    width:100%;
    max-width:640px;
    justify-self:start;
  }
  .tmd-baladi-single__gallery-main{
    max-width:500px;
    min-width:0;
  }
  .tmd-baladi-single__slide,
  .tmd-baladi-single__image{
    width:100%;
    height:100%;
  }
  .tmd-baladi-single__image{
    object-fit:contain;
    background:#f4eadc;
  }
}

.tmd-baladi-single__spec-icon,
.tmd-baladi-single__details-icon,
.tmd-trust-item__icon{
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
}
.tmd-baladi-single__spec-icon img,
.tmd-baladi-single__details-icon img,
.tmd-trust-item__icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.tmd-baladi-single__spec-icon{
  flex:0 0 46px;
  width:46px;
  height:46px;
}
.tmd-baladi-single__details-icon{
  width:48px;
  height:48px;
}
.tmd-trust-item__icon{
  width:42px;
  height:42px;
  margin-bottom:8px;
}
.tmd-trust-item__icon::after{display:none !important;}
.tmd-trust-item--gold .tmd-trust-item__icon,
.tmd-trust-item--craft .tmd-trust-item__icon,
.tmd-trust-item--invest .tmd-trust-item__icon,
.tmd-trust-item--heritage .tmd-trust-item__icon{color:inherit;border-color:transparent;}

.tmd-baladi-single__content p{
  font-size:15px;
}
.tmd-baladi-toc a{
  font-size:15px;
  line-height:2;
}
.tmd-baladi-toc__num{
  width:29px;
  min-width:29px;
  height:29px;
  font-size:15px;
}
.tmd-gold-price-menu__head h3{
  font-size:19px;
}
.tmd-gold-price-menu__label{
  font-size:15px;
}

@media (max-width:650px){
  .tmd-baladi-single__spec-icon{flex-basis:38px;width:38px;height:38px;}
  .tmd-baladi-single__details-icon{width:40px;height:40px;}
  .tmd-trust-item__icon{width:34px;height:34px;}
  .tmd-baladi-toc a{font-size:14px;line-height:1.85;}
  .tmd-baladi-toc__num{width:27px;min-width:27px;height:27px;font-size:14px;}
  .tmd-gold-price-menu__head h3{font-size:17px;}
  .tmd-gold-price-menu__label{font-size:14px;}
}


/* v1.6.5 desktop thumbs strip refinement */
@media (min-width:1100px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:122px;
    --tmd-desktop-thumb-gap:12px;
    --tmd-desktop-thumb-size:110px;
    grid-template-columns:var(--tmd-desktop-thumb-width) minmax(0,1fr);
    column-gap:16px;
  }
  .tmd-baladi-single__thumbs{
    width:var(--tmd-desktop-thumb-width);
    padding:8px 10px 8px 6px;
    height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3) + 16px);
    max-height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3) + 16px);
    border:1px solid rgba(214,175,92,.35);
    border-radius:24px;
    background:linear-gradient(180deg,#fffdfa,#fbf4e9);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
    scrollbar-gutter:stable;
  }
  .tmd-baladi-single__thumbs::-webkit-scrollbar{width:6px;height:6px}
  .tmd-baladi-single__thumbs::-webkit-scrollbar-track{background:transparent}
  .tmd-baladi-single__thumbs::-webkit-scrollbar-thumb{background:rgba(201,152,41,.34);border-radius:999px}
  .tmd-baladi-single__thumbs::-webkit-scrollbar-button{display:none;width:0;height:0}
  .tmd-baladi-single__thumb{
    width:100%;
    min-width:0;
    height:var(--tmd-desktop-thumb-size);
    flex:0 0 var(--tmd-desktop-thumb-size);
    border-radius:18px;
    overflow:hidden;
  }
  .tmd-baladi-single__thumb img{
    object-fit:cover;
  }
  .tmd-baladi-single__gallery-main{
    max-width:520px;
  }
}
@media (min-width:1100px) and (max-width:1280px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:114px;
    --tmd-desktop-thumb-size:102px;
    --tmd-desktop-thumb-gap:10px;
    column-gap:14px;
  }
}
@media (min-width:1281px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:122px;
    --tmd-desktop-thumb-size:110px;
    --tmd-desktop-thumb-gap:12px;
  }
}


/* v1.6.6 remove extra outer frame from desktop thumbs and enforce square thumbnails */
@media (min-width:1100px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:116px;
    --tmd-desktop-thumb-size:116px;
    --tmd-desktop-thumb-gap:14px;
    column-gap:16px;
  }
  .tmd-baladi-single__thumbs{
    width:calc(var(--tmd-desktop-thumb-size) + 10px);
    padding:0 4px 0 0;
    height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    max-height:calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    border:none;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    scrollbar-gutter:stable;
  }
  .tmd-baladi-single__thumb{
    width:var(--tmd-desktop-thumb-size);
    min-width:var(--tmd-desktop-thumb-size);
    height:var(--tmd-desktop-thumb-size);
    flex:0 0 var(--tmd-desktop-thumb-size);
    align-self:flex-start;
    aspect-ratio:1 / 1;
    border-radius:18px;
    overflow:hidden;
  }
  .tmd-baladi-single__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
}
@media (min-width:1100px) and (max-width:1280px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:104px;
    --tmd-desktop-thumb-size:104px;
    --tmd-desktop-thumb-gap:12px;
    column-gap:14px;
  }
  .tmd-baladi-single__thumbs{
    width:calc(var(--tmd-desktop-thumb-size) + 8px);
  }
}
@media (min-width:1281px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:116px;
    --tmd-desktop-thumb-size:116px;
    --tmd-desktop-thumb-gap:14px;
  }
}


/* v1.6.7 move desktop thumbs away from scrollbar */
@media (min-width:1100px){
  .tmd-baladi-single__thumbs{
    width:calc(var(--tmd-desktop-thumb-size) + 22px);
    padding:0 14px 0 0;
  }
}
@media (min-width:1100px) and (max-width:1280px){
  .tmd-baladi-single__thumbs{
    width:calc(var(--tmd-desktop-thumb-size) + 20px);
    padding-right:12px;
  }
}


/* v1.6.8 desktop slider balance and scrollbar separation */
@media (min-width:1100px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-visible-height: calc((var(--tmd-desktop-thumb-size) * 4) + (var(--tmd-desktop-thumb-gap) * 3));
    grid-template-columns: calc(var(--tmd-desktop-thumb-size) + 24px) minmax(0, var(--tmd-desktop-visible-height));
    column-gap: 18px;
    align-items: start;
    justify-content: start;
  }
  .tmd-baladi-single__thumbs{
    width: calc(var(--tmd-desktop-thumb-size) + 24px);
    height: var(--tmd-desktop-visible-height);
    max-height: var(--tmd-desktop-visible-height);
    padding: 0 0 0 14px;
    direction: rtl;
    scrollbar-gutter: stable both-edges;
  }
  .tmd-baladi-single__thumb{
    direction: ltr;
  }
  .tmd-baladi-single__gallery-main{
    width: min(100%, var(--tmd-desktop-visible-height));
    max-width: var(--tmd-desktop-visible-height);
    min-width: 0;
    min-height: var(--tmd-desktop-visible-height);
    aspect-ratio: 1 / 1;
    align-self: start;
    justify-self: start;
  }
  .tmd-baladi-single__slide,
  .tmd-baladi-single__image{
    width: 100%;
    height: 100%;
  }
  .tmd-baladi-single__image{
    object-fit: contain;
    object-position: center center;
  }
}
@media (min-width:1100px) and (max-width:1280px){
  .tmd-baladi-single__gallery{
    column-gap: 16px;
  }
  .tmd-baladi-single__thumbs{
    width: calc(var(--tmd-desktop-thumb-size) + 22px);
    padding-left: 12px;
  }
}


/* v1.6.9 gallery badge desktop positioning */
@media (min-width:1100px){
  .tmd-baladi-single__gallery-badge{
    top:19px;
    left:calc(24px + var(--tmd-desktop-thumb-width) + var(--tmd-desktop-thumb-gap) + 22px);
  }
}


/* v1.6.10 desktop slider arrow positions */
@media (min-width:1100px){
  .tmd-baladi-single__nav--next{
    right:5px;
  }
  .tmd-baladi-single__nav--prev{
    left:5px;
  }
}


/* v1.6.11 — Square hero/slider media on tablet + desktop only.
   Mobile (<=650px) is intentionally untouched. */
@media (min-width:651px){
  .tmd-baladi-single__gallery-main{
    width:100%;
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
  }

  .tmd-baladi-single__slide{
    width:100%;
    height:100%;
    aspect-ratio:1 / 1;
  }

  .tmd-baladi-single__image{
    width:100%;
    height:100%;
    object-position:center center;
  }

  .tmd-baladi-single__thumb{
    aspect-ratio:1 / 1 !important;
  }

  .tmd-baladi-single__thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
}

/* Keep the desktop square geometry explicit after all earlier desktop rules. */
@media (min-width:1100px){
  .tmd-baladi-single__gallery-main{
    width:min(100%, var(--tmd-desktop-visible-height));
    max-width:var(--tmd-desktop-visible-height);
    min-height:var(--tmd-desktop-visible-height) !important;
    height:var(--tmd-desktop-visible-height) !important;
    aspect-ratio:1 / 1 !important;
  }

  .tmd-baladi-single__thumb{
    width:var(--tmd-desktop-thumb-size);
    min-width:var(--tmd-desktop-thumb-size);
    height:var(--tmd-desktop-thumb-size);
    flex-basis:var(--tmd-desktop-thumb-size);
    aspect-ratio:1 / 1 !important;
  }
}


/* v1.6.12 — true square geometry on tablet/desktop; phone unchanged */
@media (min-width:651px) and (max-width:1099px){
  .tmd-baladi-single__gallery-main{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:1 / 1 !important;
  }
  .tmd-baladi-single__slide{
    inset:0;
    width:100% !important;
    height:100% !important;
    aspect-ratio:1 / 1 !important;
  }
  .tmd-baladi-single__image{
    width:100% !important;
    height:100% !important;
    object-fit:contain;
    object-position:center;
  }
  .tmd-baladi-single__thumb{
    aspect-ratio:1 / 1 !important;
    height:auto !important;
  }
  .tmd-baladi-single__thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
  }
}

@media (min-width:1100px){
  .tmd-baladi-single__gallery{
    --tmd-desktop-thumb-width:132px;
    --tmd-desktop-thumb-gap:16px;
    --tmd-desktop-thumb-size:108px;
    --tmd-desktop-main-size:468px;
    width:640px;
    max-width:640px;
    grid-template-columns:var(--tmd-desktop-thumb-width) var(--tmd-desktop-main-size) !important;
    grid-template-rows:var(--tmd-desktop-main-size) !important;
    column-gap:var(--tmd-desktop-thumb-gap) !important;
    align-items:start;
    justify-content:start;
    padding:12px;
  }

  .tmd-baladi-single__gallery-main{
    grid-column:2;
    grid-row:1;
    width:var(--tmd-desktop-main-size) !important;
    min-width:var(--tmd-desktop-main-size) !important;
    max-width:var(--tmd-desktop-main-size) !important;
    height:var(--tmd-desktop-main-size) !important;
    min-height:var(--tmd-desktop-main-size) !important;
    max-height:var(--tmd-desktop-main-size) !important;
    aspect-ratio:1 / 1 !important;
    align-self:start;
    justify-self:start;
  }

  .tmd-baladi-single__slide{
    inset:0;
    width:100% !important;
    height:100% !important;
    aspect-ratio:1 / 1 !important;
  }

  .tmd-baladi-single__image{
    width:100% !important;
    height:100% !important;
    object-fit:contain;
    object-position:center center;
  }

  .tmd-baladi-single__thumbs{
    grid-column:1;
    grid-row:1;
    width:var(--tmd-desktop-thumb-width) !important;
    min-width:var(--tmd-desktop-thumb-width) !important;
    height:var(--tmd-desktop-main-size) !important;
    min-height:var(--tmd-desktop-main-size) !important;
    max-height:var(--tmd-desktop-main-size) !important;
    gap:12px;
    padding:0 0 0 14px !important;
    margin:0;
    overflow-y:auto;
    overflow-x:hidden;
    direction:rtl;
    scrollbar-gutter:stable;
  }

  .tmd-baladi-single__thumb{
    direction:ltr;
    width:var(--tmd-desktop-thumb-size) !important;
    min-width:var(--tmd-desktop-thumb-size) !important;
    max-width:var(--tmd-desktop-thumb-size) !important;
    height:var(--tmd-desktop-thumb-size) !important;
    min-height:var(--tmd-desktop-thumb-size) !important;
    max-height:var(--tmd-desktop-thumb-size) !important;
    flex:0 0 var(--tmd-desktop-thumb-size) !important;
    aspect-ratio:1 / 1 !important;
  }

  .tmd-baladi-single__thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
  }
}


/* v1.6.13 — Fix homepage carousel arrow order and make controls more prominent */
.tmd-baladi__arrows{
  direction:ltr;
  gap:12px;
}
.tmd-baladi__arrow{
  width:52px;
  height:52px;
  border:1.5px solid rgba(184,137,39,.42);
  background:rgba(255,255,255,.97);
  color:#a97416;
  box-shadow:0 10px 28px rgba(70,48,12,.13), inset 0 1px 0 rgba(255,255,255,.95);
}
.tmd-baladi__arrow svg{
  width:21px;
  height:21px;
  stroke-width:2.4;
}
.tmd-baladi__arrow:hover{
  transform:translateY(-2px) scale(1.03);
  background:linear-gradient(145deg,#c89527,#e2bd65);
  color:#fff;
  border-color:#c89527;
  box-shadow:0 13px 30px rgba(154,104,13,.24);
}
.tmd-baladi__arrow:disabled{
  opacity:.42;
  box-shadow:0 6px 16px rgba(70,48,12,.06);
}


/* v1.6.14 clean homepage scroll section background */
.tmd-baladi--scroll{
  background:#fffdfa;
  background-image:linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,247,239,.98));
}
.tmd-baladi__glow{
  display:none;
}
.tmd-baladi__rail{
  align-items:start;
  background:transparent;
}
.tmd-baladi-card__body{
  background:#fff;
}
.tmd-baladi__hint{
  background:transparent;
}


/* v1.6.15 remove clipped grey shadow behind homepage cards */
.tmd-baladi--scroll .tmd-baladi__rail{
  background:transparent !important;
  box-shadow:none !important;
}
.tmd-baladi--scroll .tmd-baladi-card{
  box-shadow:none !important;
}
.tmd-baladi--scroll .tmd-baladi-card:hover{
  box-shadow:none !important;
}
.tmd-baladi--scroll .tmd-baladi-card__body{
  box-shadow:none !important;
}


/* v1.6.16 card intro/outro ordering + refined question icon */
.tmd-content-card__intro{margin-bottom:14px;}
.tmd-content-card__outro{margin-top:14px;}
.tmd-content-card__intro > :last-child,
.tmd-content-card__outro > :last-child{margin-bottom:0;}
.tmd-content-card__text strong,
.tmd-content-card__list strong{font-weight:900;color:inherit;}
.tmd-content-card__text a,
.tmd-content-card__list a{color:#9d6810;text-decoration:underline;text-underline-offset:3px;}
.tmd-content-card__icon svg{display:block;}


/* v1.6.17 custom question icon from tamandahab.com */
.tmd-content-card__icon--question{
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  width:44px;
  height:44px;
  flex-basis:44px;
}
.tmd-question-icon-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.tmd-faq-section__icon .tmd-question-icon-image{
  width:42px;
  height:42px;
  object-fit:contain;
}


/* v1.6.19 gallery badge positioning + crown on right */
@media (min-width:1100px){
  .tmd-baladi-single__gallery-badge{
    top:19px;
    left:173px;
    right:auto;
    direction:rtl;
  }
  .tmd-baladi-single__gallery-badge-icon{
    order:0;
  }
  .tmd-baladi-single__gallery-badge > span:not(.tmd-baladi-single__gallery-badge-icon){
    order:1;
  }
}


/* v1.6.20 article links + requested mobile typography */
.tmd-baladi-single__content a,
.tmd-content-card__text a,
.tmd-content-card__intro a,
.tmd-content-card__outro a,
.tmd-content-card__list a{
  text-decoration:none !important;
  text-underline-offset:3px;
}
.tmd-baladi-single__content a:hover,
.tmd-baladi-single__content a:focus-visible,
.tmd-content-card__text a:hover,
.tmd-content-card__text a:focus-visible,
.tmd-content-card__intro a:hover,
.tmd-content-card__intro a:focus-visible,
.tmd-content-card__outro a:hover,
.tmd-content-card__outro a:focus-visible,
.tmd-content-card__list a:hover,
.tmd-content-card__list a:focus-visible{
  text-decoration:underline !important;
}

@media (max-width:650px){
  .tmd-baladi-single__content p{
    font-size:16px;
  }
  .tmd-gold-price-menu__label{
    font-size:16px;
  }
  .tmd-baladi-toc a{
    font-size:15px;
  }
  .tmd-content-card__title,
  .tmd-content-card--auto > h2{
    font-size:18px !important;
  }
  .tmd-content-card__list li{
    font-size:16px;
  }
}


/* v1.6.21 direct investment-card anchor */
#tmd-investment-reason.tmd-content-card--investment{
  scroll-margin-top:96px;
}
@media (max-width:650px){
  #tmd-investment-reason.tmd-content-card--investment{
    scroll-margin-top:72px;
  }
}


/* v1.7.2 — Author biography, only inside the enabled Taman Dahab single template. */
.tmd-baladi-page-shell .tmd-author-card {
  width: min(1080px, 100%);
  margin: clamp(36px, 5vw, 64px) auto 4px;
  padding: 10px clamp(12px, 4vw, 28px) 22px;
  text-align: center;
  direction: rtl;
  color: #151515;
  background: rgba(255, 255, 255, .93);
  border-radius: 16px;
}
.tmd-baladi-page-shell .tmd-author-card__top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  margin-bottom: 18px;
}
.tmd-baladi-page-shell .tmd-author-card__line {
  height: 1px;
  background: #e2e7ec;
  flex: 1 1 auto;
  min-width: 0;
}
.tmd-baladi-page-shell .tmd-author-card__avatar-link {
  display: block;
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none !important;
}
.tmd-baladi-page-shell .tmd-author-card__avatar-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.tmd-baladi-page-shell .tmd-author-card__name {
  margin: 0 auto 22px;
  font-size: clamp(23px, 3.4vw, 29px);
  line-height: 1.5;
  font-weight: 800;
}
.tmd-baladi-page-shell .tmd-author-card__name a {
  color: inherit;
  text-decoration: none !important;
}
.tmd-baladi-page-shell .tmd-author-card__name a:hover,
.tmd-baladi-page-shell .tmd-author-card__name a:focus-visible {
  color: #af8320;
  text-decoration: underline !important;
}
.tmd-baladi-page-shell .tmd-author-card__bio {
  max-width: 990px;
  margin: 0 auto;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 2;
  overflow-wrap: anywhere;
}
.tmd-baladi-page-shell .tmd-author-card__bio p {
  margin: 0 auto 23px;
}
.tmd-baladi-page-shell .tmd-author-card__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 27px auto 31px;
}
.tmd-baladi-page-shell .tmd-author-card__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #fff;
  background: #d4ab32;
  transition: transform .2s ease, background-color .2s ease;
  text-decoration: none !important;
}
.tmd-baladi-page-shell .tmd-author-card__social svg {
  display: block;
  width: 20px;
  height: 20px;
}
.tmd-baladi-page-shell .tmd-author-card__social:hover,
.tmd-baladi-page-shell .tmd-author-card__social:focus-visible {
  color: #fff;
  background: #b48520;
  transform: translateY(-2px);
}
.tmd-baladi-page-shell .tmd-author-card__social:focus-visible,
.tmd-baladi-page-shell .tmd-author-card__avatar-link:focus-visible,
.tmd-baladi-page-shell .tmd-author-card__count:focus-visible {
  outline: 2px solid #8e6518;
  outline-offset: 3px;
}
.tmd-baladi-page-shell .tmd-author-card__count {
  display: inline-block;
  color: #174add;
  font-size: 15px;
  text-decoration: none;
}
.tmd-baladi-page-shell .tmd-author-card__count:hover { text-decoration: underline; }
@media (max-width:650px) {
  .tmd-baladi-page-shell .tmd-author-card { margin-top: 35px; padding: 8px 5px 20px; }
  .tmd-baladi-page-shell .tmd-author-card__avatar-link { flex-basis: 82px; width: 82px; height: 82px; }
  .tmd-baladi-page-shell .tmd-author-card__bio { font-size: 16px; line-height: 1.95; }
  .tmd-baladi-page-shell .tmd-author-card__bio p { margin-bottom: 17px; }
  .tmd-baladi-page-shell .tmd-author-card__socials { gap: 11px; margin: 22px auto 26px; }
  .tmd-baladi-page-shell .tmd-author-card__social { width: 42px; height: 42px; flex-basis: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .tmd-baladi-page-shell .tmd-author-card__social { transition: none; }
}


/* v1.7.3 — self-contained, responsive biography panel, avoids theme typography bleed. */
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card {
  box-sizing: border-box !important;
  display:block !important;
  clear:both;
  width: min(1080px, calc(100% - 24px)) !important;
  max-width:1080px !important;
  margin: clamp(28px, 4vw, 52px) auto 36px !important;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 55px) !important;
  border:1px solid #eadbc3 !important;
  border-radius: 20px !important;
  background:#fff !important;
  box-shadow:0 14px 48px rgba(65,43,8,.075) !important;
  text-align:center !important;
  direction:rtl;
}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__name {
  font-size:clamp(21px, 2.7vw, 30px) !important;
  margin: 0 0 16px !important;
  line-height:1.5 !important;
}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__bio {
  max-width:850px;
  font-size:clamp(15px, 1.5vw, 19px) !important;
  line-height:1.9 !important;
  color:#49433a;
}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__bio p {
  font-size:inherit !important;
  line-height:inherit !important;
  margin:0 0 13px !important;
}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__top{max-width:920px;margin-inline:auto;margin-bottom:18px;}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__socials{margin:22px 0 20px;}
.tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__count{font-size:15px !important;color:#956914;}
/* Rich text headings/lists in saved classic cards: semantic H2/UL/OL. */
.tmd-baladi-page-shell .tmd-content-card__text h2,
.tmd-baladi-page-shell .tmd-content-card__intro h2,
.tmd-baladi-page-shell .tmd-content-card__outro h2 {font-size:clamp(18px,2vw,23px)!important;line-height:1.55!important;color:#29231c;margin:15px 0 10px!important;font-weight:800;}
.tmd-baladi-page-shell .tmd-content-card__text ul,
.tmd-baladi-page-shell .tmd-content-card__text ol,
.tmd-baladi-page-shell .tmd-content-card__intro ul,
.tmd-baladi-page-shell .tmd-content-card__outro ul {margin:12px 0 16px!important;padding-inline-start:25px!important;list-style-position:outside!important;}
.tmd-baladi-page-shell .tmd-content-card__text ul,
.tmd-baladi-page-shell .tmd-content-card__intro ul,
.tmd-baladi-page-shell .tmd-content-card__outro ul {list-style-type:disc!important;}
.tmd-baladi-page-shell .tmd-content-card__text ol {list-style-type:decimal!important;}
.tmd-baladi-page-shell .tmd-content-card__text li,
.tmd-baladi-page-shell .tmd-content-card__intro li,
.tmd-baladi-page-shell .tmd-content-card__outro li {display:list-item!important;line-height:1.85;margin:3px 0!important;}
@media(max-width:650px){
 .tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card {width:calc(100% - 12px)!important;padding:23px 15px!important;margin-bottom:24px!important;border-radius:15px!important;}
 .tmd-baladi-page-shell .tmd-baladi-single > .tmd-author-card .tmd-author-card__bio{font-size:15px!important;}
}

/* Keep list semantics visible in the optional card introduction and outro too. */
.tmd-baladi-page-shell .tmd-content-card__intro ol,
.tmd-baladi-page-shell .tmd-content-card__outro ol {margin:12px 0 16px!important;padding-inline-start:25px!important;list-style-type:decimal!important;list-style-position:outside!important;}

/* v1.8.0: standalone block injected only AFTER native post/page content.
   All overrides are scoped: they never style content above the showcase. */
.tmd-baladi-page-shell.tmd-baladi-injected {
  display: flow-root;
  clear: both;
  isolation: isolate;
  min-width: 0;
  max-width: none;
  text-align: start;
  direction: rtl;
  font-size: 16px;
  line-height: 1.7;
  /* Use the same site font as the legacy single-article template. */
  font-family: var(--theme-font-family, inherit);
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tmd-baladi-injected .tmd-baladi-single,
.tmd-baladi-injected .tmd-baladi-single__article,
.tmd-baladi-injected .tmd-baladi-single__hero {
  min-width: 0;
  max-width: none;
  float: none;
  clear: none;
  text-align: start;
  font-family: inherit;
}
/* Reset inherited Elementor/theme heading & link decoration only inside the plugin. */
.tmd-baladi-injected :is(p, a, img, figure) {
  text-transform: none;
  letter-spacing: normal;
}
.tmd-baladi-injected img { max-width: 100%; }
.tmd-baladi-injected .tmd-baladi-single__piece-name {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-family: inherit;
  font-weight: 950;
  line-height: 1.35;
  text-align: start;
}
.tmd-baladi-injected .tmd-baladi-breadcrumb a,
.tmd-baladi-injected .tmd-author-card a {
  text-decoration: none;
}

/* Keep the selected price-link menu visible even when the native post body
   contains all of the article text and there are no additional meta cards. */
.tmd-baladi-injected .tmd-baladi-single__article-grid--links-only {
  display: block;
}
.tmd-baladi-injected .tmd-baladi-single__article-grid--links-only .tmd-baladi-single__toc-column {
  width: min(940px, 100%);
  max-width: 100%;
  margin-inline: auto;
}

/* v1.8.7 — The same showcase grid/typography for Pages and Posts.
   Avoid a page with just ONE half-width card occupying only the right column;
   two or more cards retain the existing paired layout used by Baladi articles. */
.tmd-baladi-page-shell {
  font-family: var(--theme-font-family, inherit);
  font-size: 16px;
  line-height: 1.7;
}
.tmd-baladi-page-shell .tmd-baladi-single__content-section,
.tmd-baladi-page-shell .tmd-baladi-single__article-grid,
.tmd-baladi-page-shell .tmd-baladi-single__content {
  min-width: 0;
  max-width: 100%;
}
.tmd-baladi-page-shell .tmd-baladi-single__article-grid,
.tmd-baladi-page-shell .tmd-baladi-single__content { width: 100%; }
.tmd-baladi-page-shell .tmd-baladi-single__content > .tmd-content-card--half:only-child,
.tmd-baladi-page-shell .tmd-baladi-single__content > .tmd-content-card--half:only-of-type {
  grid-column: 1 / -1;
}

/* v1.8.8 — Full-bleed PAGE backdrop, identical to the legacy article backdrop.
   Blocksy's constrained entry-content can override the page showcase's normal
   margin / width rules; win that conflict only on the injected showcase.
   Never modify the native content ABOVE the plugin or the legacy post template. */
body .tmd-baladi-page-shell.tmd-baladi-injected {
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
}
/* The background is independently viewport-wide even if the theme constrains
   the entry-content's background painting box. Do not place it in a fixed layer:
   it needs to follow the showcase when there is Elementor content above it. */
.tmd-baladi-page-shell.tmd-baladi-injected > .tmd-baladi-viewport-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.91),rgba(255,255,255,.94)),
    var(--tmd-article-bg, none),
    radial-gradient(circle at 2% 12%,rgba(211,155,44,.09),transparent 20%),
    radial-gradient(circle at 98% 30%,rgba(211,155,44,.08),transparent 23%),
    #fff;
  background-size: cover,cover,auto,auto;
  background-position: center top,center top,left top,right center;
  background-attachment: scroll;
}
/* Constrain the decorative rings INSIDE the full-width backdrop. The legacy
   shell clips these with overflow:hidden; the injected shell must NOT clip the
   viewport-wide background, so its original rings are suppressed here only. */
.tmd-baladi-page-shell.tmd-baladi-injected::before,
.tmd-baladi-page-shell.tmd-baladi-injected::after { content: none; }
.tmd-baladi-injected > .tmd-baladi-viewport-backdrop::before,
.tmd-baladi-injected > .tmd-baladi-viewport-backdrop::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .3;
}
.tmd-baladi-injected > .tmd-baladi-viewport-backdrop::before {
  width: 340px;
  height: 340px;
  left: -210px;
  top: 760px;
  border: 44px double rgba(203,150,42,.18);
  transform: rotate(28deg);
}
.tmd-baladi-injected > .tmd-baladi-viewport-backdrop::after {
  width: 300px;
  height: 300px;
  right: -205px;
  top: 1450px;
  border: 34px double rgba(203,150,42,.14);
  transform: rotate(-20deg);
}
.tmd-baladi-page-shell.tmd-baladi-injected > .tmd-baladi-single { z-index: 1; }

/* v1.8.9 — Editorial image/video text wrap, only for the media content card.
   Unlike a split grid, a float lets subsequent paragraphs take the full line
   below the media's bottom edge. Respect the existing RTL/left-right selector.
   Tablet and phone always stack the media first, independent of side setting. */
.tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__flow {
  display: flow-root;
  direction: rtl;
  min-width: 0;
}
.tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__flow > .tmd-content-card__media {
  display: block;
  float: left;
  width: min(44%, 470px);
  max-width: 100%;
  margin: 0 18px 12px 0;
  padding: 0;
  clear: none;
}
.tmd-baladi-page-shell .tmd-content-card--media.has-media.media-right .tmd-content-card__flow > .tmd-content-card__media {
  float: right;
  margin: 0 0 12px 18px;
}
.tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__flow > .tmd-content-card__text {
  display: block;
  width: auto;
  min-width: 0;
  overflow: visible;
  clear: none;
  margin: 0;
}
.tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__media .tmd-content-card__image,
.tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__media .tmd-content-card__video {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1024px) {
  .tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__flow > .tmd-content-card__media,
  .tmd-baladi-page-shell .tmd-content-card--media.has-media.media-right .tmd-content-card__flow > .tmd-content-card__media {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px 0;
    clear: both;
  }
  .tmd-baladi-page-shell .tmd-content-card--media.has-media .tmd-content-card__flow > .tmd-content-card__text {
    clear: both;
  }
}

/* v1.9.0 — YouTube: iframe embed with a simple open-on-YouTube fallback link. */
.tmd-baladi-page-shell .tmd-content-card__media .tmd-content-card__video-external {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 7px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: #946412;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.tmd-baladi-page-shell .tmd-content-card__media .tmd-content-card__video-external:hover {color:#6b460b;}
.tmd-baladi-page-shell .tmd-content-card__embed--youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #151515;
}
.tmd-baladi-page-shell .tmd-content-card__embed--youtube iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
}


/* v1.9.1: registered shortcode + paragraph editorial card. */
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode-flow {
  display: flow-root; direction: rtl; min-width: 0;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode {
  display: block; box-sizing: border-box; max-width: 100%; min-width: 0;
  overflow-wrap: anywhere;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode-flow > .tmd-content-card__text {
  display: block; min-width: 0; width: auto; clear: none; overflow: visible; margin: 0;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-left .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode {
  float: left; width: min(44%, 470px); margin: 0 18px 14px 0;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-right .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode {
  float: right; width: min(44%, 470px); margin: -17px 0 -17px 18px;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-top .tmd-content-card__shortcode-flow,
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-bottom .tmd-content-card__shortcode-flow {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-bottom .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode { order: 2; }
.tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-bottom .tmd-content-card__shortcode-flow > .tmd-content-card__text { order: 1; }
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode iframe,
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode video,
.tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode img { max-width: 100%; }
@media (max-width: 1024px) {
  .tmd-baladi-page-shell .tmd-content-card--shortcode .tmd-content-card__shortcode-flow {
    display: flex; flex-direction: column; gap: 14px;
  }
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-left .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode,
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-right .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode {
    float: none; width: 100%; max-width: 100%; margin: 0; clear: both;
  }
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-mobile-top .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode { order: 1; }
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-mobile-top .tmd-content-card__shortcode-flow > .tmd-content-card__text { order: 2; }
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-mobile-bottom .tmd-content-card__shortcode-flow > .tmd-content-card__shortcode { order: 2; }
  .tmd-baladi-page-shell .tmd-content-card--shortcode.shortcode-mobile-bottom .tmd-content-card__shortcode-flow > .tmd-content-card__text { order: 1; }
}

/* v1.9.2: show H3 entries nested visually under H2 in the article contents (RTL). */
.tmd-baladi-page-shell .tmd-baladi-toc li.level-3 > a {
  padding-inline-start: 25px;
  font-size: .93em;
}
.tmd-baladi-page-shell .tmd-baladi-toc li.level-3 .tmd-baladi-toc__num {
  opacity: .76;
}

/* v1.9.3: distinct, per-H2 numbered H3 entries in the RTL table of contents. */
.tmd-baladi-page-shell .tmd-baladi-toc li.level-3 > a {
  padding-inline-start: 32px;
  padding-inline-end: 7px;
  font-size: .93em;
  border-inline-start: 2px solid rgba(190, 140, 39, .28);
  margin-inline-start: 8px;
}
.tmd-baladi-page-shell .tmd-baladi-toc li.level-3 .tmd-baladi-toc__num {
  flex: 0 0 auto;
  width: auto;
  min-width: 34px;
  height: 26px;
  padding-inline: 6px;
  border: 1px solid rgba(194, 135, 24, .25);
  border-radius: 8px;
  background: #fffaf0;
  color: #9b6b19;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 650px) {
  .tmd-baladi-page-shell .tmd-baladi-toc li.level-3 > a { padding-inline-start: 22px; }
  .tmd-baladi-page-shell .tmd-baladi-toc li.level-3 .tmd-baladi-toc__num { min-width: 32px; height: 25px; }
}

/* v1.9.4 – grouped H2/H3 contents: golden connected timeline, as in the supplied reference. */
.tmd-baladi-page-shell .tmd-baladi-toc > .tmd-baladi-toc__list {
  display: block;
  padding: 9px 12px;
  margin: 0;
}
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2 {
  position: relative;
  margin: 0 0 12px;
  min-width: 0;
}
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2 > a {
  display: flex;
  align-items: center;
  padding: 7px;
  gap: 9px;
  min-width: 0;
}
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2 > a > .tmd-baladi-toc__num {
  flex: 0 0 29px;
  width: 29px;
  min-width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #fff3d9;
  color: #a56c12;
  font-size: 14px;
  font-weight: 800;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist {
  display: block;
  list-style: none;
  margin: 0;
  padding: 5px 35px 5px 0;
  direction: rtl;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 {
  position: relative;
  margin: 0;
  padding: 0;
  min-width: 0;
}
/* v1.9.5: join the H2 stem to the SAME rail as its H3 branches.
   The sublist has 35px inline-start padding and its child rail is right:-22px,
   hence the shared rail is 35px - 22px = 13px from the parent right edge.
   Extend the stem to overlap the first child rail without a stray parallel line. */
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2:has(> .tmd-baladi-toc__sublist)::before {
  content: '';
  position: absolute;
  right: 13px;
  top: 36px;
  height: 45px;
  width: 1.5px;
  background: #f0d7a9;
  pointer-events: none;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3::before {
  content: '';
  position: absolute;
  right: -22px;
  top: -10px;
  bottom: -10px;
  width: 1.5px;
  background: #f0d7a9;
  pointer-events: none;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3:last-child::before {
  bottom: 50%;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 10px 3px;
  margin: 0;
  border: 0;
  background: transparent;
  min-width: 0;
  font-size: 0.93em;
  line-height: 1.8;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a:hover {
  background: #fffaf0;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a::before {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: #f0d7a9;
  pointer-events: none;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a::after {
  content: '';
  position: absolute;
  right: -15px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ae791b;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 .tmd-baladi-toc__num {
  flex: 0 0 auto;
  width: auto;
  min-width: 34px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #f0d7a9;
  border-radius: 9px;
  color: #9b6b19;
  background: #fffbf2;
  font-size: 12px;
  font-weight: 800;
  opacity: 1;
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 650px) {
  .tmd-baladi-page-shell .tmd-baladi-toc > .tmd-baladi-toc__list { padding: 8px 10px; }
  .tmd-baladi-page-shell .tmd-baladi-toc__sublist { padding-right: 35px; }
  .tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a { padding: 10px 0 10px 3px; }
}


/* v1.9.6 – Clean, capped H2 > H3 TOC branches without decorative dots. */
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2 > a {
  padding: 1px;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a {
  padding: 0;
}
/* The number is 29px tall and its parent has 1px padding;
   the sublist has 5px top padding, so -6px connects the first
   H3 stem directly to the lower edge of the H2 number badge. */
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3:first-child::before {
  top: -6px;
}
/* End at the last horizontal branch, even if this H2 has just one H3.
   Keep the elbow, remove the round point from every H3. */
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3:last-child::before {
  bottom: 50%;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a::after {
  content: none;
  display: none;
}
@media (max-width: 650px) {
  .tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3 > a {
    padding: 0;
  }
  .tmd-baladi-page-shell .tmd-baladi-toc > .tmd-baladi-toc__list {
    padding: 8px;
  }
}

/* v1.9.7: Remove the fixed-height H2 stem which extended beyond
   the last H3 branch when an H2 had only one subsection. The first
   H3 owns the upper segment; its rail meets the bottom of the H2 badge. */
.tmd-baladi-page-shell .tmd-baladi-toc__list > li.level-2:has(> .tmd-baladi-toc__sublist)::before {
  content: none;
  display: none;
}
.tmd-baladi-page-shell .tmd-baladi-toc__sublist > li.level-3:first-child::before {
  top: -12px;
}

/* v1.9.8: Inline images inserted in any classic card text/outro editor. */
.tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image {
  display:block;box-sizing:border-box;max-width:100%;padding:0;border:0;
}
.tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image img {
  display:block;width:100%;max-width:100%;height:auto;object-fit:contain;border-radius:12px;
}
.tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image--center {
  float:none;clear:both;width:min(100%,720px);margin:20px auto;text-align:center;
}
.tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image--right {
  float:right;clear:right;width:min(42%,380px);margin:5px 0 16px 20px;
}
.tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image--left {
  float:left;clear:left;width:min(42%,380px);margin:5px 20px 16px 0;
}
.tmd-baladi-page-shell .tmd-content-card__text:has(> figure.tmd-inline-image)::after {
  content:"";display:table;clear:both;
}
@media(max-width:650px){
  .tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image--right,
  .tmd-baladi-page-shell .tmd-content-card__text > figure.tmd-inline-image--left {
    float:none;clear:both;width:100%;max-width:100%;margin:16px auto;
  }
}

/* v1.9.9: YouTube / direct video positioning in ordinary content cards. */
.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video{display:block;box-sizing:border-box;padding:0;border:0;max-width:100%;overflow:hidden;border-radius:12px;aspect-ratio:16/9;background:#131313}
.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video iframe,.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video video{display:block;width:100%;height:100%;border:0}
.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video--center{float:none;clear:both;width:min(100%,720px);margin:20px auto}
.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video--right{float:right;clear:right;width:min(42%,380px);margin:5px 0 16px 20px}
.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video--left{float:left;clear:left;width:min(42%,380px);margin:5px 20px 16px 0}
@media(max-width:650px){.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video--right,.tmd-baladi-page-shell .tmd-content-card__text figure.tmd-inline-video--left{float:none;clear:both;width:100%;max-width:100%;margin:16px auto}}

/* v1.10.0: image zoom without changing the independent alignment of each media item. */
.tmd-baladi-page-shell figure.tmd-inline-image > a.tmd-inline-image__zoom{display:block;cursor:zoom-in;line-height:0}
.tmd-baladi-page-shell figure.tmd-inline-image > a.tmd-inline-image__zoom img{width:100%;height:auto}
.tmd-baladi-page-shell figure.tmd-inline-image > img{cursor:zoom-in}
body.tmd-inline-zoom-open{overflow:hidden}
.tmd-inline-zoom{position:fixed;inset:0;z-index:2147483000;background:rgba(12,12,14,.92);display:flex;justify-content:center;align-items:center;padding:55px 20px 20px;box-sizing:border-box;cursor:zoom-out}
.tmd-inline-zoom>img{max-width:100%;max-height:calc(100vh - 85px);max-height:calc(100dvh - 85px);width:auto;height:auto;object-fit:contain;cursor:default;box-shadow:0 4px 30px rgba(0,0,0,.35)}
.tmd-inline-zoom__close{position:absolute;top:12px;right:18px;width:42px;height:42px;border:1px solid rgba(255,255,255,.5);background:#282828;color:#fff;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}
.tmd-inline-zoom__close:focus-visible{outline:3px solid #eab84a;outline-offset:3px}

/* v1.10.2: accessible image-zoom controls and horizontal gold scrollbar on overflow. */
.tmd-inline-zoom{display:block;padding:0;cursor:default;direction:ltr}
.tmd-inline-zoom__toolbar{position:absolute;z-index:3;top:clamp(10px,2vw,20px);right:clamp(10px,2vw,22px);display:flex;align-items:center;gap:8px;direction:ltr;padding:7px;border:1px solid rgba(226,180,89,.4);border-radius:17px;background:rgba(25,23,20,.92);box-shadow:0 10px 30px rgba(0,0,0,.3);backdrop-filter:blur(10px)}
.tmd-inline-zoom__control{position:static;display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;padding:0;box-sizing:border-box;border:1px solid rgba(236,197,121,.48);border-radius:12px;background:rgba(255,250,238,.09);color:#ffe0a0;font:600 27px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.tmd-inline-zoom__control:hover:not(:disabled){background:rgba(207,150,42,.22);border-color:#e5b651;transform:translateY(-1px)}
.tmd-inline-zoom__control:disabled{opacity:.35;cursor:not-allowed}
.tmd-inline-zoom__control:focus-visible{outline:3px solid #eab84a;outline-offset:3px}
.tmd-inline-zoom__close{margin-left:8px;border-radius:50%;background:#f8e8c9;color:#46300f;border-color:#edcb84;font-size:29px}
.tmd-inline-zoom__close:hover:not(:disabled){background:#fff3d9;color:#291c0a}
.tmd-inline-zoom__readout{min-width:48px;text-align:center;color:#f7e7c5;font:600 13px/1 Arial,sans-serif;direction:ltr}
.tmd-inline-zoom__viewport{position:absolute;inset:79px 12px 12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c99535 #292723;outline:none;direction:ltr}
.tmd-inline-zoom__viewport::-webkit-scrollbar{height:12px;width:12px}
.tmd-inline-zoom__viewport::-webkit-scrollbar-track{background:#292723;border-radius:12px}
.tmd-inline-zoom__viewport::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#ab741f,#e4b957,#b27b26);border:2px solid #292723;border-radius:12px}
.tmd-inline-zoom__viewport::-webkit-scrollbar-thumb:hover{background:#f0c76d}
.tmd-inline-zoom__canvas{display:flex;justify-content:center;align-items:center;min-width:100%;min-height:100%;width:max-content;height:max-content;box-sizing:border-box}
.tmd-inline-zoom__canvas>img{display:block;max-width:none;max-height:none;min-width:0;width:auto;height:auto;object-fit:contain;box-shadow:0 4px 30px rgba(0,0,0,.35);cursor:default;user-select:none}
@media(max-width:650px){.tmd-inline-zoom__toolbar{gap:5px;padding:5px}.tmd-inline-zoom__control{flex-basis:37px;width:37px;height:37px;font-size:25px}.tmd-inline-zoom__readout{min-width:40px;font-size:12px}.tmd-inline-zoom__viewport{inset:69px 5px 8px}}


/* v1.10.3: registered shortcode embedded directly inside any card paragraph. */
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode{box-sizing:border-box;max-width:100%}
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode--center{float:none;clear:both;width:100%;margin:18px auto}
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode--right{float:right;clear:right;width:min(42%,420px);margin:5px 0 16px 20px}
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode--left{float:left;clear:left;width:min(42%,420px);margin:5px 20px 16px 0}
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode iframe,
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode img,
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode video,
.tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode table{max-width:100%}
.tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode)::after{content:"";display:table;clear:both}
@media(max-width:650px){
  .tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode--right,
  .tmd-baladi-page-shell .tmd-content-card__text > .tmd-inline-shortcode--left{float:none;clear:both;width:100%;max-width:100%;margin:16px auto}
}

/* v1.10.4: a centered inline image must stay beside a floated left/right shortcode
   when space remains, rather than clearing the shortcode and jumping below it.
   flow-root creates an independent formatting context, so the figure respects the
   shortcode float boundary; the image then fills/centers within the remaining text lane. */
.tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--left) > figure.tmd-inline-image--center,
.tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--right) > figure.tmd-inline-image--center {
  float:none;
  clear:none;
  display:flow-root;
  width:auto;
  max-width:720px;
  margin:20px auto;
  overflow:hidden;
}
.tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--left) > figure.tmd-inline-image--center > a.tmd-inline-image__zoom,
.tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--right) > figure.tmd-inline-image--center > a.tmd-inline-image__zoom {
  width:100%;
  max-width:100%;
}
@media(max-width:650px){
  .tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--left) > figure.tmd-inline-image--center,
  .tmd-baladi-page-shell .tmd-content-card__text:has(> .tmd-inline-shortcode--right) > figure.tmd-inline-image--center {
    clear:both;
    width:min(100%,720px);
    max-width:100%;
    margin:18px auto;
    overflow:visible;
  }
}

