/*
 * Catalog page (cat.html and FA/cat.html): the printed brochure as a readable page.
 * Same visual language as the news archive: black band under the header, brand yellow
 * only for actions and markers. [dir="rtl"] mirrors it.
 */
.ct {
  --ct-ink: #000;
  --ct-signal: #e3e208;
  --ct-steel: #e7eaee;
  --ct-graphite: #5d6672;
  --ct-text: #1e2329;
  color: var(--ct-text);
  background: #fff;
  text-align: start;   /* older page styles force left alignment, wrong for Persian */
}
[dir="rtl"] .ct { font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif; }
.ct a:focus-visible { outline: 3px solid var(--ct-signal); outline-offset: 3px; }
.ct img { display: block; max-width: 100%; height: auto; }

/* ---------- hero ---------- */
.ct-hero { background: var(--ct-ink); color: #fff; padding: 120px 0 64px; overflow: hidden; }
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.ct .ct-hero h1 { color: #fff; font-size: 52px; line-height: 1.08; font-weight: 700; margin: 0 0 18px; letter-spacing: -.01em; }
[dir="rtl"] .ct .ct-hero h1 { font-family: inherit; line-height: 1.4; letter-spacing: 0; }
.ct-lede { font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .74); max-width: 54ch; margin: 0 0 30px; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-size: 16px; font-weight: 700;
  border: 2px solid var(--ct-signal);
  background: var(--ct-signal); color: #000 !important;
}
.ct-btn:hover { background: transparent; color: var(--ct-signal) !important; }
.ct-btn small { font-weight: 400; opacity: .75; }
.ct-btn.ct-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.ct-btn.ct-ghost:hover { border-color: #fff; }

/* the brochure cover, set like a printed leaflet on a yellow block */
.ct-cover { position: relative; justify-self: end; width: 100%; max-width: 300px; }
.ct-cover::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; background: var(--ct-signal); }
[dir="rtl"] .ct-cover { justify-self: start; }
[dir="rtl"] .ct-cover::before { inset: 22px 22px -22px -22px; }
.ct-cover img { position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }

/* ---------- contents bar ---------- */
.ct-nav { position: sticky; top: 72px; z-index: 20; background: #fff; border-bottom: 1px solid var(--ct-steel); }
.ct-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ct-nav ul::-webkit-scrollbar { display: none; }
.ct-nav a { display: block; padding: 16px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ct-graphite); border-bottom: 3px solid transparent; }
.ct-nav a:hover { color: var(--ct-text); }
.ct-nav a.is-here { color: var(--ct-text); border-bottom-color: var(--ct-signal); }

/* ---------- capability sections ---------- */
.ct-sec { padding: 72px 0; border-bottom: 1px solid var(--ct-steel); scroll-margin-top: 124px; }
.ct-sec:nth-of-type(even) { background: #f6f7f8; }
.ct-sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.ct-sec:nth-of-type(even) .ct-sec-grid > .ct-media { order: -1; }
.ct .ct-sec h2 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; color: var(--ct-text); }
[dir="rtl"] .ct .ct-sec h2 { font-family: inherit; line-height: 1.5; }
.ct-intro { font-size: 17px; line-height: 1.75; color: var(--ct-graphite); margin: 0 0 22px; }
.ct-list { list-style: none; margin: 0 0 24px; padding: 0; }
.ct-list li { position: relative; padding: 9px 0; padding-inline-start: 22px; border-bottom: 1px solid var(--ct-steel); font-size: 16px; line-height: 1.55; }
.ct-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 17px; width: 8px; height: 8px; background: var(--ct-signal); outline: 1px solid #b9b800; }
.ct-list li small { display: block; color: var(--ct-graphite); font-size: 14px; }
.ct-list a { color: var(--ct-text); text-decoration: underline; text-decoration-color: var(--ct-signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ct-list a:hover { color: #000; }
.ct-sub { font-size: 14px; font-weight: 700; margin: 22px 0 6px; color: var(--ct-text); }
.ct-more { display: inline-block; font-weight: 700; font-size: 15px; color: var(--ct-text); border-bottom: 3px solid var(--ct-signal); padding-bottom: 2px; }
.ct-more:hover { color: #000; border-bottom-color: #000; }

.ct-media figure { margin: 0; }
.ct-media figure + figure { margin-top: 16px; }
.ct-media img { width: 100%; border: 1px solid var(--ct-steel); background: #fff; }
.ct-media figcaption { font-size: 13px; color: var(--ct-graphite); margin-top: 8px; line-height: 1.6; }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-pair figure + figure { margin-top: 0; }
.ct-media.is-narrow { max-width: 340px; }
.ct-sec:nth-of-type(odd) .ct-media.is-narrow { justify-self: end; }
[dir="rtl"] .ct-sec:nth-of-type(odd) .ct-media.is-narrow { justify-self: start; }

/* ---------- closing strip ---------- */
.ct-end { background: var(--ct-ink); color: #fff; padding: 56px 0; }
.ct-end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.ct .ct-end h2 { color: #fff; font-size: 28px; margin: 0 0 8px; font-weight: 700; }
[dir="rtl"] .ct .ct-end h2 { font-family: inherit; }
.ct-end p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 16px; }

@media (max-width: 991px) {
  .ct-hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
  .ct .ct-hero h1 { font-size: 42px; }
  .ct-sec-grid { grid-template-columns: 1fr; gap: 32px; }
  .ct-sec:nth-of-type(even) .ct-sec-grid > .ct-media { order: 0; }
  .ct-media.is-narrow, .ct-sec:nth-of-type(odd) .ct-media.is-narrow { justify-self: start; }
}
@media (max-width: 640px) {
  .ct-hero { padding: 100px 0 48px; }
  .ct-hero-grid { grid-template-columns: 1fr; }
  .ct-cover { max-width: 200px; justify-self: start; margin-top: 8px; }
  [dir="rtl"] .ct-cover { justify-self: end; }
  .ct .ct-hero h1 { font-size: 34px; }
  .ct-sec { padding: 48px 0; }
  .ct .ct-sec h2 { font-size: 26px; }
  .ct-nav { top: 72px; }
}
