/* XI Class College Finder — front end
   Brand: xiclass.bd green (#10a879) with orange accent (#f76a0c).
   Written to survive theme resets: appearance, borders and spacing are all explicit. */

.xccf {
  --xccf-primary: #5e841f;
  --xccf-primary-dark: #4a6818;
  --xccf-accent: #f76a0c;
  --xccf-ink: #10201a;
  --xccf-body: #33413c;
  --xccf-muted: #6b7c76;
  --xccf-line: #dfe7e3;
  --xccf-line-2: #eef3f1;
  --xccf-soft: #f6faf8;
  --xccf-tint: #eef5e2;
  --xccf-warn-bg: #fff3ea;
  --xccf-warn-fg: #b1440c;
  --xccf-mid-bg: #fff8e6;
  --xccf-mid-fg: #8a5a00;
  --xccf-r: 10px;
  --xccf-num: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --xccf-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", "SolaimanLipi", "Kalpurush", sans-serif;

  font-family: var(--xccf-sans);
  color: var(--xccf-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}

.xccf *,
.xccf *::before,
.xccf *::after { box-sizing: border-box; }

.xccf button { font: inherit; cursor: pointer; letter-spacing: inherit; }

/*
 * The hidden attribute only hides things through the browser's default
 * `display: none`, so any rule of ours that sets display (flex on the
 * own-institution strip, block on table rows in the mobile layout) silently
 * overrides it and the element stays on screen. One guard covers every case,
 * present and future.
 */
.xccf [hidden],
.xccf[hidden] { display: none !important; }
.xccf :focus-visible { outline: 2px solid var(--xccf-primary); outline-offset: 2px; }
.xccf p { margin: 0; }

/* ============ shell ============ */

.xccf-shell {
  background: #fff;
  border: 1px solid var(--xccf-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(16, 32, 26, .04), 0 18px 40px -28px rgba(16, 32, 26, .35);
}

.xccf-head {
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(94, 132, 31, .16), transparent 60%),
    linear-gradient(180deg, #f4fbf8, #fff);
  border-bottom: 1px solid var(--xccf-line);
  padding: 16px 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.xccf-head-t { flex: 1 1 260px; min-width: 0; }
.xccf-head .xccf-h {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--xccf-ink);
}
.xccf-head-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--xccf-muted);
}

/* Stat tiles sit in the header, small and factual — not a hero banner. */
.xccf-tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.xccf-tile {
  background: #fff;
  border: 1px solid var(--xccf-line);
  border-radius: 9px;
  padding: 7px 12px;
  min-width: 84px;
}
.xccf-tile b {
  display: block;
  font-family: var(--xccf-num);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--xccf-primary-dark);
}
.xccf-tile span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--xccf-muted);
  margin-top: 1px;
}

/* ============ filters ============ */

.xccf-filters {
  padding: 14px 16px 4px;
  display: grid;
  gap: 11px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .xccf-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .xccf-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.xccf-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.xccf-f > label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--xccf-muted);
  display: flex;
  gap: 5px;
  align-items: baseline;
}
.xccf-f > label i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: #9aa8a3;
}

.xccf .xccf-f select,
.xccf .xccf-f input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  margin: 0;
  border: 1px solid var(--xccf-line);
  border-radius: 9px;
  background-color: #fff;
  color: var(--xccf-ink);
  font-size: 14.5px;
  font-family: var(--xccf-sans);
  line-height: 1.3;
  box-shadow: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.xccf .xccf-f select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7c76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.xccf .xccf-f select:hover { border-color: #c3d6cf; }
.xccf .xccf-f select:focus,
.xccf .xccf-f input:focus {
  border-color: var(--xccf-primary);
  box-shadow: 0 0 0 3px rgba(94, 132, 31, .16);
}
.xccf .xccf-f select:disabled {
  background-color: var(--xccf-soft);
  color: #9aa8a3;
  cursor: not-allowed;
}

/* GPA is the one field everything turns on, so it gets the weight. */
.xccf-f-gpa > label { color: var(--xccf-primary-dark); }
.xccf .xccf-f-gpa input {
  font-family: var(--xccf-num);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  min-height: 52px;
  border-width: 2px;
  border-color: #c3d69a;
  background-color: var(--xccf-soft);
  -moz-appearance: textfield;
}
.xccf .xccf-f-gpa input::-webkit-outer-spin-button,
.xccf .xccf-f-gpa input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xccf .xccf-f-gpa input::placeholder { color: #a8b394; font-weight: 600; }

/* quick GPA row — one line, scrolls sideways instead of wrapping */
.xccf-quick {
  padding: 4px 16px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.xccf-quick::-webkit-scrollbar { display: none; }
.xccf-quick > span {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--xccf-muted);
}
.xccf-chip {
  flex: 0 0 auto;
  border: 1px solid var(--xccf-line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 11px;
  font-family: var(--xccf-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--xccf-body);
  transition: all .12s ease;
}
.xccf-chip:hover { border-color: var(--xccf-primary); color: var(--xccf-primary-dark); }
.xccf-chip[aria-pressed="true"] {
  background: var(--xccf-primary);
  border-color: var(--xccf-primary);
  color: #fff;
}

.xccf-adv {
  padding: 12px 16px 0;
  margin-top: 12px;
  border-top: 1px solid var(--xccf-line-2);
  display: grid;
  gap: 11px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .xccf-adv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .xccf-adv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xccf-adv[hidden] { display: none; }
.xccf-adv .xccf-span { grid-column: 1 / -1; }
@media (min-width: 700px) { .xccf-adv .xccf-span { grid-column: span 2; } }

.xccf-tools {
  padding: 12px 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.xccf-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--xccf-primary-dark);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.xccf-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.xccf-link em { font-style: normal; font-size: 15px; line-height: 1; }
.xccf-link.is-quiet { color: var(--xccf-muted); font-weight: 600; }

/* ============ result toolbar ============ */

.xccf-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 14px 0 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid var(--xccf-line);
  border-radius: var(--xccf-r);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.xccf-count { font-size: 14px; color: var(--xccf-body); min-width: 0; }
.xccf-count b {
  font-family: var(--xccf-num);
  font-size: 17px;
  font-weight: 800;
  color: var(--xccf-primary-dark);
}
.xccf-count i { font-style: normal; color: var(--xccf-muted); font-size: 13px; }
.xccf-bar-r { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.xccf .xccf-bar-r select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--xccf-line);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7c76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 8px 30px 8px 11px;
  font-size: 13px;
  font-family: var(--xccf-sans);
  color: var(--xccf-ink);
  min-height: 38px;
}

/* ============ cards ============ */

.xccf-results { display: grid; gap: 10px; }
@media (min-width: 1000px) { .xccf-results.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.xccf-c {
  position: relative;
  background: #fff;
  border: 1px solid var(--xccf-line);
  border-radius: var(--xccf-r);
  padding: 12px 13px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.xccf-c::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--xccf-primary);
}
.xccf-c.is-mid::before { background: #f5a524; }
.xccf-c.is-tight::before { background: var(--xccf-accent); }
.xccf-c:hover {
  border-color: #c3d6cf;
  box-shadow: 0 10px 26px -20px rgba(16, 32, 26, .5);
}

.xccf-c-top { display: flex; gap: 10px; align-items: flex-start; }
.xccf-c-h { min-width: 0; flex: 1; }
.xccf-c-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--xccf-ink);
  overflow-wrap: anywhere;
}
.xccf-c-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--xccf-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.xccf-c-sub b { color: var(--xccf-body); font-weight: 600; }
.xccf-c-sub code {
  font-family: var(--xccf-num);
  font-size: 11.5px;
  background: var(--xccf-soft);
  border: 1px solid var(--xccf-line-2);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--xccf-body);
}

.xccf-badge {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  background: var(--xccf-tint);
  color: var(--xccf-primary-dark);
}
.xccf-badge.is-mid { background: var(--xccf-mid-bg); color: var(--xccf-mid-fg); }
.xccf-badge.is-tight { background: var(--xccf-warn-bg); color: var(--xccf-warn-fg); }

/* Signature block: the three numbers a student actually decides on, with a slim
   1.00-5.00 rail underneath showing where this college sits and where they sit. */
.xccf-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--xccf-soft);
  border: 1px solid var(--xccf-line-2);
  border-radius: 9px;
  overflow: hidden;
}
.xccf-m {
  background: #fff;
  padding: 8px 10px 7px;
  min-width: 0;
}
.xccf-m span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--xccf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xccf-m b {
  display: block;
  font-family: var(--xccf-num);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--xccf-ink);
}
.xccf-m.is-margin b { color: var(--xccf-primary-dark); }
.xccf-c.is-tight .xccf-m.is-margin b { color: var(--xccf-accent); }
.xccf-c.is-mid .xccf-m.is-margin b { color: #b57d00; }

.xccf-rail {
  position: relative;
  height: 14px;
  margin-top: -2px;
}
.xccf-rail-track {
  position: absolute;
  left: 0; right: 0; top: 5px;
  height: 5px;
  border-radius: 5px;
  background: var(--xccf-line-2);
  overflow: hidden;
}
.xccf-rail-track b {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--xccf-primary);
  opacity: .55;
}
.xccf-c.is-tight .xccf-rail-track b { background: var(--xccf-accent); }
.xccf-c.is-mid .xccf-rail-track b { background: #f5a524; }
.xccf-pin {
  position: absolute;
  top: 1px;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  transform: translateX(-1.5px);
}
.xccf-pin.is-cut { background: #8fa39d; }
.xccf-pin.is-you { background: var(--xccf-ink); }
.xccf-tick {
  position: absolute;
  top: 5px;
  width: 1px;
  height: 5px;
  background: #cdd9d5;
}

.xccf-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.xccf-fact {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--xccf-soft);
  border: 1px solid var(--xccf-line-2);
  color: var(--xccf-body);
}
.xccf-fact.is-seats {
  background: #fff;
  border-color: var(--xccf-line);
  font-family: var(--xccf-num);
  font-weight: 700;
  color: var(--xccf-ink);
}
.xccf-fact.is-alt { background: var(--xccf-tint); border-color: #cfe0ab; color: var(--xccf-primary-dark); }

.xccf-c-foot { display: flex; gap: 7px; margin-top: 1px; }
.xccf-c-foot .xccf-b:first-child { margin-right: auto; }

.xccf-b {
  border: 1px solid var(--xccf-line);
  background: #fff;
  color: var(--xccf-body);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  white-space: nowrap;
  transition: all .12s ease;
}
.xccf-b:hover { border-color: var(--xccf-primary); color: var(--xccf-primary-dark); }
.xccf-b.is-primary { background: var(--xccf-primary); border-color: var(--xccf-primary); color: #fff; }
.xccf-b.is-primary:hover { background: var(--xccf-primary-dark); border-color: var(--xccf-primary-dark); color: #fff; }
.xccf-b.is-on { background: var(--xccf-tint); border-color: var(--xccf-primary); color: var(--xccf-primary-dark); }
.xccf-b[disabled] { opacity: .5; cursor: not-allowed; }

.xccf-loadmore { display: flex; justify-content: center; padding: 14px 0 0; }

.xccf-msg {
  background: var(--xccf-soft);
  border: 1px dashed var(--xccf-line);
  border-radius: var(--xccf-r);
  padding: 26px 18px;
  text-align: center;
  color: var(--xccf-muted);
  font-size: 14px;
}
.xccf-msg strong { display: block; color: var(--xccf-ink); font-size: 15px; margin-bottom: 3px; }

.xccf-skel {
  height: 132px;
  border-radius: var(--xccf-r);
  background: linear-gradient(100deg, #f4f8f6 30%, #e9f1ee 45%, #f4f8f6 60%);
  background-size: 300% 100%;
  animation: xccf-sh 1.2s ease-in-out infinite;
}
@keyframes xccf-sh { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.xccf-boot { display: flex; gap: 6px; padding: 30px 0; justify-content: center; }
.xccf-boot span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--xccf-primary); opacity: .3;
  animation: xccf-pl 1.1s infinite ease-in-out;
}
.xccf-boot span:nth-child(2) { animation-delay: .15s; }
.xccf-boot span:nth-child(3) { animation-delay: .3s; }
@keyframes xccf-pl { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ============ tables ============ */

.xccf-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--xccf-line);
  border-radius: var(--xccf-r);
  background: #fff;
}
.xccf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.xccf-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--xccf-ink);
  padding: 12px 14px 4px;
}
.xccf-table th,
.xccf-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--xccf-line-2);
  text-align: left;
  vertical-align: top;
}
.xccf-table thead th {
  background: var(--xccf-tint);
  color: var(--xccf-primary-dark);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  border-bottom: 1px solid #cfe0ab;
}
.xccf-table tbody tr:last-child td { border-bottom: 0; }
.xccf-table tbody tr:hover { background: var(--xccf-soft); }
.xccf-table td.is-num { font-family: var(--xccf-num); }
.xccf-gpa { font-family: var(--xccf-num); font-weight: 700; color: var(--xccf-primary-dark); }

@media (max-width: 640px) {
  .xccf-tablewrap { border: 0; background: none; }
  .xccf-table thead { display: none; }
  .xccf-table, .xccf-table tbody, .xccf-table tr, .xccf-table td { display: block; width: 100%; }
  .xccf-table tr {
    background: #fff;
    border: 1px solid var(--xccf-line);
    border-radius: var(--xccf-r);
    margin-bottom: 9px;
    padding: 5px 0;
  }
  .xccf-table td { border: 0; padding: 5px 13px; display: flex; gap: 10px; align-items: baseline; }
  .xccf-table td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--xccf-muted);
  }
}

/* ============ stats + gpa/seat shortcodes ============ */

.xccf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .xccf-stats { grid-template-columns: repeat(4, 1fr); } }
.xccf-stat {
  background: #fff;
  border: 1px solid var(--xccf-line);
  border-radius: var(--xccf-r);
  padding: 15px 14px;
}
.xccf-stat-n {
  display: block;
  font-family: var(--xccf-num);
  font-size: 24px;
  font-weight: 800;
  color: var(--xccf-primary-dark);
  line-height: 1.15;
}
.xccf-stat-l {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--xccf-muted);
  margin-top: 3px;
}

.xccf-rails { display: grid; gap: 7px; }
.xccf-rail-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
}
.xccf-rail-k { font-family: var(--xccf-num); font-size: 12.5px; font-weight: 700; color: var(--xccf-ink); }
.xccf-rail-bar { height: 24px; background: var(--xccf-line-2); border-radius: 6px; overflow: hidden; }
.xccf-rail-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--xccf-primary-dark), var(--xccf-primary));
}
.xccf-rail-v { grid-column: 2; font-size: 11.5px; color: var(--xccf-muted); font-family: var(--xccf-num); }

/* ============ sheet ============ */

.xccf-sheet {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16, 32, 26, .55);
}
@media (min-width: 720px) { .xccf-sheet { align-items: center; padding: 24px; } }
.xccf-sheet-in {
  background: #fff;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  animation: xccf-up .18s ease-out;
}
@media (min-width: 720px) { .xccf-sheet-in { border-radius: 14px; } }
@keyframes xccf-up { from { transform: translateY(16px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .xccf-sheet-in, .xccf-boot span, .xccf-skel { animation: none; }
  .xccf-c, .xccf-b, .xccf-chip { transition: none; }
}
.xccf-sheet-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--xccf-line);
  padding-bottom: 11px;
  margin-bottom: 13px;
}
.xccf-x {
  margin-left: auto;
  border: 1px solid var(--xccf-line);
  background: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 19px;
  line-height: 1;
  color: var(--xccf-muted);
  flex: 0 0 auto;
}
.xccf-x:hover { border-color: var(--xccf-accent); color: var(--xccf-accent); }
.xccf-sheet-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

/* ============ preference list ============ */

.xccf-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99980;
  background: var(--xccf-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px -10px rgba(16, 32, 26, .7);
}
.xccf-fab b {
  font-family: var(--xccf-num);
  background: var(--xccf-primary);
  border-radius: 999px;
  min-width: 22px;
  padding: 1px 6px;
  text-align: center;
}
.xccf-fab[hidden] { display: none; }

.xccf-mix { display: flex; gap: 7px; margin: 12px 0; }
.xccf-mix span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid var(--xccf-line);
  background: var(--xccf-soft);
  color: var(--xccf-muted);
}
.xccf-mix span u { display: block; font-family: var(--xccf-num); font-size: 16px; text-decoration: none; }
.xccf-mix .is-safe { background: var(--xccf-tint); border-color: #cfe0ab; color: var(--xccf-primary-dark); }
.xccf-mix .is-mid { background: var(--xccf-mid-bg); border-color: #f3e0b4; color: var(--xccf-mid-fg); }
.xccf-mix .is-tight { background: var(--xccf-warn-bg); border-color: #fadcc6; color: var(--xccf-warn-fg); }

.xccf-sl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xccf-sl li {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--xccf-line);
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
}
.xccf-sl-n {
  flex: 0 0 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: var(--xccf-ink);
  color: #fff;
  border-radius: 7px;
  font-family: var(--xccf-num);
  font-size: 12.5px;
  font-weight: 700;
}
.xccf-sl-b { min-width: 0; flex: 1; }
.xccf-sl-b strong { display: block; font-size: 14px; color: var(--xccf-ink); line-height: 1.3; }
.xccf-sl-b span { font-size: 11.5px; color: var(--xccf-muted); }
.xccf-sl-act { display: flex; gap: 4px; flex: 0 0 auto; }
.xccf-sl-act button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--xccf-line);
  background: #fff;
  border-radius: 7px;
  color: var(--xccf-muted);
  line-height: 1;
}
.xccf-sl-act button:hover:not([disabled]) { border-color: var(--xccf-primary); color: var(--xccf-primary-dark); }
.xccf-sl-act button[disabled] { opacity: .35; cursor: not-allowed; }

.xccf-advice {
  background: var(--xccf-warn-bg);
  border: 1px solid #fadcc6;
  border-left: 3px solid var(--xccf-accent);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  color: #8a3c08;
  margin: 12px 0;
}

@media print {
  .xccf-fab, .xccf-shell, .xccf-bar, .xccf-sheet-foot, .xccf-x { display: none !important; }
  .xccf-sheet { position: static; background: none; padding: 0; }
  .xccf-sheet-in { max-height: none; box-shadow: none; overflow: visible; }
}

/* ============ search button ============ */

.xccf-b.is-search {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
}
.xccf-tools .xccf-link { margin-left: 2px; }

/* ============ mobile ============ */

@media (max-width: 560px) {
  .xccf { font-size: 14.5px; }

  .xccf-shell { border-radius: 12px; }
  .xccf-head { padding: 13px 12px 12px; gap: 10px; }
  .xccf-head .xccf-h { font-size: 17px; }
  .xccf-head-sub { font-size: 12.5px; }

  /* four tiles in one scrolling strip beats a cramped 2x2 grid */
  .xccf-tiles {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -12px;
    padding: 0 12px;
    width: calc(100% + 24px);
  }
  .xccf-tiles::-webkit-scrollbar { display: none; }
  .xccf-tile { flex: 0 0 auto; min-width: 0; padding: 6px 11px; }
  .xccf-tile b { font-size: 15px; }

  /* one field per row: two 44px selects side by side is too tight to tap */
  .xccf-filters,
  .xccf-adv { grid-template-columns: 1fr; padding-left: 12px; padding-right: 12px; }
  .xccf-quick,
  .xccf-tools { padding-left: 12px; padding-right: 12px; }
  .xccf-tools { gap: 12px; }
  .xccf-b.is-search { flex: 1 1 100%; order: -1; }

  .xccf-bar {
    padding: 9px 11px;
    gap: 8px;
    /* the theme header is sticky on mobile, so do not fight it */
    position: static;
  }
  .xccf-count { flex: 1 1 100%; font-size: 13.5px; }
  .xccf-count b { font-size: 16px; }
  .xccf-bar-r { margin-left: 0; width: 100%; }
  .xccf .xccf-bar-r select { flex: 1; min-width: 0; }

  .xccf-c { padding: 11px 12px 10px; }
  .xccf-c-name { font-size: 14.5px; }
  .xccf-badge { font-size: 9.5px; padding: 4px 7px; }
  .xccf-m { padding: 7px 8px 6px; }
  .xccf-m b { font-size: 16px; }
  .xccf-m span { font-size: 9px; letter-spacing: .04em; }
  .xccf-c-foot .xccf-b { flex: 1; text-align: center; }

  .xccf-fab { right: 10px; bottom: 10px; padding: 11px 15px; font-size: 13px; }
  .xccf-sheet-in { padding: 13px 12px 18px; }
  .xccf-sheet-foot .xccf-b { flex: 1 1 auto; }
  .xccf-mix span { font-size: 10px; padding: 7px 3px; }
}

@media (max-width: 380px) {
  .xccf-m b { font-size: 14.5px; }
  .xccf-facts .xccf-fact { font-size: 11px; padding: 2px 6px; }
}

/* A shortcode pasted with code formatting used to inherit a monospace font from
   the surrounding <code>. Keep our own typography no matter what wraps us. */
.xccf,
.xccf code,
.xccf pre { font-family: var(--xccf-sans); }
.xccf .xccf-c-sub code { font-family: var(--xccf-num); }

/* ============ stat cards: one tone each ============ */

.xccf-stats .xccf-stat.is-a { background: #f2f8e8; border-color: #d4e5b3; }
.xccf-stats .xccf-stat.is-a .xccf-stat-n { color: #4a6818; }
.xccf-stats .xccf-stat.is-b { background: #fff3ea; border-color: #f7d9bf; }
.xccf-stats .xccf-stat.is-b .xccf-stat-n { color: #b1440c; }
.xccf-stats .xccf-stat.is-c { background: #eaf3fb; border-color: #c5daf0; }
.xccf-stats .xccf-stat.is-c .xccf-stat-n { color: #17548f; }
.xccf-stats .xccf-stat.is-d { background: #f5eefb; border-color: #dcc9ef; }
.xccf-stats .xccf-stat.is-d .xccf-stat-n { color: #6b3596; }

/* ============ [xi_gpa_seats] chart ============ */

.xccf-gpachart {
  background: #fff;
  border: 1px solid var(--xccf-line);
  border-radius: var(--xccf-r);
  padding: 6px 14px 12px;
}
.xccf-gpachart-head,
.xccf-gpachart-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
}
.xccf-gpachart-head {
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--xccf-line);
  margin-bottom: 4px;
}
.xccf-gpachart-head span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--xccf-primary-dark);
}
.xccf-gpachart-head span:last-child,
.xccf-gpachart-n { text-align: right; }

.xccf-gpachart-row { padding: 5px 0; }
.xccf-gpachart-row + .xccf-gpachart-row { border-top: 1px solid var(--xccf-line-2); }
.xccf-gpachart-k {
  font-family: var(--xccf-num);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--xccf-ink);
}
.xccf-gpachart-bar {
  position: relative;
  display: block;
  height: 26px;
  background: var(--xccf-line-2);
  border-radius: 6px;
  overflow: hidden;
}
.xccf-gpachart-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--xccf-primary-dark), var(--xccf-primary));
  border-radius: 6px;
}
/* the number rides inside the bar, so the row never wraps */
.xccf-gpachart-bar b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-family: var(--xccf-num);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.xccf-gpachart-n {
  font-family: var(--xccf-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--xccf-body);
}

@media (max-width: 560px) {
  .xccf-gpachart { padding: 4px 11px 10px; }
  .xccf-gpachart-head,
  .xccf-gpachart-row { grid-template-columns: 44px minmax(0, 1fr) 54px; gap: 8px; }
  .xccf-gpachart-head span { font-size: 9px; letter-spacing: .03em; }
  .xccf-gpachart-bar { height: 24px; }
}

/* ============ [xi_college_list] toolbar ============ */

.xccf-list-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--xccf-ink);
  margin: 0 0 9px;
}
.xccf-listbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.xccf .xccf-listsearch {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 240px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--xccf-line);
  border-radius: 9px;
  background: #fff;
  font-family: var(--xccf-sans);
  font-size: 14.5px;
  color: var(--xccf-ink);
}
.xccf .xccf-listsearch:focus {
  border-color: var(--xccf-primary);
  box-shadow: 0 0 0 3px rgba(94, 132, 31, .16);
  outline: none;
}
.xccf-listcount {
  font-family: var(--xccf-num);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--xccf-muted);
  white-space: nowrap;
}
.xccf-listempty { margin-top: 10px; }

/* ============ print only the chosen block ============ */

.xccf-print-holder { display: none; }

@media print {
  /* the copy lives directly under <body>, so one rule removes everything else */
  html.xccf-printing body > *:not(.xccf-print-holder) { display: none !important; }
  html.xccf-printing .xccf-print-holder { display: block !important; }
  html.xccf-printing #wpadminbar { display: none !important; }
  html.xccf-printing body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .xccf-print-head {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
  }
  .xccf-print-head strong { display: block; font-size: 15px; color: #000; }
  .xccf-print-head span { font-size: 10px; color: #555; }

  .xccf-print-holder .xccf-tablewrap { overflow: visible; border: 0; }
  .xccf-print-holder .xccf-table { width: 100%; font-size: 10.5px; border-collapse: collapse; }
  .xccf-print-holder .xccf-table th,
  .xccf-print-holder .xccf-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #ccc;
    display: table-cell !important;
  }
  .xccf-print-holder .xccf-table thead { display: table-header-group !important; }
  .xccf-print-holder .xccf-table td::before { content: none !important; }
  .xccf-print-holder .xccf-table thead th {
    background: #eee !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .xccf-print-holder .xccf-table tr { page-break-inside: avoid; }
  .xccf-print-holder .xccf-results { display: block !important; }
  .xccf-print-holder .xccf-c {
    page-break-inside: avoid;
    border: 1px solid #bbb;
    box-shadow: none;
    margin-bottom: 6px;
  }
  @page { margin: 12mm; }
}

/* ============ gpa chart bar cell ============ */

.xccf-gpachart .xccf-barcell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
/* The fill is painted by an inline gradient on this one element — no child to
   lose, no percentage height to collapse, nothing a theme reset can undo. */
.xccf-gpachart .xccf-bar {
  flex: 1 1 auto;
  display: block;
  height: 22px;
  min-width: 40px;
  border-radius: 6px;
  background: #e9efe6;
}
.xccf-gpachart .xccf-barnum {
  flex: 0 0 auto;
  min-width: 78px;
  text-align: right;
  font-family: var(--xccf-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--xccf-ink);
}

@media (max-width: 640px) {
  .xccf-gpachart .xccf-barcell { min-width: 0; gap: 8px; }
  .xccf-gpachart .xccf-bar { height: 18px; min-width: 24px; }
  .xccf-gpachart .xccf-barnum { min-width: 62px; font-size: 12px; }
}

/* ============ pagination ============ */

.xccf-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 14px 0 2px;
}
.xccf-page {
  min-width: 38px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--xccf-line);
  background: #fff;
  border-radius: 8px;
  font-family: var(--xccf-num);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--xccf-body);
}
.xccf-page:hover:not([disabled]):not(.is-active) {
  border-color: var(--xccf-primary);
  color: var(--xccf-primary-dark);
}
.xccf-page.is-active {
  background: var(--xccf-primary);
  border-color: var(--xccf-primary);
  color: #fff;
}
.xccf-page[disabled] { opacity: .4; cursor: not-allowed; }
.xccf-gap { color: var(--xccf-muted); padding: 0 2px; }

/* ============ expandable detail row ============ */

.xccf-listwrap tbody tr[data-eiin] { cursor: pointer; }
.xccf-listwrap tbody tr.is-open { background: var(--xccf-tint); }
.xccf-detailrow > td { padding: 0 !important; background: var(--xccf-soft); }
.xccf-detailbox { padding: 13px; }
.xccf-detailhead { margin-bottom: 9px; }
.xccf-detailhead strong { display: block; font-size: 14.5px; color: var(--xccf-ink); }
.xccf-detailhead span { font-size: 12.5px; color: var(--xccf-muted); }
.xccf-subtable { background: #fff; border: 1px solid var(--xccf-line); border-radius: 8px; }
.xccf-subtable th { font-size: 9.5px; }
.xccf-subtable td { font-size: 12.5px; padding: 7px 10px; }

@media (max-width: 640px) {
  .xccf-detailbox { padding: 10px; }
  .xccf-subtable, .xccf-subtable tbody, .xccf-subtable tr, .xccf-subtable td { display: block; width: 100%; }
  .xccf-subtable thead { display: none; }
}

/* ============ own-institution strip ============ */

.xccf-own {
  margin: 12px 16px 0;
  padding: 11px 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: var(--xccf-tint);
  border: 1px solid #cfe0ab;
  border-radius: 10px;
}
.xccf-own-t { flex: 1 1 280px; min-width: 0; cursor: pointer; }
.xccf-own-t strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--xccf-primary-dark);
  line-height: 1.3;
}
.xccf-own-t span {
  display: block;
  font-size: 12.5px;
  color: var(--xccf-body);
  margin-top: 2px;
}
.xccf .xccf-own input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 170px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #b9d18e;
  border-radius: 9px;
  background: #fff;
  font-family: var(--xccf-num);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--xccf-ink);
}
.xccf .xccf-own input:focus {
  border-color: var(--xccf-primary);
  box-shadow: 0 0 0 3px rgba(94, 132, 31, .16);
  outline: none;
}
.xccf .xccf-own input::placeholder {
  font-family: var(--xccf-sans);
  font-weight: 500;
  letter-spacing: 0;
  color: #9aa8a3;
}

.xccf-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.xccf-badge.is-own {
  background: var(--xccf-primary);
  color: #fff;
}
.xccf-ownnote {
  font-size: 11.5px;
  color: var(--xccf-primary-dark);
  background: var(--xccf-tint);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 6px;
}

@media (max-width: 560px) {
  .xccf-own { margin: 12px 12px 0; }
  .xccf .xccf-own input { width: 100%; }
  .xccf-badges { flex-direction: row; }
}

/* ============ heading alignment ============ */

.xccf-head.is-center { justify-content: center; text-align: center; }
.xccf-head.is-center .xccf-head-t { flex-basis: 100%; }
.xccf-head.is-right { justify-content: flex-end; text-align: right; }
.xccf-head.is-right .xccf-head-t { flex-basis: 100%; }
.xccf .xccf-head .xccf-h {
  margin: 0;
  padding: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--xccf-ink);
}
@media (max-width: 560px) { .xccf .xccf-head .xccf-h { font-size: 17px; } }

/* ============ own-institution feedback ============ */

.xccf-own-msg {
  flex: 1 1 100%;
  font-size: 12.5px;
  line-height: 1.4;
  margin: 0;
  padding-top: 2px;
  color: var(--xccf-muted);
}
.xccf-own-msg strong { color: var(--xccf-ink); }
.xccf-own-msg.is-good { color: var(--xccf-primary-dark); }
.xccf-own-msg.is-warn { color: var(--xccf-warn-fg); }
.xccf-own-msg[hidden] { display: none; }
