@import url("site.css");

body.course-page::before {
  height: 40rem;
}

.course-page .site-header {
  padding-top: 0.75rem;
}

.course-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  width: min(calc(100% - 2rem), var(--content));
  min-height: 17rem;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) 0 1.4rem;
  color: #fff;
}

.course-intro .eyebrow {
  margin-bottom: 0.55rem;
}

.course-intro h1 {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.course-intro p {
  margin: 0.75rem 0 0;
  color: #dcecff;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.75rem;
  white-space: nowrap;
}

.back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.course-nav-wrap {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto 1rem;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.course-nav {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 0.35rem;
  padding: 0.55rem;
}

.course-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 0.9rem;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.7rem;
  white-space: nowrap;
}

.course-nav a:hover,
.course-nav a[aria-current="page"] {
  color: var(--brand-900);
  background: var(--brand-100);
}

.legacy-course-content {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto 3rem;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legacy-course-content > div,
.legacy-course-content > center,
.legacy-course-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.legacy-course-table {
  color: var(--ink-900) !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.legacy-course-table .legacy-chrome,
.legacy-course-table .legacy-title-row,
.legacy-course-table .legacy-footer-row,
.legacy-footer-block {
  display: none !important;
}

.legacy-course-table,
.legacy-course-table tbody,
.legacy-course-table tr,
.legacy-course-table td {
  max-width: 100% !important;
}

.legacy-course-table td {
  height: auto !important;
  color: var(--ink-900);
  background-color: transparent !important;
  overflow-wrap: anywhere;
}

.legacy-course-table td[style*="1566"],
.legacy-course-table td[style*="1024"],
.legacy-course-table td[style*="950"],
.legacy-course-table td[style*="814"] {
  width: auto !important;
}

.legacy-course-table table {
  max-width: 100% !important;
}

.legacy-course-table img {
  max-width: 100%;
  height: auto;
}

.legacy-course-table img[src*="navbarbtn.gif"],
.legacy-course-table img[src*="gotop02.gif"] {
  display: none !important;
}

.legacy-course-table img[src*="mailmovie.gif"] {
  width: 1.2rem !important;
  height: auto !important;
  vertical-align: middle;
}

.legacy-course-table font,
.legacy-course-table span,
.legacy-course-table p,
.legacy-course-table li {
  font-family: inherit !important;
}

.legacy-course-table font[size="1"],
.legacy-course-table font[size="2"],
.legacy-course-table font[size="-2"] {
  font-size: 0.95rem !important;
}

.legacy-course-table font[size="3"],
.legacy-course-table font[size="4"] {
  font-size: 1.05rem !important;
}

.legacy-course-table font[size="5"] {
  font-size: 1.55rem !important;
}

.legacy-course-table font[size="6"] {
  font-size: clamp(1.65rem, 3vw, 2.15rem) !important;
}

.legacy-course-table a {
  color: var(--brand-700) !important;
  font-weight: 700;
}

.legacy-course-table ul,
.legacy-course-table ol {
  padding-left: 1.4rem;
}

.legacy-course-table p {
  line-height: 1.65 !important;
}

.legacy-course-table .auto-style16 {
  display: none !important;
}

.legacy-course-table .auto-style110,
.legacy-course-table .auto-style112,
.legacy-course-table .auto-style113,
.legacy-course-table .auto-style116 {
  padding: 1.15rem 0 0.55rem !important;
  color: var(--brand-900) !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

.legacy-course-table marquee {
  display: inline-block;
  max-width: 100%;
}

.legacy-course-table [bgcolor="#FFFF00"] {
  padding: 0.15rem 0.45rem;
  color: #7a4100 !important;
  background: #fff3bf !important;
  border-radius: 0.35rem;
}

/* Apresentação editorial da página geral de GIPN. */
.gipn-general .legacy-course-content {
  background: #fff;
}

.gipn-general .legacy-course-table {
  line-height: 1.35 !important;
}

.gipn-general .legacy-course-table td {
  padding-inline: clamp(0.15rem, 0.8vw, 0.5rem);
}

.gipn-general .legacy-course-table p {
  margin-block: 0.1rem !important;
  line-height: 1.3 !important;
}

.gipn-general .legacy-course-table p,
.gipn-general .legacy-course-table p *,
.gipn-general .legacy-course-table li,
.gipn-general .legacy-course-table li * {
  font-family: inherit !important;
  font-size: 1rem !important;
}

.gipn-general .legacy-course-table .auto-style110,
.gipn-general .legacy-course-table .gipn-section-heading {
  position: relative;
  padding: 1.5rem 0 0.75rem !important;
  color: var(--brand-900) !important;
  background: transparent !important;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  letter-spacing: -0.025em;
}

.gipn-general .legacy-course-table .auto-style110::after,
.gipn-general .legacy-course-table .gipn-section-heading::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 3.5rem;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.gipn-general .legacy-course-table .auto-style111 {
  color: var(--brand-900) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.gipn-general .legacy-course-table .gipn-section-heading * {
  color: var(--brand-900) !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.gipn-general .legacy-course-table .auto-style118 {
  margin-block: 0.75rem 1rem;
  padding-left: 1.4rem !important;
  list-style-image: none !important;
}

.gipn-general .legacy-course-table .auto-style118 > li {
  padding: 0.05rem 0 0.05rem 0.35rem;
}

.gipn-general .legacy-course-table .auto-style118 > li::marker {
  color: var(--accent);
  font-size: 1.1em;
}

.gipn-general .legacy-course-table font[color="#FF0000"] {
  color: var(--brand-800) !important;
}

.gipn-general .legacy-course-table u {
  text-decoration-color: rgba(242, 140, 40, 0.75);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.gipn-general .legacy-course-table a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.legacy-course-table table[border],
.legacy-course-table table[style*="border"] {
  border-color: var(--line) !important;
}

.legacy-course-table table[border] td,
.legacy-course-table table[border] th {
  padding: 0.55rem;
  border-color: var(--line) !important;
}

.course-page .site-footer {
  padding-top: 0;
}

.lesson-plan { margin-bottom: 2rem; }

.lesson-plan-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.lesson-kicker {
  margin: 0 0 0.35rem;
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lesson-plan-header h2 {
  margin: 0;
  color: var(--brand-900);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lesson-plan-header > div > p:last-child {
  max-width: 43rem;
  margin: 0.45rem 0 0;
  color: var(--ink-500);
}

.lesson-summary {
  display: grid;
  grid-template-columns: repeat(4, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.lesson-summary span {
  display: grid;
  min-width: 5.4rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink-500);
  font-size: 0.72rem;
  text-align: center;
}

.lesson-summary span + span { border-left: 1px solid var(--line); }

.lesson-summary strong {
  color: var(--brand-900);
  font-size: 1.1rem;
}

.lesson-filters {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.2rem;
  overflow-x: auto;
}

.lesson-filters button {
  min-height: 2.35rem;
  padding: 0.4rem 0.8rem;
  color: var(--ink-700);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.lesson-filters button:hover,
.lesson-filters button.is-active {
  color: #fff;
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.lesson-list { display: grid; gap: 0.65rem; }

.lesson-item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lesson-item:hover {
  border-color: #b9cce6;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.lesson-item[hidden] { display: none; }
.lesson-item.has-assessment { border-left: 0.3rem solid var(--accent); }

.lesson-date {
  color: var(--brand-900);
  font-size: 0.84rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.lesson-main { min-width: 0; }

.lesson-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.lesson-title-row h3 { margin: 0; color: var(--ink-900); font-size: 1rem; }

.lesson-chapter {
  padding: 0.2rem 0.5rem;
  color: var(--brand-800);
  font-size: 0.7rem;
  font-weight: 850;
  background: var(--brand-100);
  border-radius: 999px;
}

.lesson-meta {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.3rem;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.lesson-meta span + span { color: var(--accent); letter-spacing: 0.12em; }

.lesson-description {
  max-width: 62rem;
  margin: 0.55rem 0 0;
  color: var(--ink-700);
  font-size: 0.88rem;
  line-height: 1.45;
}

.lesson-note {
  width: fit-content;
  margin: 0.45rem 0 0;
  padding: 0.25rem 0.55rem;
  color: #7a4100;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff3d6;
  border-radius: 0.4rem;
}

.legacy-course-table .legacy-schedule-row { display: none !important; }
.legacy-lessons-hidden { display: none !important; }
.legacy-general-hidden { display: none !important; }

.general-library { margin-bottom: 2rem; }

.general-groups {
  display: grid;
  gap: 1rem;
}

.general-group[hidden] { display: none; }

.general-section-table {
  width: 100% !important;
  table-layout: auto;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.65;
  border-collapse: collapse;
}

.general-section-table td {
  width: auto !important;
  height: auto !important;
  padding: 0.15rem 0;
  color: var(--ink-900) !important;
  font-family: inherit !important;
  background: transparent !important;
  overflow-wrap: anywhere;
}

.general-section-table p {
  margin: 0.35rem 0 !important;
  line-height: 1.65 !important;
}

.general-section-table ul,
.general-section-table ol {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
  padding-left: 1.4rem;
}

.general-section-table strong,
.general-section-table b {
  color: var(--ink-900);
  font-weight: 800;
}

.general-section-table a {
  color: var(--brand-700) !important;
  font-weight: 750;
  text-decoration-color: #a9c0dd;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.general-section-table a:hover { color: var(--brand-900) !important; }

.general-section-table table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0.7rem 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: 0.75rem;
  border-collapse: separate !important;
  border-spacing: 0;
}

.general-section-table table td {
  padding: 0.55rem 0.7rem !important;
  vertical-align: top;
  border: 0 !important;
}

.general-section-table table tr + tr td {
  border-top: 1px solid var(--line) !important;
}

.general-section-table table td + td {
  border-left: 1px solid var(--line) !important;
}

.general-section-table font,
.general-section-table span,
.general-section-table p,
.general-section-table li {
  font-family: inherit !important;
  font-size: inherit !important;
}

.general-section-table .style77 strong,
.general-section-table .auto-style107 strong,
.general-section-table font[color="#FF0000"] strong {
  color: inherit;
}

.general-section-table img {
  max-width: 100%;
  height: auto;
  border-radius: 0.45rem;
}

.general-section-table img[src*="navbarbtn.gif"],
.general-section-table img[src*="gotop02.gif"] { display: none !important; }

.general-group .resource-group-heading {
  margin-bottom: 1rem;
}

.general-group .resource-group-heading h3 {
  font-size: 1.15rem;
}

.assessment-date-groups,
.assessment-date-group {
  display: grid;
  gap: 1rem;
}

.assessment-date-groups { gap: 1.5rem; }

.assessment-date-group > h4 {
  margin: 0;
  color: var(--brand-800);
  font-size: 0.95rem;
  font-weight: 850;
}

.assessment-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
}

.assessment-date-card {
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.assessment-date-card header {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.assessment-date-card h4 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.9rem;
}

.assessment-status {
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 850;
  border-radius: 999px;
}

.assessment-status-confirmed {
  color: #17633a;
  background: #e6f6ed;
}

.assessment-status-pending {
  color: #8a4b08;
  background: #fff1d6;
}

.assessment-date-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.assessment-date-card dl div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.55rem;
}

.assessment-date-card.is-work dl div {
  grid-template-columns: 4.8rem minmax(0, 1fr);
}

.assessment-date-card.is-work dt {
  white-space: nowrap;
}

.assessment-date-card dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 750;
}

.assessment-date-card dd {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.assessment-date-notice {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  color: #68420b;
  background: #fff8e8;
  border: 1px solid #efd69f;
  border-radius: 0.8rem;
}

.assessment-date-notice p {
  margin: 0;
  font-size: 0.8rem;
}

.assessment-date-notice a {
  flex: 0 0 auto;
  color: var(--brand-800);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 640px) {
  .assessment-date-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}

.office-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.8rem;
}

.office-hours-card {
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.office-hours-card header {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.office-hours-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brand-800);
  font-size: 0.75rem;
  font-weight: 900;
  background: var(--brand-100);
  border-radius: 0.7rem;
}

.office-hours-card header p {
  margin: 0 0 0.1rem;
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.office-hours-card h4 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.95rem;
}

.office-hours-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.office-hours-card dl div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.office-hours-card dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 750;
}

.office-hours-card dd {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.office-hours-note {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.7rem;
  color: #17633a;
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.5;
  background: #e6f6ed;
  border: 1px solid #addbc0;
  border-radius: 0.65rem;
}

@media (max-width: 480px) {
  .office-hours-card dl div { grid-template-columns: 1fr; gap: 0.15rem; }
}

.criteria-layout,
.criteria-groups {
  display: grid;
  gap: 0.85rem;
}

.criteria-layout { gap: 1rem; }

.criteria-section-title {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--brand-800);
  font-size: 0.88rem;
  background: var(--brand-100);
  border-bottom: 1px solid var(--line);
}

.criteria-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.criteria-summary span {
  display: grid;
  gap: 0.1rem;
  align-content: center;
  min-height: 4.25rem;
  padding: 0.55rem;
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.criteria-summary span + span { border-left: 1px solid var(--line); }

.criteria-summary strong {
  color: var(--brand-900);
  font-size: 1.15rem;
  line-height: 1;
}

.criteria-groups {
  grid-template-columns: 1fr;
}

.criteria-card {
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.criteria-card h4 {
  margin: 0 0 0.55rem;
  color: var(--brand-800);
  font-size: 0.88rem;
}

.criteria-card p,
.criteria-card li {
  color: var(--ink-700);
  font-size: 0.78rem;
  line-height: 1.55;
}

.criteria-card p { margin: 0; }

.structured-work-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.structured-work-card dl div {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.structured-work-card dl div:nth-child(even) { border-left: 1px solid var(--line); }
.structured-work-card dl div:last-child,
.structured-work-card dl div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

.structured-work-card dt {
  margin-bottom: 0.15rem;
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 800;
}

.structured-work-card .work-organization h5 {
  color: var(--ink-500);
}

.structured-work-card dd {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.78rem;
  line-height: 1.5;
}

.structured-work-software {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.structured-work-software img,
.structured-work-software .work-youtube-icon {
  object-fit: contain;
  flex-shrink: 0;
}

.structured-work-card .structured-work-warning {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  color: #842d2d;
  font-weight: 750;
  background: #fff0f0;
  border: 1px solid #efb5b5;
  border-radius: 0.65rem;
}

.structured-work-info,
.structured-work-prize,
.structured-work-transfer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.structured-work-card .structured-work-reward {
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  color: #17633a;
  font-weight: 750;
  background: #e6f6ed;
  border: 1px solid #addbc0;
  border-radius: 0.65rem;
}

@media (max-width: 600px) {
  .structured-work-card dl { grid-template-columns: 1fr; }
  .structured-work-card dl div:nth-child(even) { border-left: 0; }
  .structured-work-card dl div:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .structured-work-card dl div:last-child { border-bottom: 0; }
}

.criteria-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.criteria-warning {
  padding: 0.8rem 0.9rem;
  color: #842d2d;
  background: #fff0f0;
  border: 1px solid #efb5b5;
  border-radius: 0.8rem;
}

.criteria-warning strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.criteria-warning p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .criteria-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-summary span + span { border-left: 0; }
  .criteria-summary span:nth-of-type(even) { border-left: 1px solid var(--line); }
  .criteria-summary span:nth-of-type(n + 3) { border-top: 1px solid var(--line); }
  .criteria-groups { grid-template-columns: 1fr; }
}

.assessment-rules-layout,
.assessment-rules-list {
  display: grid;
  gap: 0.8rem;
}

.assessment-rules-alert {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  color: #842d2d;
  background: #fff0f0;
  border: 1px solid #efb5b5;
  border-radius: 0.8rem;
}

.assessment-rules-alert > span,
.structured-work-warning > .work-warning-icon,
.structured-work-info > .work-info-icon,
.structured-work-prize > .work-prize-icon,
.structured-work-transfer > .work-transfer-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  background: #b33d3d;
  border-radius: 999px;
}

.structured-work-info > .work-info-icon,
.structured-work-prize > .work-prize-icon,
.structured-work-transfer > .work-transfer-icon {
  background: #17633a;
}

.structured-work-prize > .work-prize-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.structured-work-transfer > .work-transfer-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.assessment-rules-alert strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assessment-rules-alert p {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
}

.assessment-rule-card {
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.assessment-rule-card h4 {
  margin: 0 0 0.45rem;
  color: var(--brand-800);
  font-size: 0.88rem;
}

.assessment-rule-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.78rem;
  line-height: 1.55;
}

.resource-library { margin-bottom: 2rem; }

.resource-library-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.resource-library-header h2 {
  margin: 0;
  color: var(--brand-900);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.resource-library-header > div > p:last-child {
  max-width: 43rem;
  margin: 0.45rem 0 0;
  color: var(--ink-500);
}

.resource-summary {
  display: grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.resource-summary span {
  display: grid;
  min-width: 6rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink-500);
  font-size: 0.72rem;
  text-align: center;
}

.resource-summary span + span { border-left: 1px solid var(--line); }

.resource-summary strong {
  color: var(--brand-900);
  font-size: 1.1rem;
}

.resource-groups {
  display: grid;
  gap: 2rem;
}

.resource-group[hidden] { display: none; }

.resource-group-block {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.resource-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.resource-group-heading h3 {
  position: relative;
  margin: 0;
  padding-left: 0.85rem;
  color: var(--brand-900);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.resource-group-heading h3::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.25rem;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.resource-group-heading span {
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 750;
}

.resource-list {
  display: grid;
  gap: 0.65rem;
}

.resource-chapter-groups {
  display: grid;
  gap: 1.4rem;
  padding-left: clamp(0.75rem, 2.5vw, 2rem);
  border-left: 2px solid var(--brand-100);
}

.resource-chapter-group > h4 {
  margin: 0 0 0.65rem;
  color: var(--brand-800);
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.resource-topic-groups,
.resource-calculator-groups,
.resource-example-groups {
  display: grid;
  gap: 1rem;
}

.resource-topic {
  padding-left: clamp(0.6rem, 2vw, 1.25rem);
  border-left: 2px solid #dce8f6;
}

.resource-topic > h5,
.resource-calculator-group > h4,
.resource-example-group > h6,
.resource-subgroup > h6 {
  margin: 0 0 0.65rem;
  color: var(--ink-900);
  font-size: 0.9rem;
  font-weight: 850;
}

.resource-calculator-group > h4 {
  color: var(--brand-800);
  font-size: 0.98rem;
}

.resource-calculator-group,
.resource-example-group,
.resource-subgroup {
  display: grid;
  gap: 0.65rem;
}

.resource-subgroup,
.resource-example-groups {
  margin-top: 0.8rem;
  padding-left: clamp(0.6rem, 2vw, 1.25rem);
  border-left: 2px solid var(--brand-100);
}

.resource-subgroup > h6,
.resource-example-group > h6 { color: var(--ink-500); }

.resource-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-item:hover {
  border-color: #b9cce6;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.resource-item[hidden] { display: none; }

.resource-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.resource-image {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.resource-main { min-width: 0; }

.resource-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.resource-title-row h4,
.resource-title-row h5,
.resource-title-row h6 {
  margin: 0;
  color: var(--ink-900);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.resource-type {
  padding: 0.2rem 0.5rem;
  color: var(--brand-800);
  font-size: 0.68rem;
  font-weight: 850;
  background: var(--brand-100);
  border-radius: 999px;
}

.resource-main p {
  margin: 0.3rem 0 0;
  color: var(--ink-500);
  font-size: 0.78rem;
}

.resource-action {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 850;
  text-decoration: none;
  border-radius: 0.55rem;
}

.resource-action:hover { background: var(--brand-50); }

.resource-presentation-card {
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  align-items: center;
}

.resource-format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.resource-action-accessible {
  color: #245f3b;
  background: #edf8f1;
  border-color: #b9ddc5;
}

.resource-action-accessible:hover { background: #def1e5; }

.resource-action.is-unavailable {
  color: var(--ink-500);
  background: #f4f6f8;
  border-color: var(--line);
  cursor: default;
}

.resource-action-status {
  padding-left: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-left: 1px solid currentColor;
}

.resource-diagram-card {
  grid-template-columns: 2.35rem minmax(0, 1fr);
  align-items: start;
}

.resource-attached-parent {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.resource-attached-child {
  margin-top: -0.65rem;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.resource-advanced-card { order: 1; }

.resource-detail-list {
  display: grid;
  grid-column: 2 / -1;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.diagram-step-list {
  display: grid;
  grid-column: 2;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.diagram-step {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.diagram-step > strong,
.diagram-step > .lesson-resource-title {
  color: var(--ink-700);
  font-size: 0.8rem;
}

.diagram-step > .lesson-resource-title {
  font-weight: normal;
  padding-left: 0.5rem;
}

.lesson-resource-list {
  gap: 0;
}

.lesson-resource-list > .diagram-step {
  padding-top: 0;
}

.diagram-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.resource-action-bizagi img { object-fit: contain; }

.resource-action-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.resource-empty {
  margin: 0;
  padding: 1rem;
  color: var(--ink-500);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
}

.legacy-resources-hidden { display: none !important; }

@media (max-width: 48rem) {
  .lesson-plan-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lesson-summary {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .lesson-summary span:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lesson-summary span:nth-child(4) { border-top: 1px solid var(--line); }

  .lesson-item { grid-template-columns: 1fr; }
  .lesson-date { grid-column: 1; }

  .resource-library-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .resource-summary {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .course-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .back-link {
    width: fit-content;
  }

  .legacy-course-content {
    width: calc(100% - 1.25rem);
    padding: 0.8rem;
    border-radius: 1rem;
  }

  .course-nav-wrap,
  .course-intro {
    width: calc(100% - 1.25rem);
  }

  .legacy-course-table font[size="1"],
  .legacy-course-table font[size="2"],
  .legacy-course-table font[size="-2"] {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 32rem) {
  .lesson-item { grid-template-columns: 1fr; }

  .lesson-date { grid-column: 1; }

  .resource-item {
    grid-template-columns: 2.35rem minmax(0, 1fr);
  }

  .resource-action {
    grid-column: 2;
    width: fit-content;
  }

  .resource-presentation-card { grid-template-columns: 2.35rem minmax(0, 1fr); }

  .resource-format-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .diagram-step { grid-template-columns: 1fr; }

  .diagram-step-actions { justify-content: flex-start; }

  .resource-summary { grid-template-columns: 1fr; }

  .resource-summary span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-chapter-groups {
    padding-left: 0.65rem;
  }
}

.methodology-list {
  display: grid;
  gap: 0.75rem;
}

.methodology-card {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.methodology-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--brand-800);
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--brand-100);
  border-radius: 0.65rem;
}

.methodology-card h4 {
  margin: 0 0 0.25rem;
  color: var(--brand-800);
  font-size: 0.88rem;
}

.methodology-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.78rem;
  line-height: 1.55;
}

.overview-layout,
.overview-subgroup,
.competencies-layout,
.competencies-list,
.syllabus-chapters {
  display: grid;
  gap: 0.8rem;
}

.overview-layout { gap: 1.2rem; }

.overview-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.overview-facts article {
  display: grid;
  gap: 0.15rem;
  min-height: 4.25rem;
  padding: 0.7rem;
  align-content: center;
  text-align: center;
}

.overview-facts article + article { border-left: 1px solid var(--line); }

.overview-facts span {
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-facts strong {
  color: var(--brand-900);
  font-size: 0.92rem;
}

.overview-subgroup > h4 {
  margin: 0;
  color: var(--brand-800);
  font-size: 0.9rem;
}

.overview-teachers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.7rem;
}

.overview-teachers article {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.overview-teachers strong { font-size: 0.82rem; }

.overview-teachers a {
  color: var(--brand-800);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.overview-schedule,
.competencies-intro {
  margin: 0;
  padding: 0.8rem;
  color: var(--ink-700);
  font-size: 0.78rem;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.overview-turns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.7rem;
}

.overview-turn-card {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.overview-turn-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--brand-700);
  border-radius: 0.65rem;
}

.overview-turn-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink-500);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-turn-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.77rem;
  line-height: 1.55;
}

.objective-card {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.objective-card > span,
.competencies-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--brand-800);
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--brand-100);
  border-radius: 0.65rem;
}

.objective-card h4 {
  margin: 0 0 0.3rem;
  color: var(--brand-800);
  font-size: 0.9rem;
}

.objective-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.8rem;
  line-height: 1.6;
}

.competencies-list article {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.competencies-list article p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.8rem;
  line-height: 1.5;
}

.competencies-card-intro {
  margin-bottom: 0.65rem !important;
  color: var(--ink-900) !important;
  font-weight: 750;
}

.syllabus-chapter {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.syllabus-chapter > header {
  padding: 0.75rem 0.85rem;
  background: var(--brand-100);
  border-bottom: 1px solid var(--line);
}

.syllabus-chapter > header span {
  color: var(--brand-900);
  font-size: 0.66rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.syllabus-chapter > header h4 {
  margin: 0.1rem 0 0;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.syllabus-items { display: grid; }

.syllabus-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0.8rem;
  border-top: 1px solid var(--line);
}

.syllabus-item:first-child { border-top: 0; }
.syllabus-level-3 { padding-left: 1.6rem; }
.syllabus-level-4 { padding-left: 2.4rem; }

.syllabus-item > span {
  color: var(--ink-700);
  font-size: 0.7rem;
  font-weight: 400;
}

.syllabus-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.77rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .overview-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-facts article + article { border-left: 0; }
  .overview-facts article:nth-child(even) { border-left: 1px solid var(--line); }
  .overview-facts article:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .overview-teachers article { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .overview-teachers a { grid-column: 2; }
  .syllabus-level-3 { padding-left: 1.1rem; }
  .syllabus-level-4 { padding-left: 1.4rem; }
}

.bibliography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.bibliography-card {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-height: 6rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bibliography-card:hover {
  border-color: #b9cce6;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.bibliography-card img {
  display: block;
  width: 3.6rem;
  height: 4.8rem;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 0.4rem;
}

.bibliography-card h4 {
  margin: 0 0 0.25rem;
  color: var(--brand-900);
  font-size: 0.86rem;
  line-height: 1.35;
}

.bibliography-card p {
  margin: 0.14rem 0 0;
  color: var(--ink-500);
  font-size: 0.7rem;
  line-height: 1.45;
}

.bibliography-card .bibliography-author {
  color: var(--ink-700);
  font-weight: 750;
}

@media (max-width: 700px) {
  .bibliography-grid { grid-template-columns: 1fr; }
}

.legacy-classifications-hidden { display: none !important; }

.classification-library { margin-bottom: 2rem; }

.classification-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: -0.35rem 0 1rem;
  color: var(--ink-700);
  font-size: 0.74rem;
  font-weight: 700;
}

.classification-legend span { display: inline-flex; gap: 0.4rem; align-items: center; }

.classification-legend i {
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
}

.classification-legend .is-positive { background: #e6f6ed; border-color: #addbc0; }
.classification-legend .is-negative { background: #fff0f0; border-color: #efb5b5; }

.classification-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.classification-index a {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink-700);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.classification-index a:hover { border-color: #9fb9da; }

.classification-index a span,
.classification-block > header > span {
  color: var(--brand-700);
  font-size: 0.68rem;
  font-weight: 850;
}

.classification-blocks { display: grid; gap: 1rem; }

.classification-block {
  scroll-margin-top: 1rem;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.classification-block > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--brand-100);
  border-bottom: 1px solid var(--line);
}

.classification-block h3 {
  margin: 0;
  color: var(--brand-900);
  font-size: 0.95rem;
}

.classification-block small {
  color: var(--ink-500);
  font-size: 0.68rem;
  font-weight: 700;
}

.classification-table-list { display: grid; gap: 1rem; padding: 1rem; }

.classification-proposal {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1rem 0;
  padding: 0.75rem 0.85rem;
  color: #17633a;
  background: #e6f6ed;
  border: 1px solid #addbc0;
  border-radius: 0.75rem;
}

.classification-proposal strong { font-size: 0.8rem; }

.classification-proposal p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.classification-proposal a,
.classification-proposal-pending {
  flex: 0 0 auto;
  padding: 0.4rem 0.6rem;
  color: #17633a;
  font-size: 0.7rem;
  font-weight: 850;
  text-decoration: none;
  background: #fff;
  border: 1px solid #addbc0;
  border-radius: 0.55rem;
}

.classification-proposal.is-pending {
  color: #68420b;
  background: #fff8e8;
  border-color: #efd69f;
}

.classification-proposal.is-pending .classification-proposal-pending {
  color: #68420b;
  border-color: #efd69f;
}

.classification-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.classification-table {
  width: max-content !important;
  min-width: 100%;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  border-collapse: collapse !important;
}

.classification-table td,
.classification-table th {
  height: auto !important;
  padding: 0.35rem 0.45rem !important;
  color: inherit;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.35 !important;
  border: 1px solid #c7d1df !important;
}

.classification-table p,
.classification-table span,
.classification-table font {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.research-group-card {
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.research-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.research-group-header h4 { margin: 0; font-size: 0.95rem; }
.research-group-badge { padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.research-group-badge.is-registered { color: #166534; background: #dcfce7; border: 1px solid #86d9a3; }
.research-group-badge.is-accreditation-pending, .research-group-badge.is-penalized { display: inline-block; color: #991b1b; background: #fee2e2; border: 1px solid #fca5a5; white-space: nowrap; }
.research-group-badge.is-penalized { padding: 0 0.35rem; font-size: 0.65rem; line-height: 1.1; }
.research-group-badge.is-awaiting { color: #854d0e; background: #fef3c7; border: 1px solid #f2cf66; }
.research-group-table { width: 100%; min-width: 52rem; table-layout: fixed; border-collapse: collapse; font-size: 0.8rem; }
.research-possible-grade { display: grid; grid-template-columns: minmax(0, 1fr) 4.75rem; align-items: center; gap: 0.35rem; }
.research-possible-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.research-possible-status { display: flex; align-items: center; text-align: left; }
.research-group-table thead th:nth-child(1) { width: 14%; }
.research-group-table thead th:nth-child(2) { width: 46%; }
.research-group-table thead th:nth-child(n+3) { width: 20%; }
.research-group-table th, .research-group-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--line); }
.research-group-table thead { background: #f3f6fa; }
.research-group-table tbody th, .research-group-table tbody td { padding-top: 0.15rem; padding-bottom: 0.15rem; line-height: 1.3; font-weight: 400; }
.research-group-table tbody th { font-variant-numeric: tabular-nums; }
.research-group-table td:nth-child(n+3), .research-group-table thead th:nth-child(n+3) { text-align: center; }
.research-group-table td:nth-child(2) { overflow-wrap: anywhere; }
.research-group-table tbody tr:last-child > * { border-bottom: 0; }

.classification-empty {
  margin: 0;
  padding: 1rem;
  color: var(--ink-500);
  font-size: 0.8rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #b9c8da;
  border-radius: 0.75rem;
}

@media (max-width: 760px) {
  .classification-index { grid-template-columns: 1fr; }
  .classification-block > header { grid-template-columns: auto minmax(0, 1fr); }
  .classification-block small { grid-column: 2; }
  .classification-proposal { align-items: flex-start; flex-direction: column; }
}
