/*
 * NCSSM admissions tools (EDU-1792). Loaded after sat-act-tools.css, which supplies the header,
 * footer, PageHero, sections, tables, CTA, opt-in, FAQ and cookie banner. This file only adds the
 * countdown actions, the date rows and the eligibility questions and result. App-kit tokens only.
 */

/* ---------- Countdown ---------- */

.nc-countdown {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ea-line);
}

.nc-countdown .sat-result-figure small {
  display: inline-block;
}

.nc-countdown .sat-result-meaning {
  margin-bottom: 4px;
  font-size: 20px;
}

.nc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
}

.nc-gcal {
  color: var(--ea-navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ea-field);
  text-underline-offset: 3px;
}

.nc-gcal:hover {
  text-decoration-color: currentColor;
}

/* ---------- Date rows ---------- */

.nc-dates td {
  vertical-align: top;
}

.nc-dates .nc-when {
  width: 150px;
  white-space: nowrap;
}

.nc-when time,
.nc-time,
.nc-status {
  display: block;
}

.nc-time,
.nc-status {
  margin-top: 4px;
  color: var(--ea-muted);
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
}

.nc-status:empty {
  display: none;
}

.nc-what strong {
  display: block;
  color: var(--ea-ink);
  font-weight: 600;
}

.nc-what span {
  display: block;
  margin-top: 4px;
}

.nc-dates .nc-cal {
  width: 150px;
  padding-right: 0;
  text-align: right;
}

.nc-cal .sat-text-button,
.nc-cal .nc-gcal {
  display: block;
  margin-left: auto;
  font-size: 14px;
}

.nc-cal .nc-gcal {
  margin-top: 6px;
}

.nc-dates tr.is-next .nc-when,
.nc-dates tr.is-next .nc-status {
  color: var(--ea-navy);
}

.nc-dates tr.is-done td,
.nc-dates tr.is-done .nc-what strong {
  color: var(--ea-faint);
  font-weight: 400;
}

.nc-dates tr.is-done .nc-cal > * {
  display: none;
}

/* ---------- Eligibility checker ---------- */

.nc-checker {
  max-width: 720px;
}

.nc-q {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--ea-line);
}

.nc-q:first-child {
  border-top: 0;
  padding-top: 0;
}

.nc-q legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--ea-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.nc-q-num {
  color: var(--ea-muted);
}

.nc-q > .sat-note {
  margin: 0 0 12px;
}

.nc-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--ea-line);
  color: var(--ea-ink);
  font-size: 16px;
  cursor: pointer;
}

.nc-choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ea-navy);
}

.nc-choice small {
  display: block;
  margin-top: 2px;
  color: var(--ea-muted);
  font-size: 14px;
}

.nc-submit {
  padding-top: 8px;
}

.nc-result {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ea-ink);
}

.nc-result:focus {
  outline: none;
}

.nc-result h2 {
  margin: 8px 0 12px;
}

.nc-items {
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.nc-item {
  padding: 16px 0;
  border-top: 1px solid var(--ea-line);
}

.nc-item p {
  margin: 0;
}

.nc-item-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.nc-item-name {
  color: var(--ea-ink);
  font-weight: 600;
}

.nc-item-word {
  flex: none;
  font-size: 14px;
  font-weight: 600;
}

.nc-item.is-met .nc-item-word {
  color: var(--ea-success);
}

.nc-item.is-not-met .nc-item-word {
  color: var(--ea-danger);
}

.nc-item.is-check .nc-item-word {
  color: var(--ea-navy);
}

.nc-item-rule,
.nc-item-text {
  margin-top: 6px !important;
  font-size: 15px;
}

.nc-item-rule {
  color: var(--ea-muted);
}

.nc-steps {
  margin: 12px 0 24px;
  padding-left: 20px;
}

.nc-steps li + li {
  margin-top: 8px;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .nc-dates thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .nc-dates,
  .nc-dates tbody,
  .nc-dates tr,
  .nc-dates td {
    display: block;
    width: 100%;
  }

  .nc-dates tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--ea-line);
  }

  .nc-dates td,
  .nc-dates .nc-when,
  .nc-dates .nc-cal {
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }

  .nc-dates .nc-what {
    margin-top: 8px;
  }

  .nc-dates .nc-cal {
    display: flex;
    gap: 20px;
    margin-top: 8px;
  }

  .nc-cal .sat-text-button,
  .nc-cal .nc-gcal {
    margin: 0;
  }
}

/* ---------- NCSSM admissions by county (EDU-1806) ---------- */

.nc-county-table .nc-num {
  text-align: right;
  padding-right: 0;
  padding-left: 16px;
}

.nc-muted {
  color: var(--ea-muted);
}

@media (min-width: 481px) {
  .nc-county-table td:first-child {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .nc-county-table {
    font-size: 13px;
  }

  .nc-county-table thead th {
    font-size: 11px;
    letter-spacing: 0;
  }

  .nc-county-table th,
  .nc-county-table td {
    padding-right: 8px;
  }

  .nc-county-table .nc-num {
    padding-left: 6px;
    padding-right: 0;
  }

  .nc-county-table .nc-hide-sm {
    display: none;
  }
}
