@import url("/assets/css/bmd.css");

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lib-hero { padding-block: clamp(36px, 6vw, 64px); }
.lib-crumb {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 22px;
}
[dir="rtl"] .lib-crumb { font-family: var(--font-arabic); letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 700; }
.lib-crumb a { color: var(--steel); text-decoration: none; }
.lib-crumb a:hover { color: var(--navy-900); }
.lib-crumb__sep { color: var(--navy-300); }
.lib-note {
  font-size: 15px; line-height: 1.65; color: var(--steel);
  max-width: 62ch; margin: 8px 0 0;
}
[dir="rtl"] .lib-note { line-height: 1.85; }
.lib-verdict {
  font-family: var(--font-serif); font-size: 22px; line-height: 1.35;
  color: var(--navy-900); max-width: 28ch; margin: 12px 0 0;
}
[dir="rtl"] .lib-verdict { font-family: var(--font-arabic); font-weight: 700; }
.pat-block { margin: 0 0 28px; }
.pat-block h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.015em; color: var(--navy-900); margin: 0 0 10px;
}
[dir="rtl"] .pat-block h2 { font-family: var(--font-arabic); font-weight: 700; letter-spacing: 0; }
.pat-block p { font-size: 17px; line-height: 1.7; color: var(--text-body); max-width: 62ch; margin: 0; }
[dir="rtl"] .pat-block p { line-height: 1.85; }
.pat-list { margin: 0; padding-inline-start: 1.2em; max-width: 62ch; }
.pat-list li { font-size: 17px; line-height: 1.65; color: var(--text-body); margin: 0 0 8px; }
.ex-rights {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--navy-700); border: 1px solid var(--navy-200);
  background: var(--bone); padding: 2px 6px; border-radius: var(--radius-sm);
}
.vid-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: var(--navy-900); margin-bottom: 10px;
}
.vid-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.detail-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bone); }
.detail-main { flex: 1; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px 48px; align-items: start; padding-bottom: var(--section-y);
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-media {
  background: var(--bone-raised); border: 1px solid var(--bone-edge);
  border-top: 2px solid var(--ochre); padding: 14px 14px 18px;
}
.detail-media img {
  display: block; width: 100%; height: auto; max-height: 720px;
  object-fit: contain; margin: 0 auto 12px; background: var(--bone-sunken);
}
.detail-work {
  font-size: 16px; line-height: 1.5; color: var(--navy-900); margin: 0 0 10px;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--steel);
  margin: 0 0 22px;
}
[dir="rtl"] .detail-meta { font-family: var(--font-arabic); font-size: 13px; }
.detail-attr { font-size: 14px; line-height: 1.6; color: var(--steel); margin: 10px 0 0; }
.detail-attr a { overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.detail-h1 {
  font-size: clamp(28px, 3.6vw, 44px); margin: 18px 0 14px; max-width: 22ch;
}
.ex-card__title { color: inherit; text-decoration: none; }
.ex-card__title:hover { color: var(--navy-900); }
a.ex-card__title { display: block; font-size: 14px; line-height: 1.45; color: var(--navy-900); margin: 0 0 8px; }
