/* RAGU University CSV widget — scoped to .ragu-uow-scope (country-page.html design) */
.ragu-uow-scope {
  --ragu-bg: #f5f2ec;
  --ragu-bg2: #ede9e0;
  --ragu-card: #ffffff;
  --ragu-border: rgba(30, 25, 15, 0.12);
  --ragu-text: #1e1a12;
  --ragu-muted: #5a5448;
  --ragu-red: #ce1126;
  --ragu-red-bg: #fff0f0;
  --ragu-red-bd: rgba(206, 17, 38, 0.2);
  --ragu-green: #007a3d;
  --ragu-green-bg: #f0faf4;
  --ragu-green-bd: rgba(0, 122, 61, 0.2);
  --ragu-amber: #c07800;
  --ragu-amber-bg: #fff8ed;
  --ragu-amber-bd: rgba(192, 120, 0, 0.2);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ragu-text);
  box-sizing: border-box;
}

.ragu-uow-scope *,
.ragu-uow-scope *::before,
.ragu-uow-scope *::after {
  box-sizing: border-box;
}

.ragu-uow-scope .ragu-csv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.ragu-uow-scope .ragu-csv-card-mount {
  min-width: 0;
}

.ragu-uow-scope .ragu-csv-card {
  background: var(--ragu-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ragu-border);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.ragu-uow-scope .ragu-csv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 25, 15, 0.08);
}

.ragu-uow-scope .ragu-csv-card-stripe {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}

.ragu-uow-scope .ragu-csv-card-stripe.red {
  background: var(--ragu-red);
}
.ragu-uow-scope .ragu-csv-card-stripe.green {
  background: var(--ragu-green);
}
.ragu-uow-scope .ragu-csv-card-stripe.amber {
  background: var(--ragu-amber);
}

.ragu-uow-scope .ragu-csv-card-body {
  padding: 1.2rem 1.2rem 1rem;
  flex: 1;
}

.ragu-uow-scope .ragu-csv-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.ragu-uow-scope .ragu-csv-card-logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid var(--ragu-border);
  background: var(--ragu-bg2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ragu-uow-scope .ragu-csv-card-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.ragu-uow-scope .ragu-csv-card-logo-initials {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ragu-muted);
  text-align: center;
  line-height: 1.1;
}

.ragu-uow-scope .ragu-csv-card-header-text {
  flex: 1;
  min-width: 0;
}

.ragu-uow-scope .ragu-csv-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.4rem;
}

.ragu-uow-scope .ragu-csv-card-status.red {
  background: var(--ragu-red-bg);
  color: var(--ragu-red);
  border: 1px solid var(--ragu-red-bd);
}
.ragu-uow-scope .ragu-csv-card-status.green {
  background: var(--ragu-green-bg);
  color: var(--ragu-green);
  border: 1px solid var(--ragu-green-bd);
}
.ragu-uow-scope .ragu-csv-card-status.amber {
  background: var(--ragu-amber-bg);
  color: var(--ragu-amber);
  border: 1px solid var(--ragu-amber-bd);
}

.ragu-uow-scope .ragu-csv-card-status .ragu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ragu-uow-scope .ragu-csv-card-status.red .ragu-dot {
  background: var(--ragu-red);
}
.ragu-uow-scope .ragu-csv-card-status.green .ragu-dot {
  background: var(--ragu-green);
}
.ragu-uow-scope .ragu-csv-card-status.amber .ragu-dot {
  background: var(--ragu-amber);
}

.ragu-uow-scope .ragu-csv-card-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ragu-text);
  line-height: 1.25;
  margin: 0 0 0.15rem;
}

.ragu-uow-scope .ragu-csv-card-name a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--ragu-text), var(--ragu-text));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.2s;
}

.ragu-uow-scope .ragu-csv-card-name a:hover {
  background-size: 100% 1px;
}

.ragu-uow-scope .ragu-csv-card-country {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ragu-muted);
  margin: 0;
}

.ragu-uow-scope .ragu-csv-card-summary {
  font-size: 0.85rem;
  color: var(--ragu-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.ragu-uow-scope .ragu-csv-card-readmore-row {
  margin-bottom: 0.5rem;
}

.ragu-uow-scope .ragu-csv-readmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--ragu-border);
  background: var(--ragu-bg2);
  color: var(--ragu-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}

.ragu-uow-scope .ragu-csv-readmore-btn:hover {
  background: var(--ragu-text);
  color: var(--ragu-card);
  border-color: var(--ragu-text);
}

.ragu-uow-scope .ragu-csv-readmore-btn:focus-visible {
  outline: 2px solid var(--ragu-amber);
  outline-offset: 2px;
}

.ragu-uow-scope .ragu-csv-card-footer {
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--ragu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ragu-uow-scope .ragu-csv-card-ties {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--ragu-muted);
}

.ragu-uow-scope .ragu-csv-card-ties strong {
  color: var(--ragu-text);
  font-weight: 600;
}

.ragu-uow-scope .ragu-csv-card-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ragu-muted);
}

.ragu-uow-scope .ragu-csv-card-row--secondary-link {
  margin-top: 0.25rem;
}

.ragu-uow-scope .ragu-csv-card-report {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ragu-muted);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ragu-border);
  border-radius: 20px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.ragu-uow-scope .ragu-csv-card-report:hover {
  color: var(--ragu-text);
  border-color: var(--ragu-text);
}

.ragu-uow-scope .ragu-csv-loading-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  grid-column: 1 / -1;
}

.ragu-uow-scope .ragu-csv-loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ragu-border);
  border-top-color: var(--ragu-text);
  border-radius: 50%;
  animation: ragu-csv-spin 0.7s linear infinite;
  margin-bottom: 0.75rem;
}

@keyframes ragu-csv-spin {
  to {
    transform: rotate(360deg);
  }
}

.ragu-uow-scope .ragu-csv-loading-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ragu-muted);
}

.ragu-uow-scope .ragu-csv-coming-soon {
  background: var(--ragu-card);
  border: 1px solid var(--ragu-border);
  border-radius: 8px;
  padding: 2rem 1.25rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.ragu-uow-scope .ragu-csv-coming-soon h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--ragu-text);
}

.ragu-uow-scope .ragu-csv-coming-soon p {
  font-size: 0.85rem;
  color: var(--ragu-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .ragu-uow-scope .ragu-csv-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Full country page ([uow_country_page]) — matches country-page.html shell ── */
.ragu-uow-scope .ragu-cp-hero {
  background: var(--ragu-bg2);
  border-bottom: 1px solid var(--ragu-border);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.ragu-uow-scope .ragu-cp-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--ragu-red) 0 33.3%,
    var(--ragu-text) 33.3% 66.6%,
    var(--ragu-green) 66.6% 100%
  );
}

.ragu-uow-scope .ragu-cp-hero--flag {
  background-color: #1e1f24;
  background-image: linear-gradient(
      180deg,
      rgba(14, 14, 18, 0.55) 0%,
      rgba(14, 14, 18, 0.72) 100%
    ),
    var(--ragu-cp-flag-image, linear-gradient(135deg, #2a2e3a 0%, #16181c 100%));
  background-size: cover, cover;
  background-position: center, center center;
  min-height: 280px;
  padding: 4rem 2rem 3rem;
  border-bottom: none;
}

.ragu-uow-scope .ragu-cp-hero--flag::after {
  opacity: 0.85;
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-back {
  color: rgba(255, 255, 255, 0.75);
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-back:hover {
  color: #fff;
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-hero-emoji {
  display: none;
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-meta {
  color: rgba(255, 255, 255, 0.65);
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-title {
  color: #fff;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-stat-num {
  color: #fff;
}

.ragu-uow-scope .ragu-cp-hero--flag .ragu-cp-stat-lbl {
  color: rgba(255, 255, 255, 0.6);
}

.ragu-uow-scope .ragu-cp-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ragu-uow-scope .ragu-cp-hero-inner > .ragu-cp-back {
  position: absolute;
  top: 1.75rem;
  left: max(2rem, (100% - 1100px) / 2);
}

.ragu-uow-scope .ragu-cp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ragu-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.ragu-uow-scope .ragu-cp-back:hover {
  color: var(--ragu-text);
}

.ragu-uow-scope .ragu-cp-back svg {
  flex-shrink: 0;
}

.ragu-uow-scope .ragu-cp-hero-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ragu-uow-scope .ragu-cp-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--ragu-text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.ragu-uow-scope .ragu-cp-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  color: var(--ragu-muted);
  letter-spacing: 0.1em;
}

.ragu-uow-scope .ragu-cp-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ragu-uow-scope .ragu-cp-stat {
  display: flex;
  flex-direction: column;
}

.ragu-uow-scope .ragu-cp-stat-num {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--ragu-text);
  line-height: 1;
}

.ragu-uow-scope .ragu-cp-stat-lbl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ragu-muted);
  margin-top: 0.2rem;
  max-width: 12rem;
  line-height: 1.25;
}

.ragu-uow-scope .ragu-cp-controls {
  background: var(--ragu-bg2);
  border-bottom: 1px solid var(--ragu-border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.ragu-uow-scope .ragu-cp-controls-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.ragu-uow-scope .ragu-cp-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.ragu-uow-scope .ragu-cp-search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ragu-muted);
}

.ragu-uow-scope .ragu-cp-search {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  border: 1px solid var(--ragu-border);
  border-radius: 4px;
  background: var(--ragu-card);
  color: var(--ragu-text);
  font-family: Inter, sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.ragu-uow-scope .ragu-cp-search:focus {
  border-color: var(--ragu-text);
}

.ragu-uow-scope .ragu-cp-filter-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--ragu-border);
  border-radius: 4px;
  background: var(--ragu-card);
  color: var(--ragu-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-height: 2.35rem;
  justify-content: center;
}

.ragu-uow-scope .ragu-cp-filter-btn:hover {
  color: var(--ragu-text);
  border-color: var(--ragu-text);
}

.ragu-uow-scope .ragu-cp-filter-btn.active {
  color: var(--ragu-card);
  border-color: transparent;
}

.ragu-uow-scope .ragu-cp-filter-btn.active.all {
  background: var(--ragu-text);
}

.ragu-uow-scope .ragu-cp-filter-btn.active.red {
  background: var(--ragu-red);
}

.ragu-uow-scope .ragu-cp-filter-btn.active.green {
  background: var(--ragu-green);
}

.ragu-uow-scope .ragu-cp-filter-btn.active.amber {
  background: var(--ragu-amber);
}

.ragu-uow-scope .ragu-cp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ragu-uow-scope .ragu-cp-dot.dot-red {
  background: var(--ragu-red);
}

.ragu-uow-scope .ragu-cp-dot.dot-green {
  background: var(--ragu-green);
}

.ragu-uow-scope .ragu-cp-dot.dot-amber {
  background: var(--ragu-amber);
}

.ragu-uow-scope .ragu-cp-filter-btn.active .ragu-cp-dot.dot-red,
.ragu-uow-scope .ragu-cp-filter-btn.active .ragu-cp-dot.dot-green,
.ragu-uow-scope .ragu-cp-filter-btn.active .ragu-cp-dot.dot-amber {
  background: rgba(255, 255, 255, 0.7);
}

.ragu-uow-scope .ragu-cp-result-count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  color: var(--ragu-muted);
  letter-spacing: 0.08em;
  margin-left: auto;
  white-space: nowrap;
}

.ragu-uow-scope .ragu-cp-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.ragu-uow-scope .ragu-cp-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ragu-muted);
}

.ragu-uow-scope .ragu-cp-empty p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 640px) {
  .ragu-uow-scope .ragu-cp-hero-inner > .ragu-cp-back {
    position: static;
    margin-bottom: 1rem;
    align-self: flex-start;
  }

  .ragu-uow-scope .ragu-cp-filter-btn {
    flex: 1 1 calc(50% - 0.375rem);
    font-size: 0.58rem;
    padding: 0.45rem 0.5rem;
  }

  .ragu-uow-scope .ragu-cp-result-count {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}
