/* ==========================================================================
   Cliniinfo website design system (all website pages; loaded after the template's style.css).
   --brand, --brand-600, --brand-400, --brand-50, --brand-100, --brand-rgb come from the
   organization's primary colour (App\Support\OrgTheme::siteVars), darkened so white text stays readable.
   ========================================================================== */
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --surface: #ffffff; --surface-2: #f8fafc;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --ok: #15803d; --ok-bg: #f0fdf4; --warn: #b45309; --warn-bg: #fffbeb; --bad: #b91c1c; --bad-bg: #fef2f2; --info-bg: var(--brand-50);

  /* The template (Bootstrap 5) follows the organization's colour */
  --bs-primary: var(--brand); --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand); --bs-link-color-rgb: var(--brand-rgb); --bs-link-hover-color: var(--brand-600);
  --bs-primary-text-emphasis: var(--brand-600); --bs-primary-bg-subtle: var(--brand-50); --bs-primary-border-subtle: var(--brand-100);
}
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }
.btn-primary-soft { color: var(--brand) !important; background-color: var(--brand-50) !important; }
.btn-primary-soft:hover { color: #fff !important; background-color: var(--brand) !important; }
.text-primary, .text-primary-hover:hover, .nav-link.active, .nav-pills .nav-link:hover { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.bg-primary-soft, .bg-primary.bg-opacity-10 { background-color: var(--brand-50) !important; }
.border-primary { border-color: var(--brand) !important; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--brand) !important; color: #fff !important; }
.page-item.active .page-link, .pagination .active > .page-link { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.page-link { color: var(--brand); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-control:focus, .form-select:focus { border-color: var(--brand-400); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .15); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .35); outline-offset: 2px; }

body.ci-site { background: var(--surface-2); color: var(--ink); overflow-x: hidden; }
.ci-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.ci-skip:focus { left: 8px; }

/* ---------------- Header ----------------
   One sticky row: logo | menu | search, account. Menu items that do not fit move into "More" (site.js);
   below 992px the menu becomes a drawer opened with the menu button. */
.ci-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.ci-header-row { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-top: 6px; padding-bottom: 6px; }
.ci-brand { flex: 0 0 auto; display: flex; align-items: center; }
.ci-brand img { height: auto; width: auto; max-height: 58px; max-width: 240px; object-fit: contain; object-position: left center; display: block; }
.ci-nav { flex: 1 1 auto; min-width: 0; }
.ci-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.ci-nav-item, .ci-nav-more { flex: 0 0 auto; }
.ci-nav a, .ci-nav-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .92rem; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.ci-nav-more-btn { border: 0; background: transparent; }
.ci-nav a i { font-size: 1rem; color: var(--muted); }
.ci-nav a:hover, .ci-nav-more-btn:hover, .ci-nav-more-btn[aria-expanded="true"] { background: var(--brand-50); color: var(--brand); }
.ci-nav a:hover i, .ci-nav a.is-active i { color: var(--brand); }
.ci-nav a.is-active, .ci-nav-more.has-active .ci-nav-more-btn { color: var(--brand); background: var(--brand-50); font-weight: 600; }
.ci-nav-more-menu { min-width: 220px; border-radius: 12px; border: 1px solid var(--line); padding: 6px; }
.ci-nav-more-menu a { display: flex; width: 100%; padding: 9px 12px; }
.ci-header-tools { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ci-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.ci-icon-btn:hover, .ci-icon-btn[aria-expanded="true"] { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.ci-search-panel { width: min(460px, calc(100vw - 24px)); padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.ci-header-search { position: relative; width: 100%; }
.ci-header-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 44px 0 16px; background: var(--surface-2); font-size: .95rem; }
.ci-header-search input:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.ci-header-search button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.ci-account { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px; color: var(--ink-2); max-width: 220px; }
.ci-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.ci-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.ci-account-menu { min-width: 240px; border-radius: 12px; border: 1px solid var(--line); }
.ci-menu-toggle { display: none; border: 1px solid var(--line); background: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.4rem; color: var(--ink); }

/* Suggestions under any search box */
.ci-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050; max-height: min(440px, 62vh); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); text-align: left; padding: 6px 0; }
.ci-suggest.is-loading { opacity: .7; }
.ci-suggest-group { display: flex; align-items: center; gap: 6px; padding: 10px 16px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ci-suggest-group i { color: var(--brand); font-size: .9rem; }
.ci-suggest-item { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.ci-suggest-item:hover, .ci-suggest-item.is-active { background: var(--brand-50); border-left-color: var(--brand); color: var(--ink); }
.ci-suggest-title { display: block; font-weight: 500; font-size: .93rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci-suggest-title mark { background: transparent; color: var(--brand-600); font-weight: 700; padding: 0; }
.ci-suggest-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-suggest-empty { padding: 14px 16px; color: var(--muted); font-size: .9rem; }
.ci-suggest-all { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--brand); text-decoration: none; }
.ci-suggest-all:hover, .ci-suggest-all.is-active { background: var(--brand-50); color: var(--brand-600); }
@media (max-width: 575.98px) { .ci-suggest { max-height: 55vh; border-radius: 12px; } .ci-suggest-item, .ci-suggest-all { padding-top: 11px; padding-bottom: 11px; } }

/* ---------------- Page head: banner + title ---------------- */
.ci-page-head { padding: 22px 0 8px; }
.ci-page-banner { width: 100%; max-width: 1200px; margin: 0 auto 18px; aspect-ratio: 6 / 1; border-radius: var(--radius); overflow: hidden; background: var(--brand-50); }
.ci-page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-page-banner.is-fallback { display: flex; align-items: center; padding: 0 5%; background: linear-gradient(120deg, var(--brand-600), var(--brand) 55%, var(--brand-400)); color: #fff; }
.ci-page-banner.is-fallback span { font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; opacity: .95; }
.ci-crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ci-crumbs a { color: var(--muted); text-decoration: none; }
.ci-crumbs a:hover { color: var(--brand); }
.ci-page-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; color: var(--ink); letter-spacing: -.01em; }
.ci-page-sub { color: var(--muted); margin: 6px 0 0; max-width: 70ch; }

/* ---------------- Shared components ---------------- */
.ci-section { padding: 28px 0; }
.ci-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ci-section-head h2 { font-size: 1.35rem; margin: 0; }
.ci-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ci-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.ci-chip.is-brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }
.ci-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; }
.ci-badge.is-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.ci-badge.is-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.ci-badge.is-bad { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
.ci-badge.is-info { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
.ci-empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.ci-empty-state i { font-size: 2.2rem; display: block; margin-bottom: 8px; color: var(--brand-400); }
.ci-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1020; text-decoration: none; }
.ci-to-top.is-visible { opacity: 1; pointer-events: auto; }
.ci-to-top:hover { color: #fff; background: var(--brand-600); }

/* ---------------- Footer ---------------- */
.ci-footer { margin-top: 0; background: #0f172a; color: #cbd5e1; padding: 44px 0 20px; font-size: .92rem; }
.ci-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ci-footer-brand img { height: 40px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
.ci-footer-brand p { color: #94a3b8; max-width: 36ch; margin: 0; line-height: 1.6; }
.ci-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #f8fafc; margin: 0 0 12px; }
.ci-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ci-footer a { color: #cbd5e1; text-decoration: none; }
.ci-footer a:hover, .ci-footer a:focus-visible { color: #fff; text-decoration: underline; }
.ci-footer-support { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 30px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #e2e8f0; }
.ci-footer-support i { color: var(--brand-400); margin-right: 4px; }
.ci-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; color: #94a3b8; font-size: .85rem; text-align: center; }
.ci-footer-bottom a { color: #94a3b8; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1199.98px) {
  .ci-account-name { display: none; }
  .ci-account { padding: 4px 8px 4px 4px; }
}
@media (max-width: 991.98px) {
  .ci-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ci-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(15, 23, 42, .1); display: none; max-height: calc(100vh - 64px); overflow-y: auto; }
  .ci-nav.is-open { display: block; }
  .ci-nav-list { flex-direction: column; align-items: stretch; padding: 8px 12px 10px; }
  .ci-nav-item { display: block !important; }
  .ci-nav-more { display: none !important; }
  .ci-nav a { width: 100%; padding: 12px; font-size: 1rem; }
  .ci-search-drop { display: none; }
  .ci-footer-grid { grid-template-columns: 1fr 1fr; }
  .ci-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .ci-header-row { gap: 10px; min-height: 64px; }
  .ci-brand img { max-height: 46px; max-width: 170px; }
  .ci-footer { padding-top: 32px; }
  .ci-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ci-footer-support { flex-direction: column; align-items: flex-start; }
  .ci-page-banner { border-radius: 10px; }
}
.ci-nav-search { display: none; }
@media (max-width: 991.98px) {
  .ci-nav-search { display: flex; position: relative; margin: 0 12px 14px; }
  .ci-nav-search input { flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 44px 0 14px; font-size: 1rem; }
  .ci-nav-search button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); }
}

/* Search */
.ci-search-big { position: relative; display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 44px; box-shadow: var(--shadow); max-width: 820px; }
.ci-search-big > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.ci-search-big input { flex: 1; min-width: 0; border: 0; height: 46px; font-size: 1.05rem; background: transparent; }
.ci-search-big input:focus { outline: none; }
.ci-search-big .btn { height: 46px; padding: 0 22px; border-radius: 10px; }
.ci-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ci-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.ci-tabs a b { font-weight: 700; color: var(--muted); }
.ci-tabs a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.ci-tabs a.is-active b { color: rgba(255, 255, 255, .85); }
.ci-result-list { display: grid; gap: 10px; }
.ci-result { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ci-result:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.ci-result-title { font-size: 1.02rem; margin: 0 0 6px; line-height: 1.4; }
.ci-result-title a { color: var(--ink); text-decoration: none; }
.ci-result-title a:hover { color: var(--brand); }
.ci-result-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); align-items: center; }
@media (max-width: 575.98px) { .ci-search-big { padding-left: 38px; } .ci-search-big .btn { padding: 0 14px; } }

/* Home */
.ci-hero { padding: 36px 0 12px; }
.ci-hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.ci-hero-grid:has(.ci-hero-side) { grid-template-columns: 1fr 2.2fr 1fr; }
.ci-hero-side img { width: 100%; max-height: 240px; object-fit: contain; }
.ci-hero-main { text-align: center; }
.ci-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; }
.ci-hero-main h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 14px 0 8px; letter-spacing: -.02em; }
.ci-hero-main > p { color: var(--muted); margin: 0 0 20px; }
.ci-hero-hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.ci-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.ci-counter { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ci-counter:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink); }
.ci-counter i { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ci-counter-n { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.ci-counter-l { font-size: .85rem; color: var(--muted); }

/* Cards with covers (journals, books) */
.ci-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ci-cover-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ci-cover-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ci-cover { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--brand-50); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ci-cover img { width: 100%; height: 100%; object-fit: cover; }
.ci-cover i { font-size: 2.4rem; color: var(--brand-400); }
.ci-cover-title { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ci-cover-meta { font-size: .82rem; color: var(--muted); }
.ci-cover-badges { margin-top: auto; padding-top: 4px; }
@media (max-width: 767.98px) { .ci-hero-grid:has(.ci-hero-side) { grid-template-columns: 1fr; } .ci-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* List pages with a filter panel (journals, articles, books, guidelines, videos) */
.ci-list-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.ci-filter-panel { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ci-filter-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ci-filter-toggle { border: 0; background: none; font-weight: 700; color: var(--ink); padding: 0; display: inline-flex; align-items: center; gap: 6px; pointer-events: none; }
.ci-count-dot { background: var(--brand); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.ci-reset { font-size: .85rem; }
.ci-f { margin-bottom: 12px; }
.ci-f label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.ci-f .form-control, .ci-f .form-select { font-size: .9rem; }
.ci-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ci-list-count { color: var(--muted); }
.ci-sort { width: auto; min-width: 170px; }
.ci-az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
.ci-az a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; padding: 0 8px; }
.ci-az a.is-active, .ci-az a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 991.98px) {
  .ci-list-layout { grid-template-columns: 1fr; }
  .ci-filter-panel { position: static; }
  .ci-filter-toggle { pointer-events: auto; }
  .ci-filter-body { display: none; margin-top: 10px; }
  .ci-filter-body.is-open { display: block; }
}

/* Articles */
.ci-authors { color: var(--ink-2); font-size: .9rem; margin: 0 0 6px; line-height: 1.45; }
.ci-article-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.ci-article-row .ci-result-body { min-width: 0; }
.ci-article-action { flex: 0 0 auto; }
.ci-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ci-article-main { padding: 28px; }
.ci-article-title { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; margin: 8px 0 10px; letter-spacing: -.01em; }
.ci-article-source { color: var(--muted); margin: 0 0 12px; }
.ci-article-source a { color: var(--ink); text-decoration: none; }
.ci-id-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ci-id-row a.ci-chip { text-decoration: none; }
.ci-article-h2 { font-size: 1.1rem; margin: 8px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.ci-abstract p { line-height: 1.7; color: var(--ink-2); margin: 0 0 10px; }
.ci-keywords { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.ci-article-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.ci-access-box, .ci-side-box { padding: 18px; }
.ci-access-box h2, .ci-side-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.ci-dl { margin: 0; display: grid; gap: 8px; }
.ci-dl dt { font-size: .75rem; color: var(--muted); font-weight: 600; }
.ci-dl dd { margin: 0; font-size: .92rem; }
.ci-side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.ci-side-list a { color: var(--ink); text-decoration: none; }
.ci-side-list a:hover { color: var(--brand); }
@media (max-width: 991.98px) { .ci-article-layout { grid-template-columns: 1fr; } .ci-article-side { position: static; } }
@media (max-width: 575.98px) { .ci-article-row { flex-direction: column; align-items: flex-start; } .ci-article-main { padding: 18px; } }

/* Book page */
.ci-book-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; margin-bottom: 8px; }
.ci-book-cover { width: 160px; }
.ci-dl-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.ci-dl-inline dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.ci-dl-inline dd { margin: 0; }
@media (max-width: 575.98px) { .ci-book-head { grid-template-columns: 1fr; } .ci-book-cover { width: 140px; } }

/* Result rows with an action (guidelines, conferences) */
.ci-result:has(.ci-result-actions) { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.ci-result-body { min-width: 0; }
.ci-result-actions { flex-shrink: 0; }
.ci-result-meta a.ci-chip { text-decoration: none; }
.ci-result-snippet { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 575.98px) { .ci-result:has(.ci-result-actions) { flex-direction: column; gap: 10px; } }

/* Videos */
.ci-video-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ci-video-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ci-video-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--brand-50); display: flex; align-items: center; justify-content: center; }
.ci-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-video-thumb .ci-play { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.ci-video-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ci-video-player { background: #111827; border-radius: var(--radius); overflow: hidden; }
.ci-video-player .video-js { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.ci-video-player .ci-video-external { padding: 48px 16px; text-align: center; color: #fff; }
.ci-related-video { display: flex; gap: 12px; text-decoration: none; color: var(--ink); }
.ci-related-video .ci-video-thumb { width: 112px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.ci-related-video:hover { color: var(--brand); }
.ci-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 575.98px) { .ci-grid-3 { grid-template-columns: 1fr; } }

/* Requests */
.ci-req-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; font-size: .75rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ci-req-status i { font-size: .7rem; }
.ci-req-status.is-unapproved { background: #fff4dd; color: #7a4300; border-color: #f3b54a; }
.ci-req-status.is-awaiting { background: #e8f1fd; color: #1b4d8f; border-color: #9cc2f2; }
.ci-req-status.is-fulfilled { background: #e6f6ec; color: #166236; border-color: #9ad8b0; }
.ci-req-status.is-rejected { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.ci-result.is-new { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.ci-inline-search { display: flex; gap: 8px; max-width: 560px; }
.ci-form-card { padding: 24px; }
.ci-form-title { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.4; }
.ci-notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; }
.ci-notice.is-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.ci-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 575.98px) { .ci-form-card { padding: 16px; } }

/* Website pages: About, Contact, Privacy Policy, Terms */
.ci-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ci-doc-layout.is-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.ci-doc { padding: 28px 32px; }
.ci-doc-side { position: sticky; top: 140px; display: grid; gap: 16px; }
.ci-prose { color: var(--ink-2); line-height: 1.7; font-size: 1rem; max-width: 75ch; overflow-wrap: anywhere; }
.ci-prose h2 { font-size: 1.2rem; color: var(--ink); margin: 1.8em 0 .5em; scroll-margin-top: 150px; }
.ci-prose h2:first-child { margin-top: 0; }
.ci-prose h3 { font-size: 1.02rem; color: var(--ink); margin: 1.3em 0 .4em; }
.ci-prose p, .ci-prose ul, .ci-prose ol { margin: 0 0 1em; }
.ci-prose ul, .ci-prose ol { padding-left: 1.3rem; }
.ci-prose li { margin-bottom: .35em; }
.ci-prose a { color: var(--brand); }
.ci-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ci-prose th, .ci-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.ci-toc ol, .ci-toc-mobile ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; font-size: .9rem; }
.ci-toc a, .ci-toc-mobile a { color: var(--ink-2); text-decoration: none; }
.ci-toc a:hover, .ci-toc-mobile a:hover { color: var(--brand); }
.ci-toc-mobile { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; background: var(--surface-2); }
.ci-toc-mobile summary { font-weight: 600; cursor: pointer; }
.ci-toc-mobile[open] summary { margin-bottom: 10px; }
.ci-support-card a { color: var(--brand); text-decoration: none; }
.ci-preview-bar { background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa; padding: 10px 0; font-size: .9rem; }
.ci-preview-bar a { color: #9a3412; font-weight: 600; margin-left: 6px; }
@media (max-width: 991.98px) {
  .ci-doc-layout { grid-template-columns: 1fr; }
  .ci-doc-side { position: static; }
  .ci-toc { display: none; }
  .ci-toc-mobile { display: block; }
  .ci-prose h2 { scroll-margin-top: 80px; }
}
@media (max-width: 575.98px) { .ci-doc { padding: 18px 16px; } .ci-prose { font-size: .96rem; } }

/* ---------------- Home (brief 8): bands, search, cards, counters ---------------- */
.ci-site main { padding-bottom: 48px; }
.ci-site main:has(> .ci-counters-band:last-child) { padding-bottom: 0; }
.ci-hero { padding: 40px 0 44px; background: linear-gradient(180deg, var(--brand-50), #fff 92%); border-bottom: 1px solid var(--line); }
.ci-hero-main h1 { margin: 14px 0 18px; }
.ci-search-box { max-width: 820px; margin: 0 auto; padding: 14px; background: #fff; border: 1px solid var(--brand-100); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(var(--brand-rgb), .35); }
.ci-search-box .ci-search-big { box-shadow: none; border-color: var(--line); max-width: none; }
.ci-search-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ci-search-types button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 500; }
.ci-search-types button:hover { border-color: var(--brand-100); color: var(--brand); }
.ci-search-types button.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.ci-hero-hint { margin-top: 10px; }
.ci-band { padding: 40px 0; }
.ci-band.is-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ci-band .ci-section-head h2 { font-size: 1.35rem; position: relative; padding-left: 14px; }
.ci-band .ci-section-head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--brand); }
.ci-more-link { font-weight: 600; font-size: .9rem; color: var(--brand); text-decoration: none; white-space: nowrap; }
.ci-more-link:hover { text-decoration: underline; }

/* Covers: one aspect ratio everywhere; a tinted tile with the title when there is no image */
.ci-cover { aspect-ratio: 3 / 4; }
.ci-cover-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center;
  background: linear-gradient(160deg, var(--brand-50), var(--brand-100)); color: var(--brand-600); }
.ci-cover-fallback i { font-size: 2rem; color: var(--brand-400); }
.ci-cover-fallback b { font-size: .82rem; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ci-cover-card { padding: 12px 12px 14px; }
.ci-cover-title { font-size: .95rem; }

/* Article cards */
.ci-article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ci-article-card { display: flex; gap: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.ci-article-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ci-article-card-thumb { flex: 0 0 56px; width: 56px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--brand-50); display: flex; align-items: center; justify-content: center; align-self: flex-start; }
.ci-article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-article-card-thumb i { color: var(--brand-400); font-size: 1.4rem; }
.ci-article-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-article-card-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-600); background: var(--brand-50); border-radius: 6px; padding: 2px 7px; }
.ci-article-card-journal { font-size: .78rem; font-weight: 600; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-article-card-title { font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ci-article-card-meta { font-size: .82rem; color: var(--muted); }

/* Guidelines / videos lists */
.ci-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.ci-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ci-mini-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.ci-mini-list a:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.ci-mini-list i { color: var(--brand); font-size: 1.2rem; margin-top: 1px; }
.ci-mini-list b { display: block; font-weight: 600; line-height: 1.4; }
.ci-mini-list small { color: var(--muted); }

/* Counters band above the footer */
.ci-counters-band { padding: 32px 0; background: linear-gradient(120deg, var(--brand-600), var(--brand)); }
.ci-counters-band .ci-counters { margin-top: 0; }
.ci-counters-band .ci-counter { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.ci-counters-band .ci-counter:hover { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.ci-counters-band .ci-counter i { background: rgba(255, 255, 255, .18); color: #fff; }
.ci-counters-band .ci-counter-l { color: rgba(255, 255, 255, .85); }

@media (max-width: 767.98px) {
  .ci-hero { padding: 26px 0 30px; }
  .ci-search-box { padding: 10px; border-radius: 14px; }
  .ci-band { padding: 28px 0; }
  .ci-article-grid { grid-template-columns: 1fr; }
  .ci-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .ci-search-big { padding: 6px 6px 6px 36px; }
  .ci-search-big input { font-size: 1rem; }
  .ci-search-types { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ci-search-types button { flex: 0 0 auto; }
  .ci-counter { padding: 12px; column-gap: 10px; }
  .ci-counter i { width: 36px; height: 36px; font-size: 1.05rem; }
  .ci-counter-n { font-size: 1.15rem; }
}

/* ---------------- List filters (brief 8): every choice visible, no dropdowns ---------------- */
.ci-filter-panel { top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.ci-filter-toggle { display: none; }
.ci-filter-title { font-weight: 700; color: var(--ink); }
.ci-f { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.ci-f legend, .ci-f > label, .ci-f-legend { display: block; float: none; width: auto; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; padding: 0; }
.ci-f-search { position: relative; }
.ci-f-search input { padding-right: 38px; }
.ci-f-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); }
.ci-f-options { display: grid; gap: 2px; }
.ci-f-options.is-long { max-height: 232px; overflow-y: auto; padding-right: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.ci-opt { display: flex !important; align-items: flex-start; gap: 8px; margin: 0 !important; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .9rem !important; font-weight: 400 !important; color: var(--ink-2) !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.35; }
.ci-opt:hover { background: var(--brand-50); }
.ci-opt input { margin-top: 3px; accent-color: var(--brand); flex: 0 0 auto; }
.ci-opt input:checked + span { color: var(--brand-600); font-weight: 600; }
.ci-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.ci-sort-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ci-sort-links::-webkit-scrollbar { display: none; }
.ci-sort-label { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.ci-sort-links a { flex: 0 0 auto; font-size: .85rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.ci-sort-links a:hover { border-color: var(--brand-100); color: var(--brand); }
.ci-sort-links a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.ci-az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ci-az::-webkit-scrollbar { display: none; }
.ci-az a { flex: 0 0 auto; }
@media (max-width: 991.98px) {
  .ci-filter-panel { max-height: none; overflow: visible; }
  .ci-filter-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff; }
  .ci-filter-title { display: none; }
  .ci-filter-panel-head { margin-bottom: 0; }
  .ci-list-toolbar { flex-direction: column; align-items: flex-start; }
}
.ci-related { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.ci-related .ci-section-head h2 { font-size: 1.2rem; }
@media (max-width: 575.98px) {
  .ci-article-main { padding: 18px 16px; }
  .ci-article-title { font-size: 1.3rem; }
  .ci-id-row .ci-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Favorites / My Library buttons */
.ci-save-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.ci-save-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-size: .88rem; font-weight: 500; }
.ci-save-btn:hover { border-color: var(--brand-100); color: var(--brand); }
.ci-save-btn.is-on { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); font-weight: 600; }
.ci-save-btn.is-on i { color: var(--brand); }

/* My Account */
.ci-account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.ci-account-nav { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ci-account-nav-user { display: flex; gap: 10px; align-items: center; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; min-width: 0; }
.ci-account-nav-user span:last-child { min-width: 0; }
.ci-account-nav-user b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-account-nav-user small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-avatar-lg { width: 42px; height: 42px; flex: 0 0 42px; font-size: 1.05rem; }
.ci-account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ci-account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.ci-account-nav a:hover { background: var(--brand-50); color: var(--brand); }
.ci-account-nav a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.ci-account-nav-out { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.ci-account-nav-out a { color: #b91c1c; }
.ci-account-main { display: grid; gap: 18px; min-width: 0; }
.ci-account-card { padding: 20px 22px; }
.ci-account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ci-account-card-head h2 { font-size: 1.1rem; margin: 0; }
.ci-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.ci-profile-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ci-profile-grid dd { margin: 2px 0 0; }
.ci-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ci-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ci-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.ci-stat:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink); }
.ci-stat i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.ci-stat b { font-size: 1.3rem; line-height: 1.1; }
.ci-stat span { font-size: .85rem; color: var(--muted); }
.ci-row-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ci-row-line:last-child { border-bottom: 0; }
.ci-row-title { min-width: 0; font-weight: 500; }
.ci-row-title small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 991.98px) {
  .ci-account-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ci-account-nav { position: static; padding: 8px; min-width: 0; }
  .ci-account-nav-user { display: none; }
  .ci-account-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .ci-account-nav ul::-webkit-scrollbar { display: none; }
  .ci-account-nav li { flex: 0 0 auto; }
  .ci-account-nav a { padding: 8px 12px; font-size: .9rem; }
  .ci-account-nav-out { border-top: 0; margin: 0; padding: 0; }
}
@media (max-width: 575.98px) {
  .ci-account-card { padding: 16px; }
  .ci-row-line { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ci-form-actions .btn { width: 100%; }
  .ci-inline-search { flex-direction: column; }
}
.ci-account-layout.is-plain { grid-template-columns: 1fr; }

/* Article request form (compact) */
.ci-req-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.ci-req-ids { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 12px; align-items: end; }
.ci-req-lookup .btn { height: 38px; white-space: nowrap; }
.ci-req-more { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface-2); }
.ci-req-more summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.ci-req-more[open] summary { margin-bottom: 8px; }
.ci-req-actions { align-items: center; flex-wrap: wrap; }
.ci-form-card { padding: 20px 22px; }
@media (max-width: 767.98px) {
  .ci-req-ids { grid-template-columns: 1fr; }
  .ci-req-actions .me-auto { width: 100%; }
}
@media (max-width: 575.98px) { .ci-req-actions .btn { flex: 1 1 auto; } }

/* Responsive guards: no sideways page scroll from wide content on phones */
.ci-site { overflow-x: clip; }
.ci-site img, .ci-site video, .ci-site iframe { max-width: 100%; }
.ci-site .ci-result-title, .ci-site .ci-cover-title, .ci-site .ci-article-title { overflow-wrap: anywhere; }
.ci-site .pagination { flex-wrap: wrap; gap: 4px; }
.ci-access-btn.is-busy { pointer-events: none; opacity: .85; }

/* Related article rows: 3 / 2 / 1 columns, equal-height cards */
.ci-article-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ci-article-grid.is-3 .ci-article-card { height: 100%; }
@media (max-width: 991.98px) { .ci-article-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ci-article-grid.is-3 { grid-template-columns: 1fr; } }

/* Active filters bar */
.ci-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.ci-active-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-600); font-size: .84rem; font-weight: 600; text-decoration: none; max-width: 100%; }
.ci-active-chip:hover { background: var(--brand-100); color: var(--brand-600); }
.ci-active-chip i { font-size: 1rem; }
.ci-active-clear { font-size: .84rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.ci-f-find { margin-bottom: 6px; }
.ci-opt[hidden] { display: none !important; }

/* Impact factor range (two handles on one track) */
.ci-range { position: relative; height: 28px; margin: 4px 6px 6px; }
.ci-range::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--line) var(--a), var(--brand) var(--a), var(--brand) var(--b), var(--line) var(--b)); }
.ci-range input[type=range] { position: absolute; left: -6px; right: -6px; width: calc(100% + 12px); top: 4px; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ci-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }
.ci-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }
.ci-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.ci-range input[type=range]::-moz-range-track { background: none; }
.ci-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .25); }
.ci-range-inputs { display: flex; align-items: center; gap: 6px; }
.ci-range-inputs label { flex: 1; margin: 0; }
.ci-range-inputs .btn { flex: 0 0 auto; }

/* Grid / list toggle and list rows */
.ci-view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ci-view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.ci-view-toggle a + a { border-left: 1px solid var(--line); }
.ci-view-toggle a.is-active { background: var(--brand); color: #fff; }
.ci-list-rows { display: grid; gap: 8px; }
.ci-list-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.ci-list-row:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink); }
.ci-list-row-thumb { width: 52px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--brand-50); display: flex; align-items: center; justify-content: center; }
.ci-list-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-list-row-thumb i { color: var(--brand-400); font-size: 1.3rem; }
.ci-list-row-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ci-list-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); margin-top: 3px; }
.ci-list-row-side { text-align: right; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.ci-list-row-side b { display: block; font-size: 1rem; color: var(--ink); }
@media (max-width: 575.98px) {
  .ci-list-row { grid-template-columns: 44px minmax(0, 1fr); }
  .ci-list-row-thumb { width: 44px; }
  .ci-list-row-side { grid-column: 2; text-align: left; white-space: normal; }
}
.ci-list-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ci-list-head .ci-list-toolbar { flex: 1 1 auto; margin-bottom: 12px; }
.ci-list-head .ci-view-toggle { margin-bottom: 12px; }
.ci-link-plain { color: var(--ink); text-decoration: none; display: block; } .ci-link-plain:hover { color: var(--brand); }

/* Conference videos */
.ci-event-thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; cursor: pointer; align-self: center; }
.ci-event-thumb:disabled { opacity: .5; cursor: default; }
.ci-result:has(.ci-event-thumb) { display: flex; gap: 14px; align-items: flex-start; }
.ci-video-dialog { width: min(960px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 16px; background: #0b1220; color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ci-video-dialog::backdrop { background: rgba(2, 6, 23, .75); }
.ci-video-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.ci-video-dialog-head h2 { font-size: 1rem; margin: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-video-dialog-close { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.ci-video-dialog-body { aspect-ratio: 16 / 9; background: #000; }
.ci-video-dialog-body iframe, .ci-video-dialog-body video { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575.98px) {
  .ci-event-thumb { flex-basis: 72px; width: 72px; font-size: 1.4rem; }
  .ci-video-dialog { width: 100vw; max-width: 100vw; border-radius: 0; margin: auto 0; }
}

/* ---------- My Library / Favorites buttons on cards and rows (brief 12) ---------- */
.ci-save-host { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ci-save-host > .ci-cover-card, .ci-save-host > .ci-article-card { flex: 1 1 auto; }
.ci-save-host > .ci-cover-card .ci-cover-title, .ci-save-host > .ci-article-card .ci-article-card-title { padding-right: 4px; }
.ci-save-host.is-row > .ci-list-row { padding-right: 58px; }
.ci-save-corner { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; z-index: 2; }
.ci-save-host.is-row > .ci-save-corner { top: 50%; transform: translateY(-50%); right: 12px; }
.ci-save-icon-form { display: inline-flex; margin: 0; }
.ci-save-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .96); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); transition: color .15s, border-color .15s, background .15s; }
.ci-save-icon:hover { color: var(--brand); border-color: var(--brand-100); }
.ci-save-icon:focus-visible, .ci-save-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ci-save-icon.is-on { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.ci-save-icon.is-on .bi-heart-fill, .ci-save-btn.is-on .bi-heart-fill { color: #e11d48; }
.ci-save-icon:disabled { opacity: .6; }
.ci-save-pair { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.ci-list-row-side .ci-save-icon-form { margin-left: 8px; }
.ci-result.is-unavailable .ci-result-title { color: var(--muted); }
.ci-chip.is-muted { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.ci-saved-search { max-width: 760px; }
.ci-saved-search .form-select { max-width: 240px; }
@media (max-width: 575.98px) {
  .ci-save-pair { margin: 8px 0 0; }
  .ci-saved-search .form-select { max-width: none; }
}

/* ---------- Brief 12 styling review ----------
   The vendor theme sets Bootstrap's secondary text colour to #cfd3d7 (about 1.5:1 on white), so every
   .text-muted, .form-text and placeholder-like hint was hard to read. Use the site's muted token (4.8:1). */
:root {
  --bs-secondary-color: #5b6474; --bs-secondary-color-rgb: 91, 100, 116;
  --bs-body-color: var(--ink-2);
}
.text-muted { color: var(--muted) !important; }
.form-text { color: var(--muted); }
.form-control::placeholder { color: #8a94a6; opacity: 1; }
/* One heading scale for page sections and cards */
.ci-section-head h2, .ci-form-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
/* Tables inside cards: consistent cell padding and header style */
.ci-table th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.ci-table td, .ci-table th { padding: .7rem .85rem; }
/* Keyboard focus on buttons and form controls follows the brand colour everywhere */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .35); outline-offset: 2px; box-shadow: none; }

/* ---------- Notifications (toastr) - brief 14 ----------
   toastr adds the class "toast", which Bootstrap 5 hides (.toast:not(.show) { display: none }), and its stylesheet
   was not loaded on the website: every flash message was invisible. Show them, above the sticky header. */
#toast-container { z-index: 2000; top: 84px; }
#toast-container > .toast { display: block; opacity: 1; width: min(360px, calc(100vw - 32px)); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  padding: 14px 16px 14px 48px; background-position: 16px center; font-size: .92rem; line-height: 1.45; max-width: none; }
#toast-container > .toast-success { background-color: #15803d; }
#toast-container > .toast-error { background-color: #b91c1c; }
#toast-container > .toast-info { background-color: #0e7490; }
#toast-container > .toast-warning { background-color: #b45309; }
#toast-container .toast-close-button { opacity: .9; text-shadow: none; }
@media (max-width: 575.98px) { #toast-container { top: 72px; right: 16px; left: 16px; } #toast-container > .toast { width: 100%; } }

/* Inline notice in the article page's access box (why "View Article" could not open the article) */
.ci-access-notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.45; border: 1px solid; }
.ci-access-notice i { font-size: 1.1rem; line-height: 1.2; }
.ci-access-notice.is-info { background: var(--info-bg); border-color: var(--brand-100); color: var(--ink); }
.ci-access-notice.is-warning { background: var(--warn-bg); border-color: #fde68a; color: #78350f; }
.ci-access-notice.is-error { background: var(--bad-bg); border-color: #fecaca; color: #7f1d1d; }
.ci-access-notice a { font-weight: 600; }

