﻿/* Container */
.tuition-widget { padding: 16px; }

/* Residency toggle centered */
.tw-residency {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

/* Segmented buttons */
.segmented {
  appearance: none;
  border: 1px solid #b0b3b8;
  background: #fff;
  color: #041e42;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  margin: 0 6px;
  transition: all 0.2s ease;
}

.segmented.is-active {
  background: #041e42;
  color: #fff;
  border-color: #041e42;
}

.segmented:hover {
  border-color: #041e42;
}

.segmented:focus-visible {
  outline: 3px solid #99c2ff;
  outline-offset: 2px;
}

/* Total */
.tw-total {
  text-align: center;
  margin-bottom: 18px;
}

.tw-total-label {
  font-weight: 700;
  color: #041e42;
  font-size: 14px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  color: #041e42;
  margin: 6px 0 4px 0;
}

.context-note {
  margin: 0;
  color: #374151;
  font-size: 14px;
}

/* Card */
.snapshot-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0e2e5;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 24px;
}

.card-head {
  text-align: center;
  margin-bottom: 6px;
}

.card-title {
  margin: 0;
  font-size: 36px;
  color: #041e42;
  font-weight: 700;
}

.sd-toggle {
  appearance: none;
  border: 0;
  background: none;
  color: #041e42;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.sd-panel {
  margin-top: 8px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.row.total span:first-child {
  font-weight: 700;
}

.cost {
  font-weight: 600;
  color: #111827;
}

/* Fine print */
.fine-print,
.updated {
  margin-top: 8px;
  font-size: 14px;
  color: #000;
  text-align: center;
}

/* Mobile */
@media (max-width:640px){
  .tw-residency {
    flex-wrap: wrap;
  }

  .price {
    font-size: 32px;
  }

  .card-title {
    font-size: 28px;
  }
}