/**
 * AcademicCrew — System component library
 * Single source of truth for all shared UI primitives.
 * Loaded on every plugin-managed page via Plugin::inject_frontend_css().
 * Per-page CSS files must NOT redefine these components.
 */

/* ── Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600&family=DM+Sans:wght@300;400;500&family=JetBrains+Mono:wght@600&family=Roboto+Slab:wght@700&display=swap');

/* ── Design tokens ───────────────────────────────────────────────── */
:root {
  /* Palette */
  --acc-primary:      #0d2340;
  --acc-secondary:    #1cb0c9;
  --acc-accent:       #c8102e;
  --acc-secondary-bg: color-mix(in srgb, var(--acc-secondary, #1cb0c9) 10%, transparent);
  /* Derived from --acc-secondary so a custom palette (Settings → Appearance)
     re-tints hover/contrast shades automatically without redeclaring them. */
  --acc-secondary-hover:    color-mix(in srgb, var(--acc-secondary) 85%, black 15%);
  --acc-secondary-contrast: color-mix(in srgb, var(--acc-secondary) 15%, black 85%);

  /* Typography */
  --acc-font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --acc-font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --acc-font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Semantic colour tokens */
  --acc-text:    var(--awb-color8, var(--color-text-primary, #1a1a1a));
  --acc-muted:   var(--awb-color7, var(--color-text-secondary, #666));
  --acc-surface: var(--color-background-primary, #fff);
  --acc-bg:      var(--awb-color5, var(--color-background-secondary, #f5f5f5));
  --acc-border:  var(--color-border-tertiary, rgba(0,0,0,0.1));

  /* Canonical sizing tokens */
  --acc-r-sm: 6px;
  --acc-r-md: var(--border-radius-md, 8px);
  --acc-r-lg: var(--border-radius-lg, 12px);
  --acc-t:    0.15s ease;

  /* Aliases — backward-compat with per-page CSS written before extraction */
  --acc-border-md:  var(--color-border-secondary, rgba(0,0,0,0.2));
  --acc-bmd:        var(--acc-border-md);
  --acc-text-muted: var(--acc-muted);
  --acc-radius-sm:  var(--acc-r-sm);
  --acc-radius-md:  var(--acc-r-md);
  --acc-radius-lg:  var(--acc-r-lg);
  --acc-transition: var(--acc-t);
}

/* ── Shared animation ────────────────────────────────────────────── */
@keyframes acc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ── Role badge ──────────────────────────────────────────────────── */
.acc-role-badge {
  font-family: var(--acc-font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc-secondary-hover, #189ab1);
  background: color-mix(in srgb, var(--acc-secondary, #1cb0c9) 10%, transparent);
  padding: 3px 8px;
  border-radius: 0;
  display: inline-block;
  white-space: nowrap;
}
.acc-role-badge--sm { font-size: 10px; }
.acc-role-badge--md { font-size: 11px; }

/* ── Area tag / chip ─────────────────────────────────────────────── */
.acc-area-tag,
.acc-area-chip {
  font-family: var(--acc-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid #cfd6e2;
  background: var(--acc-surface);
  color: #4a5468;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--acc-t), background var(--acc-t), color var(--acc-t);
}
.acc-area-tag:hover  { border-color: var(--acc-secondary); color: #4a5468; }
.acc-area-chip { cursor: pointer; }
.acc-area-chip:hover { border-color: var(--acc-secondary); }
.acc-area-chip.is-active { background: var(--acc-secondary, #1cb0c9); color: var(--acc-secondary-contrast, #002a33); border-color: var(--acc-secondary, #1cb0c9); }
.acc-area-chip.is-active:hover { color: var(--acc-secondary-contrast, #002a33); }

.acc-chip-count { font-size: 10px; background: rgba(0,0,0,.08); padding: 1px 5px; letter-spacing: 0; }
.acc-area-chip.is-active .acc-chip-count { background: rgba(0,0,0,.18); }

/* ── Badge (period / language) ───────────────────────────────────── */
.acc-badge {
  font-family: var(--acc-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 0;
  display: inline-block;
  white-space: nowrap;
}
.acc-badge-period { background: var(--acc-primary, #0d2340); color: #fff; }
.acc-badge-lang   { background: #fff;    color: #4a5468; border: 1px solid #cfd6e2; }

/* ── Filter chip ─────────────────────────────────────────────────── */
.acc-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }

.acc-chip {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  border: 0.5px solid var(--acc-border-md);
  background: var(--acc-surface);
  color: var(--acc-text);
  cursor: pointer;
  transition: all var(--acc-t);
}
.acc-chip:hover     { border-color: var(--acc-secondary); color: var(--acc-secondary); }
.acc-chip.sel       { background: var(--acc-secondary, #1cb0c9); color: var(--acc-secondary-contrast, #002a33); border-color: var(--acc-secondary, #1cb0c9); }
.acc-chip.sel:hover { color: var(--acc-secondary-contrast, #002a33); }

/* ── Language chip ───────────────────────────────────────────────── */
.acc-lang-chip {
  font-family: var(--acc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid #cfd6e2;
  background: var(--acc-surface);
  color: #4a5468;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color var(--acc-t), background var(--acc-t), color var(--acc-t);
}
.acc-lang-chip:hover    { border-color: var(--acc-secondary); }
.acc-lang-chip.is-active { background: var(--acc-secondary, #1cb0c9); color: var(--acc-secondary-contrast, #002a33); border-color: var(--acc-secondary, #1cb0c9); }

/* ── Filter group / label / clear ────────────────────────────────── */
.acc-filter-group {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e3e7ee;
}
.acc-filter-group:last-of-type { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.acc-filter-label {
  font-family: var(--acc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a5468;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.acc-filter-clear {
  font-family: var(--acc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc-secondary-hover, #189ab1);
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--acc-secondary-hover, #189ab1);
  padding: 0 0 1px;
  cursor: pointer;
  transition: color var(--acc-t), border-color var(--acc-t);
}
.acc-filter-clear:hover { color: var(--acc-primary); border-bottom-color: var(--acc-primary); }

/* ── Select (native, custom arrow) ──────────────────────────────── */
.acc-select {
  width: 100%;
  background: #fff;
  border: 1px solid #cfd6e2;
  padding: 10px 14px;
  font-family: var(--acc-font-body);
  font-size: 13.5px;
  color: #1a2438;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4a5468 50%),
    linear-gradient(135deg, #4a5468 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.acc-select:focus { outline: none; border-color: var(--acc-secondary, #1cb0c9); }

/* ── Combobox (searchable, optionally multi) ─────────────────────── */
.acc-combo { position: relative; }

.acc-combo-input {
  width: 100%;
  background: #fff;
  border: 1px solid #cfd6e2;
  padding: 10px 36px 10px 14px;
  font-family: var(--acc-font-body);
  font-size: 13.5px;
  color: #1a2438;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}
.acc-combo-input:focus { outline: none; border-color: var(--acc-secondary, #1cb0c9); cursor: text; }

.acc-combo-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #4a5468;
  font-size: 15px;
  transition: transform var(--acc-t);
}
.acc-combo[aria-expanded="true"] .acc-combo-chevron { transform: translateY(-50%) rotate(180deg); }

.acc-combo-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #cfd6e2;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 200;
}
.acc-combo-list.is-open { display: block; }

.acc-combo-option {
  padding: 9px 14px;
  font-size: 13px;
  color: #1a2438;
  cursor: pointer;
  list-style: none;
}
.acc-combo-option:hover,
.acc-combo-option.is-focused  { background: color-mix(in srgb, var(--acc-secondary, #1cb0c9) 8%, transparent); }
.acc-combo-option.is-selected { color: var(--acc-secondary, #1cb0c9); font-weight: 600; }
.acc-combo-option.is-placeholder { color: #8893a6; }

.acc-combo-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

.acc-combo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--acc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 6px 3px 8px;
  border: 1px solid #cfd6e2;
  background: #fff;
  color: #4a5468;
}

.acc-combo-pill-remove {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8893a6;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 120ms ease;
}
.acc-combo-pill-remove:hover { color: var(--acc-primary, #0d2340); }

/* ── Credits range input ─────────────────────────────────────────── */
.acc-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--acc-font-mono);
  font-size: 12px;
  color: #4a5468;
}

.acc-range-input {
  width: 60px;
  background: #fff;
  border: 1px solid #cfd6e2;
  padding: 7px 10px;
  font-family: var(--acc-font-mono);
  font-size: 13px;
  text-align: center;
  color: var(--acc-primary, #0d2340);
  border-radius: 6px;
  -moz-appearance: textfield;
}
.acc-range-input::-webkit-inner-spin-button,
.acc-range-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.acc-range-input:focus { border-color: var(--acc-secondary, #1cb0c9); outline: none; }

.acc-cfu-suffix {
  color: #8893a6;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Active filter tags ──────────────────────────────────────────── */
.acc-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }

.acc-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 8px 3px 10px;
  border-radius: 20px;
  background: var(--acc-secondary-bg);
  color: var(--acc-secondary);
  border: 0.5px solid color-mix(in srgb, var(--acc-secondary, #1cb0c9) 40%, transparent);
}

.acc-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acc-secondary);
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

/* ── Results bar ─────────────────────────────────────────────────── */
.acc-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.acc-results-count { font-size: 13px; color: var(--acc-muted); }

/* ── Sort control ────────────────────────────────────────────────── */
/* One shared look for every archive sort dropdown (courses, projects, …). */
.acc-sort-control,
.acc-projects-sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.acc-projects-sort-bar { justify-content: flex-end; margin-bottom: 18px; }

.acc-sort-label {
  font-family: var(--acc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8893a6;
}

.acc-sort,
.acc-sort-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--acc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a2438;
  background-color: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--acc-primary, #0d2340) 50%),
    linear-gradient(135deg, var(--acc-primary, #0d2340) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.acc-sort:focus,
.acc-sort-select:focus { outline: none; border-color: var(--acc-primary, #0d2340); }

/* ── Pagination ──────────────────────────────────────────────────── */
.acc-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.acc-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0.5px solid var(--acc-border-md);
  border-radius: var(--acc-r-sm);
  background: var(--acc-surface);
  color: var(--acc-text);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--acc-t);
}
.acc-page-btn:hover      { border-color: var(--acc-secondary); color: var(--acc-secondary); }
.acc-page-btn.active     { background: var(--acc-secondary, #1cb0c9); color: var(--acc-secondary-contrast, #002a33); border-color: var(--acc-secondary, #1cb0c9); }
.acc-page-btn.active:hover { color: var(--acc-secondary-contrast, #002a33); }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.acc-breadcrumb {
  font-family: var(--acc-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc-muted, #8893a6);
  margin-bottom: 28px;
}

.acc-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.acc-breadcrumb li + li::before {
  content: "/";
  opacity: 0.5;
  margin-right: 10px;
}

.acc-breadcrumb a {
  color: var(--acc-secondary, #189ab1);
  text-decoration: none;
}

.acc-breadcrumb a:hover { border-bottom: 1.5px solid currentColor; }

.acc-breadcrumb [aria-current] { color: var(--acc-primary, #1a2438); }

/* ── Course code chip ────────────────────────────────────────────── */
.acc-course-code {
  font-family: var(--acc-font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--acc-secondary, #189ab1);
  margin-bottom: 14px;
  display: block;
}

/* ── Button system ───────────────────────────────────────────────── */
.acc-btn {
  font-family: var(--acc-font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  border: 1.5px solid transparent;
}

.acc-btn .ti { font-size: 14px; flex-shrink: 0; }

.acc-btn-primary {
  background: var(--acc-secondary, #1cb0c9);
  color: var(--acc-secondary-contrast, #002a33);
  border-color: var(--acc-secondary, #1cb0c9);
}

.acc-btn-primary:hover {
  background: var(--acc-secondary-hover, #189ab1);
  border-color: var(--acc-secondary-hover, #189ab1);
}

.acc-btn-secondary {
  background: transparent;
  color: var(--acc-primary, #0d2340);
  border-color: var(--acc-primary, #0d2340);
}

.acc-btn-secondary:hover {
  background: var(--acc-primary, #0d2340);
  color: #fff;
}

/* ── Stats strip ─────────────────────────────────────────────────── */
.acc-stats-strip {
  display: flex;
  border-top: 1px solid #e3e7ee;
  border-bottom: 1px solid #e3e7ee;
  margin-top: 28px;
}

.acc-stats-strip .acc-stat {
  flex: 1;
  padding: 22px 26px;
  border-right: 1px solid #e3e7ee;
}
.acc-stats-strip .acc-stat:last-child { border-right: 0; }

.acc-stat-n {
  font-family: var(--acc-font-display, 'Roboto Slab', Georgia, serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--acc-primary, #0d2340);
  line-height: 1;
  display: block;
}

.acc-stat-l {
  font-family: var(--acc-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8893a6;
  margin-top: 8px;
  display: block;
}

/* ── Sidebar (flat, shared by all archive pages) ─────────────────── */
.acc-sidebar {
  border-right: 1px solid #e3e7ee;
  padding-right: 32px;
  position: sticky;
  top: 80px;
}

/* ── Sidebar divider ─────────────────────────────────────────────── */
.acc-divider {
  height: 0.5px;
  background: var(--acc-border, rgba(0,0,0,.1));
  margin: 1rem 0;
  border: none;
}

/* ── Sidebar reset button ────────────────────────────────────────── */
.acc-reset {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  background: transparent;
  color: var(--acc-primary, #0d2340);
  border: 1.5px solid var(--acc-primary, #0d2340);
  border-radius: 0;
  font-family: var(--acc-font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 120ms ease, color 120ms ease;
}
.acc-reset:hover,
.acc-reset:focus-visible {
  background: var(--acc-primary, #0d2340);
  color: #fff;
  outline: none;
}
.acc-reset:focus-visible {
  box-shadow: 0 0 0 2px var(--acc-secondary, #1cb0c9);
}
.acc-reset:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.acc-reset-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Publication type dot colors ─────────────────────────────────── */
/* Applied to both the sidebar filter list and pub item badges.      */
.t-journal  .dot { background: #2a8d57; }
.t-conf     .dot { background: var(--acc-secondary-hover, #189ab1); }
.t-book     .dot { background: var(--acc-primary, #0d2340); }
.t-chapter  .dot { background: #6a4c93; }
.t-preprint .dot { background: #d0743c; }
.t-other    .dot { background: #8893a6; }

/* ── Publication year grouping (archive + member profile) ───────── */
.acc-pa-year-section { margin-bottom: 8px; }

.acc-pa-year-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 28px 0 10px;
  margin: 0;
}
.acc-pa-year-group .y {
  font-family: var(--acc-font-display, 'Roboto Slab', Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--acc-primary, #0d2340);
}
.acc-pa-year-group .cnt {
  font-family: var(--acc-font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc-muted, #8893a6);
}

/* Year shown inline on each entry (non-year sorts) */
.acc-pa-item-year {
  display: block;
  margin-top: 6px;
  font-family: var(--acc-font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #8893a6;
}

/* ── Publication item shared atoms (archive + member profile) ───── */
.acc-pa-type-col    { padding-top: 3px; }

.acc-pa-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--acc-font-mono, 'JetBrains Mono', monospace);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a5468;
  background: transparent;
  border: 1px solid #cfd6e2;
  border-radius: 0;
  white-space: nowrap;
}
.acc-pa-type-badge .dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; }

.acc-pa-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 3px;
}

.acc-pa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #cfd6e2;
  border-radius: 0;
  background: #fff;
  color: #4a5468;
  font-family: var(--acc-font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 120ms ease, color 120ms ease;
}
.acc-pa-link:hover { border-color: var(--acc-primary, #0d2340); color: var(--acc-primary, #0d2340); }

.acc-pa-ext {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
  transform: translate(1px, -1px) rotate(45deg);
  flex-shrink: 0;
}

.acc-pa-cite-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 11px;
  color: var(--acc-muted, #666);
  margin-left: 10px;
  vertical-align: middle;
}
.acc-pa-cite-count .ti { font-size: 11px; }

.acc-pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
}

.acc-pub-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.6;
  white-space: nowrap;
}

.acc-pub-keywords {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--acc-muted);
  line-height: 1.5;
}
.acc-pub-keywords::before {
  content: 'Keywords: ';
  font-weight: 600;
  color: var(--acc-text);
}

.acc-pa-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--acc-primary, #0d2340);
  color: #fff;
  font-family: var(--acc-font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: var(--acc-r-md, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.acc-pa-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Avada / theme CSS isolation ─────────────────────────────────── */
/*
 * Avada injects CSS via Dynamic CSS that targets bare HTML elements inside
 * the post content wrapper (e.g. `.post-content p`, `.fusion-text a`).
 * These rules override our component styles when they share the same specificity.
 * The block below resets the most commonly conflicting properties for all
 * HTML elements that appear inside our locked section containers, using a
 * two-class selector chain (.academiccrew-locked-section + element class or tag)
 * so our specificity always wins over Avada's single-class selectors.
 */

/* box-model baseline */
.academiccrew-locked-section *,
.academiccrew-locked-section *::before,
.academiccrew-locked-section *::after {
  box-sizing: border-box;
}

/* paragraph reset — Avada typically adds margin-bottom: 20px on .post-content p */
.academiccrew-locked-section p {
  margin:      0;
  padding:     0;
  font-family: var(--acc-font-body);
  font-size:   inherit;
  line-height: inherit;
  color:       inherit;
}

/* heading reset — Avada may set font-family / line-height / margin on h1–h6 */
.academiccrew-locked-section h1,
.academiccrew-locked-section h2,
.academiccrew-locked-section h3,
.academiccrew-locked-section h4 {
  margin:      0;
  padding:     0;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  color:       inherit;
}

/* link reset — Avada may override color and add border-bottom or text-decoration */
.academiccrew-locked-section a {
  color:           inherit;
  text-decoration: none;
  border:          none;
  outline:         none;
}

/* list reset — Avada may add margin/padding/list-style to ul/ol/li inside content */
.academiccrew-locked-section ul,
.academiccrew-locked-section ol {
  margin:     0;
  padding:    0;
  list-style: none;
}
.academiccrew-locked-section li {
  margin:  0;
  padding: 0;
}

/* definition-list reset (used in contact grid) */
.academiccrew-locked-section dl { margin: 0; padding: 0; }
.academiccrew-locked-section dt,
.academiccrew-locked-section dd { margin: 0; padding: 0; }

/* image reset — Avada may add max-width / display / margin on img */
.academiccrew-locked-section img {
  max-width: 100%;
  display:   block;
  margin:    0;
  padding:   0;
  border:    none;
}

/* form control reset — Avada globally styles input/select/textarea.
   element+attr+class = (0,2,1) for inputs; loads after fusion-stylesheet
   so wins by cascade order at equal specificity.
   Literal values only — Avada CSS vars resolve to theme colours/zero. */
.academiccrew-locked-section input[type],
.academiccrew-locked-section select,
.academiccrew-locked-section textarea {
  font-size:    inherit;
  line-height:  normal;
  height:       auto;
  box-shadow:   none;
  background:   #fff;
  color:        #1a2438;
  border-radius: 6px;
}
.academiccrew-locked-section input:not([type]) {
  font-size:    inherit;
  height:       auto;
  box-shadow:   none;
  background:   #fff;
  color:        #1a2438;
  border-radius: 6px;
}
/* button reset: protect against Avada's .fusion-body button (0,1,1) override */
.academiccrew-locked-section button {
  box-shadow:  none;
  line-height: normal;
  height:      auto;
}

/* ── !important immunity for acc-* form controls ─────────────────────
 * Avada's Dynamic CSS is output as an inline <style> in <head> which can
 * land AFTER our linked stylesheet, making equal-specificity fights
 * unpredictable.  We scope !important to our own class names — these classes
 * only exist on plugin-rendered elements, so there is no global pollution.
 * For archive pages the per-page ID blocks (courses-archive.css, etc.)
 * provide an additional (1,n,m) guarantee. */

input[type].acc-combo-input,
input[type].acc-range-input {
  height:        auto          !important;
  border-radius: 6px           !important;
  background:    #fff          !important;
  color:         #1a2438       !important;
  box-shadow:    none          !important;
  line-height:   normal        !important;
  padding:       10px 14px     !important;
}
input[type].acc-range-input {
  width:   60px  !important;
  padding: 8px 10px !important;
}

input[type].acc-search,
input[type].acc-pubs-search,
input[type].acc-kw-input,
input[type].acc-ms-search {
  height:        auto    !important;
  border-radius: 6px     !important;
  color:         #1a2438 !important;
  box-shadow:    none    !important;
  line-height:   normal  !important;
}

select.acc-select,
select.acc-pubs-sort,
select.acc-pubs-year-select,
select.acc-sort-select,
select.acc-sort {
  height:           auto    !important;
  border-radius:    6px     !important;
  background-color: #fff    !important;  /* not `background` — keeps the arrow image */
  color:            #1a2438 !important;
  box-shadow:       none    !important;
  line-height:      normal  !important;
}

/* placeholder immunity — Avada overrides ::placeholder color to theme value */
input[type].acc-combo-input::placeholder,
input[type].acc-range-input::placeholder,
input[type].acc-search::placeholder,
input[type].acc-pubs-search::placeholder,
input[type].acc-kw-input::placeholder,
input[type].acc-ms-search::placeholder,
input[type].acc-pa-search::placeholder { color: #8893a6 !important; }

/* button immunity */
button.acc-reset,
button.acc-filter-clear,
button.acc-lang-chip,
button.acc-chip,
button.acc-type-chip,
button.acc-page-btn,
button.acc-pg-btn,
button.acc-tab,
button.acc-tag-remove,
button.acc-combo-pill-remove { box-shadow: none !important; height: auto !important; }
