@charset "UTF-8";
/* ==========================================================================
   UniSorted student discount price checker
   Page-scoped styling for /tools/student-discounts/ only. Loads alongside
   tg-tools.css (which supplies the .tg-calc wrapper, hero and .calc-btn).
   Everything here is prefixed .tg-dc so it cannot leak onto other tools.
   Built 2026-07-21 to the locked publisher grammar: white ground, square
   corners, Archivo headings, Inter body, ink rules as the section motif.
   Mobile-first. box-sizing set explicitly.
   ========================================================================== */

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

.tg-dc {
  --dc-ink: #1a1a1a;
  --dc-mute: #6b6864;
  --dc-border: #e5e5e5;
  --dc-accent: #c2410c;
  --dc-mark: #FF5722;
}

/* ---------- The verified stamp: the point of the page, not fine print ---- */
.tg-dc-stamp {
  border-top: 3px solid var(--dc-ink);
  padding: 0.9rem 0 0;
  margin: 0 0 1.6rem;
}

.tg-dc-stamp p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dc-ink);
}

.tg-dc-stamp p:last-child {
  margin-bottom: 0;
  color: var(--dc-mute);
  font-size: 0.88rem;
}

.tg-dc-date {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Filter row ---------- */
.tg-dc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.7rem;
}

.tg-dc-search {
  flex: 1 1 14rem;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--dc-ink);
  background: #fff;
  color: var(--dc-ink);
}

.tg-dc-search:focus {
  outline: 2px solid var(--dc-mark);
  outline-offset: 1px;
}

.tg-dc-toggles {
  display: flex;
  gap: 0;
}

.tg-dc-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--dc-ink);
  border-left-width: 0;
  background: #fff;
  color: var(--dc-ink);
  cursor: pointer;
}

.tg-dc-toggle:first-child {
  border-left-width: 1px;
}

.tg-dc-toggle[aria-pressed="true"] {
  background: var(--dc-ink);
  color: #fff;
}

.tg-dc-toggle:focus-visible {
  outline: 2px solid var(--dc-mark);
  outline-offset: 1px;
}

.tg-dc-count {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--dc-mute);
}

/* ---------- The table ---------- */
.tg-dc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tg-dc-table th,
.tg-dc-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid var(--dc-border);
}

.tg-dc-table thead th {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dc-mute);
  border-bottom: 1px solid var(--dc-ink);
  padding-bottom: 0.5rem;
}

.tg-dc-table td:last-child,
.tg-dc-table th:last-child {
  padding-right: 0;
}

.tg-dc-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  width: 26%;
}

.tg-dc-name a {
  color: var(--dc-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tg-dc-name a:hover {
  color: var(--dc-accent);
}

.tg-dc-cost {
  width: 22%;
  font-variant-numeric: tabular-nums;
}

.tg-dc-cost b {
  font-weight: 600;
}

.tg-dc-note {
  line-height: 1.55;
  color: var(--dc-ink);
}

.tg-dc-note a {
  color: var(--dc-accent);
}

.tg-dc-row[hidden] {
  display: none;
}

.tg-dc-empty {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--dc-mute);
}

/* ---------- The gap note ---------- */
.tg-dc-gap {
  border-top: 3px solid var(--dc-ink);
  margin: 2.2rem 0 0;
  padding: 0.9rem 0 0;
}

.tg-dc-gap h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--dc-ink);
}

.tg-dc-gap p,
.tg-dc-method p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dc-ink);
}

.tg-dc-method {
  margin: 2rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--dc-border);
}

.tg-dc-method h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--dc-ink);
}

.tg-dc-method p {
  font-size: 0.9rem;
  color: var(--dc-mute);
}

.tg-dc-method a {
  color: var(--dc-accent);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .tg-dc-table,
  .tg-dc-table thead,
  .tg-dc-table tbody,
  .tg-dc-table tr,
  .tg-dc-table th,
  .tg-dc-table td {
    display: block;
    width: auto;
  }

  .tg-dc-table thead {
    display: none;
  }

  .tg-dc-table tr {
    border-bottom: 1px solid var(--dc-border);
    padding: 0.9rem 0;
  }

  .tg-dc-table td {
    border-bottom: 0;
    padding: 0 0 0.4rem;
  }

  .tg-dc-table td:last-child {
    padding-bottom: 0;
  }

  .tg-dc-cost {
    font-weight: 600;
  }
}
