.nc-edu-counter {
  position: relative;
  cursor: default;
}
.nc-edu-counter:hover,
.nc-edu-counter:focus-within {
  z-index: 6;
  background: #fff;
  outline: 2px solid #8a6a32;
  outline-offset: -2px;
}
.nc-edu-forecast {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: min(62rem, 96vw);
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 0.9rem 1rem 0.75rem;
  background: #fff;
  border: 1px solid #d6deea;
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.16);
  z-index: 30;
}
.nc-edu-counter:hover > .nc-edu-forecast,
.nc-edu-counter:focus-within > .nc-edu-forecast {
  display: block;
}
.nc-edu-forecast-title {
  margin: 0 0 0.45rem;
  color: #0f2744;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nc-edu-forecast-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.nc-edu-forecast figure {
  margin: 0;
  padding: 0.55rem 0.5rem 0.5rem;
  background: #f8fafc;
  border-top: 3px solid #0f2744;
}
.nc-edu-forecast-rate {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 1.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.nc-edu-forecast-rate.is-up { color: #1f7a4d; }
.nc-edu-forecast-rate.is-down { color: #9b3a3a; }
.nc-edu-forecast-rate.is-flat { color: #0f2744; }
.nc-edu-forecast figure em {
  display: block;
  margin: 0.22rem 0 0.4rem;
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  line-height: 1.3;
}
.nc-edu-forecast-pair {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 0.4rem;
  align-items: end;
}
.nc-edu-forecast-pair .is-stored,
.nc-edu-forecast-pair .is-ahead {
  min-width: 0;
  padding: 0.25rem 0.3rem 0.3rem;
  background: #fff;
  border: 1px solid #d6deea;
}
.nc-edu-forecast-pair .is-stored { border-top: 3px solid #0f2744; }
.nc-edu-forecast-pair .is-ahead { border-top: 3px solid #b8860b; }
.nc-edu-forecast figcaption,
.nc-edu-forecast figure span {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}
.nc-edu-forecast figure > span {
  margin-top: 0.35rem;
  color: #0f2744;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nc-edu-forecast .nc-edu-forecast-pair span {
  margin: 0;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nc-edu-forecast svg {
  display: block;
  width: 100%;
  margin-top: 0.15rem;
}
.nc-edu-forecast-pair .is-stored svg { height: 132px; }
.nc-edu-forecast-pair .is-ahead svg { height: 86px; }
.nc-edu-forecast-note {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}
.nc-edu-forecast-note i {
  display: inline-block;
  width: 0.75rem;
  height: 2px;
  margin: 0 0.2rem 0.16rem 0.15rem;
  vertical-align: middle;
}
.nc-edu-forecast-note i.is-stored { background: #0f2744; }
.nc-edu-forecast-note i.is-ahead { background: #b8860b; }
.nc-edu-course-top {
  margin: 1rem 0 0.5rem;
  padding: 0.95rem 0.95rem 0.8rem;
  background: linear-gradient(180deg, #f8f4ea 0%, #fff 3.2rem);
  border: 1px solid #e4d7b8;
  border-radius: 14px;
}
.nc-edu-course-intro h3 {
  margin: 0 0 0.2rem;
  color: #0f2744;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nc-edu-course-intro p {
  margin: 0 0 0.75rem;
  max-width: 62rem;
  color: #526277;
  font-size: 0.78rem;
  line-height: 1.45;
}
.nc-edu-course-top ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.nc-edu-course-card {
  display: block;
  padding: 0.7rem 0.75rem 0.65rem;
  background: #fff;
  border: 1px solid #d6deea;
  border-top: 3px solid #0f2744;
  border-radius: 12px;
}
.nc-edu-course-head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}
.nc-edu-course-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9px;
  background: #0f2744;
  color: #f3d48a;
  font-weight: 700;
  font-size: 1rem;
}
.nc-edu-course-code {
  display: inline;
  color: #0f2744;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.nc-edu-course-card strong {
  float: right;
  color: #0f2744;
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nc-edu-course-title,
.nc-edu-course-meta {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.35;
}
.nc-edu-course-title { margin-top: 0.15rem; color: #334155; }
.nc-edu-course-weights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.65rem;
  clear: both;
}
.nc-edu-course-weights div {
  min-width: 0;
  padding: 0.35rem 0.3rem 0.4rem;
  background: #f8fafc;
  border-radius: 8px;
}
.nc-edu-course-weights .is-ahead { background: #f8f1de; }
.nc-edu-course-weights span,
.nc-edu-course-weights em {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nc-edu-course-weights b {
  display: block;
  margin-top: 0.1rem;
  color: #0f2744;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.nc-edu-course-weights b.is-up { color: #1f7a4d; }
.nc-edu-course-weights b.is-down { color: #9b3a3a; }
.nc-edu-advice {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e4d7b8;
}
.nc-edu-advice h3 {
  margin: 0 0 0.25rem;
  color: #0f2744;
  font-size: 1.05rem;
}
.nc-edu-advice p {
  margin: 0 0 0.6rem;
  color: #526277;
  font-size: 0.78rem;
  line-height: 1.45;
}
.nc-edu-advice-scroll { overflow-x: auto; }
.nc-edu-advice table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.78rem;
}
.nc-edu-advice th,
.nc-edu-advice td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  vertical-align: top;
}
.nc-edu-advice th {
  color: #0f2744;
  background: #f8f4ea;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nc-edu-advice td:nth-child(2),
.nc-edu-advice td:nth-child(3),
.nc-edu-advice td:nth-child(4) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #1f7a4d;
}
@media (max-width: 900px) {
  .nc-edu-course-top ol { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nc-edu-forecast-row { grid-template-columns: 1fr; }
}
