/* Shared Tilda project CSS. Language and page guards keep EN/FA unchanged. */
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) {
  --mira-card-line: #d4dfed;
  --mira-card-accent: #234996;
  --mira-card-hover: #f3f6fa;
  --mira-card-pressed: #edf3fc;
}

/* Only native cards with real destinations get the interactive treatment. */
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])) {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  border-color: var(--mira-card-line) !important;
  background-color: #fff !important;
  transition: border-color 200ms ease, background-color 200ms ease;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) .t1032__wrapper:has(.t-card__link[href]:not([href=""])) {
  isolation: isolate;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) .t1032__content .t-card__title:has(.t-card__link[href]:not([href=""])) {
  position: static;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item) .t-card__link[href]:not([href=""]) {
  position: static;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item) .t-card__link[href]:not([href=""])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""]):focus-visible) {
  border-color: var(--mira-card-accent) !important;
  background-color: var(--mira-card-hover) !important;
  outline: 2px solid var(--mira-card-accent) !important;
  outline-offset: 3px;
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item) .t-card__link:focus-visible {
  outline: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])):hover {
    border-color: var(--mira-card-accent) !important;
    background-color: var(--mira-card-hover) !important;
  }
}
html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])):active {
  border-color: var(--mira-card-accent) !important;
  background-color: var(--mira-card-pressed) !important;
}
@media (prefers-reduced-motion: reduce) {
  html:lang(ru) #allrecords:not([data-tilda-page-id="288155209"], [data-tilda-page-id="288258509"]) :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])) {
    transition: none !important;
  }
}

/* MIRA localized cards */
/* Shared interactive cards for published English and Persian pages. */
html:is(:lang(en), :lang(fa)) #allrecords {
  --mira-card-line: #d4dfed;
  --mira-card-accent: #234996;
  --mira-card-hover: #f3f6fa;
  --mira-card-pressed: #edf3fc;
}

/* Only native cards with real destinations get the interactive treatment. */
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])) {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  border-color: var(--mira-card-line) !important;
  background-color: #fff !important;
  transition: border-color 200ms ease, background-color 200ms ease;
}
html:is(:lang(en), :lang(fa)) #allrecords .t1032__wrapper:has(.t-card__link[href]:not([href=""])) {
  isolation: isolate;
}
html:is(:lang(en), :lang(fa)) #allrecords .t1032__content .t-card__title:has(.t-card__link[href]:not([href=""])) {
  position: static;
}
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item) .t-card__link[href]:not([href=""]) {
  position: static;
}
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item) .t-card__link[href]:not([href=""])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""]):focus-visible) {
  border-color: var(--mira-card-accent) !important;
  background-color: var(--mira-card-hover) !important;
  outline: 2px solid var(--mira-card-accent) !important;
  outline-offset: 3px;
}
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item) .t-card__link:focus-visible {
  outline: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])):hover {
    border-color: var(--mira-card-accent) !important;
    background-color: var(--mira-card-hover) !important;
  }
}
html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])):active {
  border-color: var(--mira-card-accent) !important;
  background-color: var(--mira-card-pressed) !important;
}
@media (prefers-reduced-motion: reduce) {
  html:is(:lang(en), :lang(fa)) #allrecords :is(.t1032__content, .t999__item):has(.t-card__link[href]:not([href=""])) {
    transition: none !important;
  }
}

html:is(:lang(en), :lang(fa)) #allrecords .t1032__content .t-card__title .t-card__link[href]:not([href=""])::after { content: "\2192"; display: inline-block; width: 24px; margin-inline-start: 12px; color: #234996; transition: transform 200ms ease; }
html:lang(fa) #allrecords .t1032__content .t-card__title .t-card__link[href]:not([href=""])::after { content: "\2190"; }
@media (hover: hover) and (pointer: fine) {
  html:lang(en) #allrecords .t1032__content:hover .t-card__title .t-card__link::after { transform: translateX(5px); }
  html:lang(fa) #allrecords .t1032__content:hover .t-card__title .t-card__link::after { transform: translateX(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  html:is(:lang(en), :lang(fa)) #allrecords .t1032__content .t-card__title .t-card__link::after { transition: none; transform: none !important; }
}

/* /MIRA localized cards */
