/* Price atlas: sticker vs net tuition, the signature component */
.price-atlas {
  --ink: #1b2210;
  --muted: #4a5260;
  --surface: #ffffff;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.price-atlas__kicker {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-atlas__title {
  margin: .25rem 0 1rem;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
}
.price-atlas__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.pa-row__head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .9rem;
  margin-bottom: .3rem;
}
.pa-row__head .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.pa-track {
  position: relative;
  height: 12px;
  background: var(--border);
  border-radius: 999px;
}
.pa-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--brand);
  opacity: .35;
  border-radius: 999px;
}
.pa-pin {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  transform: translateY(-50%);
  border-radius: 50% 50% 50% 0;
  transform-origin: center;
  background: var(--brand);
  border: 2px solid var(--surface);
  rotate: -45deg;
}
.pa-row__net {
  margin: .3rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.pa-scale {
  display: flex;
  justify-content: space-between;
  margin-top: .8rem;
  font-size: .72rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: .35rem;
}
.pa-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: .7rem 0 0;
  font-size: .78rem;
  color: var(--muted);
}
.pa-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.pa-key-bar { width: 18px; height: 8px; border-radius: 999px; background: var(--brand); opacity: .35; }
.pa-key-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.price-atlas .note { margin: .6rem 0 0; font-size: .75rem; }
.price-atlas a { color: var(--brand); }

/* Contrast: keep the card text dark even inside a hero with light text */
.hero .price-atlas,
.hero .price-atlas h2,
.hero .price-atlas .pa-row__head span { color: var(--ink); }
.hero .price-atlas .price-atlas__kicker,
.hero .price-atlas .pa-row__net,
.hero .price-atlas .pa-scale,
.hero .price-atlas .pa-scale span,
.hero .price-atlas .pa-legend,
.hero .price-atlas .pa-legend span,
.hero .price-atlas .note { color: var(--muted); }
.hero .price-atlas a { color: #4a6318; }

/* Chips: normalise label case and keep counts off the label */
lg-groups .chip::first-letter,
lg-groups .chips a::first-letter { text-transform: uppercase; }
.chip span,
.chips a span,
.chips .count { margin-left: .4em; }

/* Cards: equal height, link pinned to the bottom, no empty field rows */
lg-cards .card,
lg-cards article {
  display: flex;
  flex-direction: column;
  height: 100%;
}
lg-cards .card > a:last-child,
lg-cards .card .card__link,
lg-cards .card .card__go,
lg-cards article > a:last-child { margin-top: auto; }
lg-cards dl > div:empty,
lg-cards .card__meta:empty,
lg-cards .card li:empty,
lg-cards dd:empty { display: none; }

/* UK scholarships: even rows on wide screens */
@media (min-width: 900px) {
  .uk-scholarships lg-cards [class*="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Accreditor table: scroll container, muted blanks, stacked cards on phones */
.table-note { margin-top: .6rem; font-size: .85rem; }
.table-scroll { overflow-x: auto; max-width: 100%; }
lg-table th,
lg-table td { overflow-wrap: anywhere; vertical-align: top; }
lg-table td:empty::after { content: "\2014"; color: var(--muted, #4a5260); }
@media (max-width: 600px) {
  lg-table,
  lg-table table,
  lg-table tbody,
  lg-table tr,
  lg-table td { display: block; width: 100%; box-sizing: border-box; }
  lg-table caption,
  lg-table p { display: block; white-space: normal; overflow-wrap: anywhere; }
  lg-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  lg-table tr {
    margin: 0 0 .8rem;
    padding: .5rem .75rem;
    border: 1px solid var(--border, #ddd);
    border-radius: var(--radius, 8px);
  }
  lg-table td { border: 0; padding: .3rem 0; }
  lg-table td::before {
    display: block;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted, #4a5260);
  }
  lg-table td:nth-child(1)::before { content: "Agency"; }
  lg-table td:nth-child(2)::before { content: "Type"; }
  lg-table td:nth-child(3)::before { content: "Scope"; }
}