.general_intro--detail h1 {
  max-width: 1100px;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.02;
}

.general_detail .general_content {
  min-width: 0;
}

.general_text_link--header {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 4px;
}

.general_programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.general_program {
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  color: var(--black);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: color .18s ease, background .18s ease;
}

.general_program_code {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.general_program strong {
  margin: 24px 0 16px;
  color: inherit;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.general_program_level,
.general_program_form {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.general_program_form {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.general_program p {
  display: -webkit-box;
  margin: 18px 0 24px;
  overflow: hidden;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.general_program_action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.general_program_action img {
  width: 14px;
  height: 14px;
  transition: transform .18s ease;
}

.general_program:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.general_program:hover .general_program_action img {
  transform: translateX(3px);
}

.general_rich_scroller,
.general_table_scroller {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--primary) var(--primary-soft);
  scrollbar-width: thin;
}

.general_rich_scroller:focus-visible,
.general_table_scroller:focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), .25);
  outline-offset: 3px;
}

.general_rich_scroller::-webkit-scrollbar,
.general_table_scroller::-webkit-scrollbar {
  height: 10px;
}

.general_rich_scroller::-webkit-scrollbar-track,
.general_table_scroller::-webkit-scrollbar-track {
  background: var(--primary-soft);
}

.general_rich_scroller::-webkit-scrollbar-thumb,
.general_table_scroller::-webkit-scrollbar-thumb {
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius-pill);
  background: var(--primary);
}

.general_rich_content {
  min-width: 0;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.general_rich_scroller > .general_rich_content {
  min-width: 100%;
}

.general_rich_content :where(p, ul, ol, blockquote) {
  margin: 0 0 16px;
}

.general_rich_content :where(h2, h3, h4) {
  margin: 28px 0 14px;
  color: var(--black);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.general_rich_content :where(ul, ol) {
  padding-left: 22px;
}

.general_rich_content a {
  color: var(--primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Normalization for tables pasted from office editors. */
.general_rich_content table {
  width: max-content !important;
  min-width: 100%;
  height: auto !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  table-layout: auto;
  background: var(--white);
}

.general_rich_content table :where(tbody, thead, tr, td, th, p, span, strong) {
  height: auto !important;
  font-family: var(--font-sans) !important;
  line-height: 1.4 !important;
}

.general_rich_content table :where(td, th) :where(p, span, strong) {
  color: inherit !important;
}

.general_rich_content table :where(td, th) {
  width: auto !important;
  min-width: 156px;
  padding: 15px !important;
  color: var(--secondary) !important;
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--white) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  vertical-align: top;
}

.general_rich_content table :where(td, th):first-child {
  min-width: 110px;
}

.general_rich_content table tr:first-child :where(td, th) {
  min-width: 190px;
  color: var(--white) !important;
  background: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.general_rich_content table tr:first-child :where(td, th, p, span, strong) {
  color: var(--white) !important;
}

.general_rich_content table tr:nth-child(2) :where(td, th) {
  min-width: 80px;
  color: var(--primary-dark) !important;
  background: var(--primary-soft) !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.general_rich_content table :where(td, th) p {
  margin: 0 0 10px !important;
  color: inherit !important;
  font-size: inherit !important;
  text-align: inherit !important;
}

.general_rich_content table :where(td, th) p:last-child {
  margin-bottom: 0 !important;
}

.general_rich_content table a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 2px 0;
  padding: 7px 9px;
  color: var(--primary) !important;
  border-radius:var(--radius-sm);
  background: var(--primary-soft);
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.general_rich_content table a:hover {
  color: var(--white) !important;
  background: var(--primary);
}

.general_table_hint {
  display: inline-flex;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.general_data_table {
  width: max-content;
  min-width: 100%;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
}

.general_data_table col.general_table_column--compact {
  width: 140px;
}

.general_data_table col.general_table_column--normal {
  width: 200px;
}

.general_data_table col.general_table_column--wide {
  width: 280px;
}

.general_data_table col.general_table_column--extra-wide {
  width: 380px;
}

.general_data_table :where(th, td) {
  padding: 16px;
  color: var(--secondary);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: top;
}

.general_data_table th {
  padding: 12px 14px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.general_data_table tr:last-child :where(th, td) {
  border-bottom: 0;
}

.general_data_table :where(th, td):last-child {
  border-right: 0;
}

.general_cell_content :where(p, ul, ol) {
  margin: 0 0 10px;
}

.general_cell_content :where(p, ul, ol):last-child {
  margin-bottom: 0;
}

.general_cell_content a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.general_file_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  color: var(--primary);
  border-radius:var(--radius-sm);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.general_file_link img {
  width: 14px;
  height: 14px;
}

.general_links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.general_content_heading {
  padding: 4px 2px 0;
}

.general_content_heading :is(h1, h2) {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.general_link_item {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line-color, var(--border));
  border-radius:var(--radius-md);
  color: var(--text-color, var(--black));
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

a.general_link_item:hover {
  border-color: var(--primary, var(--primary));
  background: var(--primary-soft);
  color: var(--primary, var(--primary));
}

.general_link_item img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

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

.general_rich_content--before {
  margin-bottom: 22px;
}

.general_rich_content--after {
  margin-top: 22px;
}

.general_document--attached {
  grid-template-columns: 76px minmax(0, 1fr);
}

.general_document_file {
  grid-row: 1 / 3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

  .general_program {
    min-height: 0;
  }

  .general_rich_content {
    font-size: 15px;
  }

  .general_rich_content table :where(td, th) {
    min-width: 145px;
    padding: 12px !important;
    font-size: 13px !important;
  }

  .general_rich_content table tr:first-child :where(td, th) {
    min-width: 170px;
    font-size: 12px !important;
  }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .general_programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .general_intro--detail h1 {
    font-size: 36px;
  }

  .general_document--attached {
    grid-template-columns: 1fr;
  }

  .general_document_file {
    grid-row: auto;
  }
}

.general_links > :last-child:nth-child(odd) { grid-column: 1 / -1; }
