/* =====================================================================
   HibeRota — site.css  (DÜZELTİLMİŞ)
   ---------------------------------------------------------------------
   Bu dosya styles.css'ten SONRA yüklenir; bu yüzden yalnızca
   styles.css'te bulunmayan İŞLEVSEL ve ERİŞİLEBİLİRLİK kuralları içerir.
   Eski gri taslak (wireframe) kuralları kaldırıldı — tema styles.css'te
   tek yerden yönetilir. Buraya renk/ölçü/kart stili EKLEMEYİN.
   ===================================================================== */

/* ----------------------------- ERİŞİLEBİLİRLİK ----------------------------- */
.skip-link {
  background: #ffffff;
  border: 2px solid var(--hr-green, #15875C);
  border-radius: 8px;
  color: var(--hr-ink, #14211B);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: fixed;
  top: 0.75rem;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
  z-index: 1100;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--hr-green, #15875C);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

/* ----------------------------- ÜST BAŞLIK YARDIMCILARI ----------------------------- */
.site-header .nav-link {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.site-header .container {
  flex-wrap: nowrap;
}

.favorite-shortcut {
  min-height: 34px;
}

.favorite-label-compact {
  display: none;
}

.language-switcher {
  align-items: center;
  border: 1px solid var(--hr-border, #E6EEE9);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.15rem;
}

.language-switcher--mobile {
  width: fit-content;
}

.language-switcher__item {
  align-items: center;
  border-radius: 999px;
  color: var(--hr-muted, #586B61);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 1.7rem;
  min-width: 2rem;
  text-decoration: none;
}

.language-switcher__item--active {
  background: var(--hr-green, #15875C);
  color: #ffffff;
}

.language-switcher__item:hover {
  color: var(--hr-green, #15875C);
}

.language-switcher__item--active:hover {
  color: #ffffff;
}

.home-search {
  max-width: 42rem;
}

@media (max-width: 359.98px) {
  .institution-search-form {
    flex-wrap: wrap;
  }

  .institution-search-form > div {
    flex-basis: 100% !important;
  }

  .institution-search-form .btn {
    min-height: 42px;
  }
}

/* ----------------------------- REKLAM ALANI ----------------------------- */
.ad-slot {
  align-items: center;
  background: var(--hr-mint-50, #F1F6F3);
  border: 1px dashed var(--hr-border-2, #D7E6DD);
  border-radius: var(--hr-r, 12px);
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 6rem;
  overflow: hidden;
}

/* ----------------------------- SABİT BANTLAR ----------------------------- */
.survey-prompt {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--hr-border, #E6EEE9);
  border-radius: var(--hr-r-lg, 16px);
  bottom: 1rem;
  box-shadow: var(--hr-shadow-lg, 0 18px 40px rgba(16, 61, 43, 0.16));
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 1rem;
  max-width: min(34rem, calc(100% - 2rem));
  padding: 1rem;
  position: fixed;
  z-index: 1050;
}

.survey-prompt-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

body:has(.offcanvas.show) .survey-prompt,
body:has(.modal.show) .survey-prompt,
body:has(.offcanvas.show) .consent-banner,
body:has(.modal.show) .consent-banner {
  display: none;
}

.consent-banner {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--hr-border, #E6EEE9);
  border-radius: var(--hr-r-lg, 16px);
  bottom: 1rem;
  box-shadow: var(--hr-shadow-lg, 0 18px 40px rgba(16, 61, 43, 0.16));
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 1rem;
  max-width: min(38rem, calc(100% - 2rem));
  padding: 1rem;
  position: fixed;
  /* Consent must remain actionable when the first-visit survey prompt is shown. */
  z-index: 1060;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

/* ----------------------------- FİLTRE FORMU ----------------------------- */
.call-filter-form {
  display: grid;
  gap: 1rem;
}

.call-filter-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.call-filter-form legend {
  color: var(--hr-muted-2, #8AA197);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.quick-filter-row,
.filter-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-section {
  border-top: 1px solid var(--hr-border, #E6EEE9);
  padding-top: 0.85rem;
}

.filter-section summary {
  color: var(--hr-ink, #14211B);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  list-style-position: outside;
  margin-bottom: 0.75rem;
}

.filter-section > div,
.filter-section > fieldset {
  margin-bottom: 0.9rem;
}

.filter-option-search {
  margin-bottom: 0.35rem;
}

.empty-state__tips {
  color: var(--hr-muted, #586B61);
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  text-align: left;
}

.guide-category-nav {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.guide-category-nav__item {
  display: inline-flex;
  justify-content: center;
  line-height: 1.2;
  max-width: 100%;
  min-height: 2.25rem;
  text-align: center;
}

.guide-category-nav__item--active {
  box-shadow: inset 0 0 0 1px var(--hr-green, #15875C);
}

.guide-category-nav .active-filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Project Guide directory: scoped final rules keep this page independent from legacy card styles. */
.guide-directory-intro {
  padding-block: 4rem 3rem;
}

.guide-directory-intro__layout {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.guide-directory-intro__layout > div:first-child {
  min-width: 0;
}

.guide-directory-summary {
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--hr-reference-border, #e2e8f5);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(46, 72, 150, 0.08);
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
  padding: 0.95rem 1.1rem;
}

.guide-directory-summary strong {
  color: var(--hr-reference-ink, #12203a);
  font-size: 1.65rem;
  line-height: 1;
}

.guide-directory-summary span {
  color: var(--hr-reference-copy, #51607a);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-directory-topics {
  margin: 1.25rem 0 2rem;
}

.guide-directory-topics__heading h2 {
  color: var(--hr-reference-ink, #12203a);
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.guide-category-nav {
  gap: 0.6rem;
  margin-bottom: 0;
}

.guide-category-nav__item {
  align-items: center;
  gap: 0.45rem;
  padding-inline: 0.75rem;
}

.guide-category-nav__item small {
  align-items: center;
  background: rgba(75, 116, 245, 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  justify-content: center;
  min-width: 1.45rem;
  padding: 0.15rem 0.38rem;
}

.guide-category-nav__item--active small {
  background: rgba(255, 255, 255, 0.22);
}

.guide-spotlight {
  background: linear-gradient(135deg, #fff 0%, #f4f7ff 100%);
  border: 1px solid var(--hr-reference-border, #e2e8f5);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(46, 72, 150, 0.09);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.65fr);
  margin: 0 0 2.5rem;
  overflow: hidden;
}

.guide-spotlight__content {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.65rem;
}

.guide-spotlight h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

.guide-spotlight h2 a {
  color: var(--hr-reference-ink, #12203a);
  text-decoration: none;
}

.guide-spotlight__content > p:not(.section-kicker, .blog-card__meta) {
  color: var(--hr-reference-copy, #51607a);
  margin: 0 0 1rem;
  max-width: 42rem;
}

.guide-spotlight__link {
  color: var(--hr-blue, #4b74f5);
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.guide-spotlight__link:hover,
.guide-spotlight h2 a:hover {
  color: var(--hr-purple, #a855f7);
}

.guide-spotlight__visual {
  align-items: center;
  background: var(--hr-reference-gradient, linear-gradient(135deg, #22b4ee, #a855f7));
  color: #fff;
  display: flex;
  font-size: 1.05rem;
  font-weight: 800;
  justify-content: center;
  min-height: 16rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
}

.guide-spotlight__visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.blog-grid {
  align-items: stretch;
}

.blog-card {
  height: 100%;
  min-width: 0;
}

.blog-card__body {
  min-width: 0;
}

.blog-card h2 a {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .guide-directory-intro {
    padding-block: 2.5rem 2rem;
  }

  .guide-directory-intro__layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .guide-directory-summary {
    width: 100%;
  }

  .guide-category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
  }

  .guide-category-nav__item {
    min-height: 2.75rem;
  }

  .guide-spotlight {
    grid-template-columns: 1fr;
  }

  .guide-spotlight__visual {
    min-height: 9rem;
  }
}

.guide-link-box {
  background: var(--hr-mint-50, #F1F6F3);
  border: 1px solid var(--hr-mint-border, #CBE6D8);
  border-radius: var(--hr-r-lg, 16px);
  margin-bottom: 1.6rem;
  padding: 1.15rem;
}

.guide-link-box h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.guide-link-box ul {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 991.98px) {
  .offcanvas .offcanvas-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--hr-border, #E6EEE9);
  }

  .call-filter-offcanvas__summary {
    color: var(--hr-muted, #586B61);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
  }

  .call-filter-offcanvas__summary strong {
    color: var(--hr-ink, #14211B);
  }

  .call-filter-offcanvas__active-filters {
    border-bottom: 1px solid var(--hr-border, #E6EEE9);
    margin: -0.25rem 0 1rem;
    padding-bottom: 1rem;
  }

  .call-filter-offcanvas__active-filters > p {
    color: var(--hr-muted, #586B61);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
  }

  .call-filter-offcanvas__active-filters .active-filter-list {
    margin: 0;
  }

  .offcanvas .offcanvas-body {
    padding-bottom: 7.5rem;
  }

  .offcanvas .filter-actions {
    background: var(--hr-surface, #ffffff);
    border-top: 1px solid var(--hr-border, #E6EEE9);
    bottom: 0;
    margin: 0 -1rem -1rem;
    padding: 1rem;
    position: sticky;
    z-index: 1;
  }

  .offcanvas .filter-actions .btn {
    flex: 1 1 auto;
  }

  .offcanvas .filter-actions--mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offcanvas .filter-actions--mobile .btn:last-child {
    grid-column: 1 / -1;
  }
}

/* ----------------------------- FORMLAR ----------------------------- */
.newsletter-page {
  padding: 2rem 1rem 4.5rem;
}

.newsletter-page__inner {
  margin: 0 auto;
  max-width: 44rem;
}

.newsletter-page .alert {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

.newsletter-form {
  background: var(--hr-surface, #ffffff);
  border-radius: var(--hr-r-lg, 16px);
  box-shadow: var(--hr-shadow-sm, 0 6px 20px rgba(16, 61, 43, 0.06));
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  padding: 1.5rem;
}

.newsletter-form fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.newsletter-fieldset {
  display: grid;
  gap: 0.55rem;
}

.newsletter-form .form-check {
  min-width: 0;
}

.newsletter-form .form-check label,
.newsletter-form .form-check-label {
  overflow-wrap: anywhere;
}

.newsletter-form ul,
.newsletter-option-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsletter-form li,
.newsletter-option {
  min-width: 0;
}

.newsletter-option {
  align-items: flex-start;
  background: var(--hr-mint-50, #f2fbf6);
  border: 1px solid var(--hr-border, #d7e6dd);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  line-height: 1.35;
  min-height: 44px;
  padding: 0.7rem 0.78rem;
}

.newsletter-option .form-check-input {
  flex: none;
  margin: 0.12rem 0 0;
}

.newsletter-option span {
  overflow-wrap: anywhere;
}

.newsletter-option:has(.form-check-input:checked) {
  background: var(--hr-mint-100, #dcf5e7);
  border-color: var(--hr-green, #15875c);
}

.newsletter-form button[type="submit"],
.newsletter-form .btn {
  justify-self: start;
}

@media (min-width: 768px) {
  .newsletter-page {
    padding-bottom: 6rem;
    padding-top: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .newsletter-page {
    padding: 1.25rem 0.85rem 3.5rem;
  }

  .newsletter-form {
    border-radius: 14px;
    padding: 1.1rem;
  }

  .newsletter-form ul,
  .newsletter-option-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form button[type="submit"],
  .newsletter-form .btn {
    justify-self: stretch;
    width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .guide-category-nav {
    flex-wrap: nowrap;
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    overflow-x: auto;
    padding: 0 0.85rem 0.35rem;
    scroll-padding-left: 0.85rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 575.98px) {
  .guide-category-nav {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    overflow-x: visible;
    padding: 0;
  }

  .guide-category-nav .active-filter-chip {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    white-space: normal;
  }
}

/* ----------------------------- BLOG İÇERİĞİ ----------------------------- */
.blog-content img {
  height: auto;
  max-width: 100%;
}

/* ----------------------------- VEOR COLLECTION MARKA ALANI ----------------------------- */
.brand-area {
  background: var(--hr-surface, #ffffff);
  border-radius: var(--hr-r-lg, 16px);
  box-shadow: var(--hr-shadow-sm, 0 6px 20px rgba(16, 61, 43, 0.06));
  display: grid;
  gap: 1.25rem;
  max-width: 54rem;
  padding: 1.5rem;
}

.brand-lockup {
  align-items: center;
  border-bottom: 1px solid var(--hr-border, #E6EEE9);
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
}

.brand-mark {
  align-items: center;
  background: var(--hr-mint-100, #E3F4EA);
  border: 1px solid var(--hr-mint-border, #CBE6D8);
  border-radius: 12px;
  color: var(--hr-green, #15875C);
  display: inline-flex;
  flex: 0 0 3rem;
  font-weight: 800;
  height: 3rem;
  justify-content: center;
}

.brand-name {
  color: var(--hr-ink, #14211B);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ----------------------------- ÇOK DAR EKRANLAR ----------------------------- */
@media (max-width: 374.98px) {
  .favorite-shortcut {
    font-size: 0.875rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .favorite-label-full {
    display: none;
  }

  .favorite-label-compact {
    display: inline;
  }

  .language-switcher__item {
    min-width: 1.75rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .survey-prompt,
  .consent-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-actions {
    justify-content: flex-start;
  }
}

/* -------------------- PORTAL UI POLISH / JULY 2026 -------------------- */
/* The visual layer intentionally keeps Django markup, URL parameters and
   Bootstrap's offcanvas behaviour unchanged. */
:focus-visible {
  outline: 3px solid rgba(0, 74, 198, 0.38);
  outline-offset: 3px;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 254, 0.88);
  border-bottom-color: rgba(195, 198, 215, 0.72);
}

.home-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(168, 85, 247, 0.10), transparent 25rem),
    radial-gradient(circle at 14% 88%, rgba(34, 211, 238, 0.12), transparent 22rem),
    var(--hr-page-bg);
}

.home-hero__eyebrow,
.home-popular-searches a {
  border-color: rgba(0, 74, 198, 0.18);
}

.home-hero__call {
  border-color: rgba(0, 74, 198, 0.18);
  box-shadow: 0 24px 52px rgba(7, 20, 38, 0.10);
}

.home-hero__featured-label,
.quality-badge--source {
  background: #e8efff;
  color: #003ea8;
}

.home-metrics {
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-r-lg);
  box-shadow: 0 12px 28px rgba(7, 20, 38, 0.05);
}

.quick-start-card,
.call-card,
.institution-card,
.blog-card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.quick-start-card:hover,
.institution-card:hover,
.blog-card:hover {
  border-color: rgba(0, 74, 198, 0.34);
}

.call-card {
  isolation: isolate;
}

.call-card::before {
  background: linear-gradient(90deg, var(--hr-primary-bright), var(--hr-violet));
  border-radius: inherit;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity .2s ease;
}

.call-card:hover::before,
.call-card:focus-within::before {
  opacity: 1;
}

.call-card:focus-within {
  border-color: var(--hr-primary-bright);
  box-shadow: 0 14px 30px rgba(0, 74, 198, 0.13);
}

.call-card__tags,
.call-quality-badges {
  gap: .4rem;
}

.call-card__tag,
.quality-badge,
.deadline-status-badge {
  letter-spacing: .01em;
}

.filter-sidebar,
.list-toolbar {
  box-shadow: 0 12px 30px rgba(7, 20, 38, 0.06);
}

.filter-section summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 2rem;
}

.filter-section summary::after {
  color: var(--hr-primary);
  content: "+";
  font-size: 1.1rem;
  font-weight: 500;
}

.filter-section[open] summary::after {
  content: "−";
}

.call-detail-hero__card,
.call-detail-content > section,
.call-info-card {
  box-shadow: 0 12px 30px rgba(7, 20, 38, 0.05);
}

.call-detail-actions .btn-primary {
  background-image: linear-gradient(120deg, #004ac6, #2563eb 55%, #7650d8);
  border-color: #004ac6;
}

.call-detail-content > .call-scope-card {
  background: linear-gradient(135deg, #f7faff 0%, #ffffff 72%);
  border-color: #c7d8ff;
  display: grid;
  gap: 1rem;
}

.call-scope-card__header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.call-scope-card__eyebrow {
  color: var(--hr-primary);
  font-size: .78rem !important;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 .3rem !important;
  text-transform: uppercase;
}

.call-scope-card__header h2 {
  color: var(--hr-ink) !important;
  margin-bottom: 0 !important;
}

.call-scope-card__source-label {
  background: #eaf2ff;
  border: 1px solid #c7d8ff;
  border-radius: 999px;
  color: var(--hr-primary);
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .6rem;
}

.call-scope-card__summary,
.call-scope-card__details-content {
  display: grid;
  gap: .85rem;
}

.call-scope-card__summary p,
.call-scope-card__details-content p {
  color: var(--hr-text);
  line-height: 1.75;
  margin: 0 !important;
}

.call-scope-card__summary .call-scope-card__lead {
  color: var(--hr-ink);
  font-size: 1.06rem !important;
  font-weight: 600;
}

.call-scope-card__details {
  border-top: 1px solid var(--hr-border);
  padding-top: .9rem;
}

.call-scope-card__details summary {
  align-items: center;
  color: var(--hr-primary);
  cursor: pointer;
  display: flex;
  font-size: .95rem;
  font-weight: 750;
  gap: .65rem;
  list-style: none;
}

.call-scope-card__details summary::-webkit-details-marker {
  display: none;
}

.call-scope-card__details summary::after {
  align-items: center;
  border: 1px solid #b9cbf8;
  border-radius: 50%;
  content: "+";
  display: inline-flex;
  font-size: 1.15rem;
  height: 1.5rem;
  justify-content: center;
  margin-left: auto;
  width: 1.5rem;
}

.call-scope-card__details[open] summary::after {
  content: "−";
}

.call-scope-card__details-label--collapse {
  display: none;
}

.call-scope-card__details[open] .call-scope-card__details-label--expand {
  display: none;
}

.call-scope-card__details[open] .call-scope-card__details-label--collapse {
  display: inline;
}

.call-scope-card__details-content {
  border-left: 2px solid #d5e2ff;
  margin: 1rem 0 .2rem;
  padding-left: 1rem;
}

.call-scope-card__note {
  color: var(--hr-muted) !important;
  font-size: .85rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

@media (max-width: 575.98px) {
  .home-metrics {
    border-radius: 12px;
  }

  .home-metrics > div {
    min-height: 4.5rem;
  }

  .call-card,
  .quick-start-card,
  .institution-card,
  .blog-card {
    transform: none;
  }

  .quick-filter-row .btn,
  .filter-actions .btn,
  .call-detail-actions .btn {
    min-height: 44px;
  }

  .call-detail-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .call-scope-card__header {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }
}

/* -------------------- DISCOVERY UX / JULY 2026 -------------------- */
.list-toolbar__summary {
  align-items: center;
  color: var(--hr-muted);
  gap: .7rem;
  min-width: 0;
}

.list-toolbar__summary strong {
  color: var(--hr-ink);
  font-size: 1rem;
}

.list-toolbar__summary-icon {
  align-items: center;
  background: var(--hr-mint-50);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-r);
  color: var(--hr-primary);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.visitor-country-priority {
  align-items: center;
  background: var(--hr-mint-50);
  border: 1px solid var(--hr-border);
  border-radius: var(--hr-r);
  color: var(--hr-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: .5rem;
  margin: .85rem 0;
  padding: .7rem .8rem;
}

.visitor-country-priority svg {
  color: var(--hr-primary);
  flex: 0 0 auto;
}

.visitor-country-priority a {
  color: var(--hr-primary);
  font-weight: 700;
  margin-left: auto;
}

.visitor-country-priority a:focus-visible {
  border-radius: .25rem;
  outline: 3px solid var(--hr-primary-bright);
  outline-offset: 2px;
}

.call-filter-trigger {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
  justify-content: center;
}

.call-grid--list .call-card h3 {
  max-width: calc(100% - 3.5rem);
}

.call-grid--list .call-card__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 992px) {
  .filter-sidebar {
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--hr-border-2) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
}

@media (max-width: 991.98px) {
  .list-toolbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .94);
    position: sticky;
    top: 4.75rem;
    z-index: 1020;
  }
}

@media (max-width: 575.98px) {
  .site-header .language-switcher--header {
    display: none !important;
  }

  .list-toolbar {
    align-items: center;
    display: grid;
    gap: .6rem;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    padding: .6rem;
    top: 4.5rem;
  }

  .list-toolbar > .btn {
    min-width: 0;
    width: auto;
  }

  .sort-form {
    display: block;
    min-width: 0;
  }

  .list-toolbar__sort-label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .sort-form .form-select {
    min-height: 44px;
  }

  .call-grid--list .call-card h3 {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .survey-prompt {
    align-items: center;
    bottom: .75rem;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    left: .75rem;
    max-width: none;
    padding: .8rem;
    right: .75rem;
  }

  .survey-prompt .fw-semibold {
    font-size: .88rem;
    line-height: 1.25;
  }

  .survey-prompt .text-secondary {
    display: none;
  }

  .survey-prompt-actions {
    gap: .4rem;
  }

  .survey-prompt-actions .btn {
    font-size: .78rem;
    min-height: 40px;
    padding: .45rem .65rem;
  }

  .consent-banner {
    align-items: stretch;
    bottom: .75rem;
    gap: .65rem;
    left: .75rem;
    max-width: none;
    padding: .8rem;
    right: .75rem;
  }

  .consent-banner p {
    font-size: .82rem;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .consent-actions {
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consent-actions .btn {
    font-size: .78rem;
    min-height: 40px;
    padding: .45rem .55rem;
  }
}

@media (max-width: 359.98px) {
  .site-header .navbar-brand img {
    max-width: 92px;
  }

  .list-toolbar {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }

  .call-filter-trigger {
    gap: .35rem;
    padding-inline: .55rem;
  }
}

/* Newsletter signup card: initial email capture stays separate from consent and confirmation. */
.site-footer__newsletter {
  align-items: center;
  background: linear-gradient(105deg, #1d93dc 0%, #2f71ce 58%, #584bd4 100%);
  border: 1px solid rgba(190, 218, 255, .56);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 74, 164, .2);
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, .95fr);
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.site-footer__newsletter::after {
  background: repeating-radial-gradient(
    ellipse at 40% 120%,
    transparent 0 30px,
    rgba(255, 255, 255, .16) 31px 32px,
    transparent 33px 62px
  );
  content: "";
  height: 260px;
  opacity: .55;
  pointer-events: none;
  position: absolute;
  right: 24%;
  top: -126px;
  transform: rotate(14deg);
  width: 410px;
}

.site-footer__newsletter-copy,
.site-footer__newsletter-form {
  position: relative;
  z-index: 1;
}

.site-footer__newsletter-copy {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.site-footer__newsletter-icon {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 4.75rem;
  justify-content: center;
  width: 4.75rem;
}

.site-footer__newsletter-eyebrow {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 .3rem !important;
  text-transform: uppercase;
}

.site-footer__newsletter h2 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.18;
  margin: 0;
}

.site-footer__newsletter-copy > div > p:last-child {
  color: rgba(255, 255, 255, .86);
  font-size: .92rem;
  margin: .35rem 0 0;
}

.site-footer__newsletter-form {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-footer__newsletter-field {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(13, 53, 138, .16);
  color: #5a76ae;
  display: flex;
  gap: .7rem;
  min-height: 3.75rem;
  padding: 0 1rem;
}

.site-footer__newsletter-field:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 8px 18px rgba(13, 53, 138, .16);
}

.site-footer__newsletter-field input {
  background: transparent;
  border: 0;
  color: #172744;
  flex: 1 1 auto;
  min-width: 0;
  outline: 0;
}

.site-footer__newsletter-field input::placeholder {
  color: #7488af;
  opacity: 1;
}

.site-footer__newsletter-submit {
  align-items: center;
  background: #f5f7ff;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 12px;
  color: #244fae;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: .45rem;
  justify-content: center;
  min-height: 3.75rem;
  padding: .75rem 1.05rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}

.site-footer__newsletter-submit:hover {
  background: #ffffff;
  color: #173b8f;
  transform: translateY(-1px);
}

.site-footer__newsletter-submit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .78);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .site-footer__newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .site-footer__newsletter {
    border-radius: 14px;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .site-footer__newsletter::after {
    right: -42%;
  }

  .site-footer__newsletter-icon {
    height: 3.5rem;
    width: 3.5rem;
  }

  .site-footer__newsletter-form {
    grid-template-columns: 1fr;
  }

  .site-footer__newsletter-submit {
    width: 100%;
  }
}
