/* openlibs.dev: the site frame (header, footer, home, licenses, developer pages). The apps keep their own CSS. */
html { scroll-behavior: smooth; }
html[dir="rtl"] i[class*="-right"], html[dir="rtl"] i[class*="-left"], html[dir="rtl"] i[class*="forward"], html[dir="rtl"] i[class*="backward"], html[dir="rtl"] [data-dir-arrow] { transform: scaleX(-1); display: inline-block; }
@media (min-width: 768px) { .ol-site-nav button.btn.rounded-pill, .ol-site-nav a.btn.rounded-pill { border-radius: .375rem !important; } }
@media (min-width: 992px) { #btn-lang.dropdown-toggle::after { display: none !important; } }
.ol-brand { color: #2b71ae; letter-spacing: -.06em; }
.ol-brand:hover { color: #58a6ff; }
.ol-site-nav .nav-link:hover, .ol-site-nav .nav-link.active { color: var(--bs-link-hover-color) !important; }
.ol-site-nav .navbar-toggler:focus { box-shadow: none; }
.ol-site-nav .btn:hover { border-color: #58a6ff !important; }
.ol-lang-menu { max-height: 70vh; }
.ol-kbd { font-size: .65rem; }
.ol-tracking { letter-spacing: .08em; }
.ol-tech { font-size: .75rem; }
.ol-logo-mask { display: inline-block; width: 30px; height: 30px; background-color: var(--bs-body-color);
  -webkit-mask: url("/assets/img/logo-mask.svg") no-repeat center / contain; mask: url("/assets/img/logo-mask.svg") no-repeat center / contain; }
.ol-footer-links a:hover { color: var(--bs-link-hover-color) !important; text-decoration: underline !important; }
.ol-footer-tags a { font-size: .8rem !important; color: var(--bs-body-color) !important; border-color: var(--bs-border-color) !important; }
.ol-footer-tags a:hover { background-color: var(--bs-secondary-bg) !important; border-color: var(--bs-link-hover-color) !important; }
[data-bs-theme="light"] .dropdown-item:hover { background-color: var(--bs-secondary-bg-subtle); }

/* cards of the catalogue (home, all apps, all libraries) */
/* cards are not links (their button is), so they do not lift on hover */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ol-hero-icon { width: 3rem; height: 3rem; }
.ol-section-target { scroll-margin-top: 5rem; }

/* code on the developer pages */
.ol-code { position: relative; }
.ol-code pre { margin: 0; padding: 1rem; border-radius: .5rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); max-height: 32rem; overflow: auto; }
.ol-code pre code { font-size: .8125rem; white-space: pre; direction: ltr; unicode-bidi: isolate; }
.ol-code .ol-copy { position: absolute; top: .5rem; inset-inline-end: .5rem; }
.ol-api code { white-space: nowrap; }
.ol-api td:first-child { direction: ltr; unicode-bidi: isolate; }

/* the help of an app, printed on its page */
.ol-help section { scroll-margin-top: 5rem; }
.ol-help img { max-width: 100%; height: auto; }

/* inside the installed app: less of the site around the tools */
@media (display-mode: standalone) { .ol-browser-only { display: none !important; } }
