:root {
  color-scheme: light dark;
  --tmm-bg: #f5f3ed;
  --tmm-surface: #ffffff;
  --tmm-surface-soft: #efedf5;
  --tmm-ink: #162039;
  --tmm-muted: #596176;
  --tmm-line: #d9d5e1;
  --tmm-accent: #6654c7;
  --tmm-accent-strong: #4c3ca9;
  --tmm-on-accent: #ffffff;
  --tmm-focus: #9b7b17;
  --tmm-shadow: 0 18px 54px rgba(28, 35, 61, 0.1);
  --tmm-radius: 16px;
  --tmm-control-radius: 12px;
  --tmm-max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tmm-bg: #0e1528;
    --tmm-surface: #172037;
    --tmm-surface-soft: #202942;
    --tmm-ink: #f6f2e9;
    --tmm-muted: #c1c5d3;
    --tmm-line: #37415b;
    --tmm-accent: #b3a5ff;
    --tmm-accent-strong: #d0c8ff;
    --tmm-on-accent: #12182a;
    --tmm-focus: #f2cd65;
    --tmm-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  }

  body.tmm-page #mainNavBar span.text-primary {
    color: #f6f2e9 !important;
  }

  body.tmm-page #mainNavBar:not(.cit-en-nav) img[alt="CIT Intelligence Architect"] {
    filter: brightness(0) invert(1);
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.tmm-page {
  margin: 0;
  background: var(--tmm-bg);
  color: var(--tmm-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body.tmm-page > #citStaffTools {
  opacity: 0.8 !important;
}

.tmm-page *,
.tmm-page *::before,
.tmm-page *::after {
  box-sizing: border-box;
}

.tmm-page img {
  max-width: 100%;
}

.tmm-page a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tmm-page a:hover {
  text-decoration-thickness: 2px;
}

.tmm-page :focus-visible {
  outline: 3px solid var(--tmm-focus);
  outline-offset: 4px;
}

.tmm-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: var(--tmm-control-radius);
  background: var(--tmm-surface);
  color: var(--tmm-ink);
  transform: translateY(-150%);
}

.tmm-skip:focus {
  transform: translateY(0);
}

.tmm-wrap {
  width: min(calc(100% - 40px), var(--tmm-max));
  margin-inline: auto;
}

.tmm-page main {
  overflow: clip;
}

.tmm-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  isolation: isolate;
  background: #101936;
  color: #ffffff;
}

.tmm-hero-media,
.tmm-hero-media::after {
  position: absolute;
  inset: 0;
}

.tmm-hero-media {
  z-index: -2;
  overflow: hidden;
}

.tmm-hero-media::after {
  content: "";
  z-index: 1;
  background: rgba(8, 14, 34, 0.2);
}

.tmm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tmm-hero-copy {
  padding-block: 80px;
}

.tmm-hero-copy > div {
  width: min(600px, 58%);
}

.tmm-hero-kicker {
  margin: 0 0 18px;
  color: #d9d2ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tmm-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

html[lang="en"] .tmm-hero h1 {
  max-width: none;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.tmm-hero-lede {
  max-width: 580px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.58;
}

.tmm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.tmm-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: var(--tmm-control-radius);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

.tmm-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.tmm-page .tmm-button-primary {
  background: #ffffff;
  color: #18213b;
}

.tmm-page .tmm-button-primary:hover {
  background: #ece8ff;
}

.tmm-button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(10, 17, 42, 0.58);
  color: #ffffff;
}

.tmm-button-secondary:hover {
  border-color: #ffffff;
  background: rgba(10, 17, 42, 0.78);
}

.tmm-facts {
  position: relative;
  z-index: 3;
  margin-top: -34px;
}

.tmm-facts dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
  box-shadow: var(--tmm-shadow);
}

.tmm-facts div {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--tmm-line);
}

.tmm-facts div:last-child {
  border-right: 0;
}

.tmm-facts dt {
  color: var(--tmm-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tmm-facts dd {
  margin: 5px 0 0;
  color: var(--tmm-ink);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.4;
}

.tmm-section {
  padding-block: 96px;
}

.tmm-section-compact {
  padding-block: 72px;
}

.tmm-section + .tmm-section {
  border-top: 1px solid var(--tmm-line);
}

.tmm-section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.tmm-section-head h2,
.tmm-sticky-title h2,
.tmm-capstone-copy h2,
.tmm-closing h2 {
  margin: 0;
  color: var(--tmm-ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.tmm-section-head p,
.tmm-sticky-title p,
.tmm-capstone-copy p {
  margin: 18px 0 0;
  color: var(--tmm-muted);
}

.tmm-answer-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.tmm-sticky-title {
  position: sticky;
  top: 106px;
}

.tmm-section-label {
  margin: 0 0 14px;
  color: var(--tmm-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tmm-answer {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
  box-shadow: var(--tmm-shadow);
}

.tmm-answer blockquote {
  margin: 0;
  color: var(--tmm-ink);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.tmm-answer p {
  margin: 24px 0 0;
  color: var(--tmm-muted);
}

.tmm-answer .tmm-source-note {
  padding-top: 24px;
  border-top: 1px solid var(--tmm-line);
  font-size: 0.88rem;
}

.tmm-missions {
  display: grid;
  gap: 14px;
}

.tmm-missions details {
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
  overflow: hidden;
}

.tmm-missions summary {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
}

.tmm-missions summary::-webkit-details-marker {
  display: none;
}

.tmm-missions summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tmm-line);
  border-radius: 50%;
  color: var(--tmm-accent-strong);
  font-size: 1.25rem;
  font-weight: 500;
}

.tmm-missions details[open] summary::after {
  content: "−";
}

.tmm-chapter-no {
  color: var(--tmm-accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.tmm-missions summary strong {
  display: block;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.tmm-missions summary small {
  display: block;
  margin-top: 4px;
  color: var(--tmm-muted);
  font-size: 0.85rem;
}

.tmm-mission-list {
  display: grid;
  margin: 0;
  padding: 0 24px 24px 112px;
  list-style: none;
}

.tmm-mission-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--tmm-line);
}

.tmm-mission-list span {
  color: var(--tmm-accent-strong);
  font-size: 0.82rem;
  font-weight: 850;
}

.tmm-mission-list b {
  display: block;
  line-height: 1.35;
}

.tmm-mission-list p {
  margin: 5px 0 0;
  color: var(--tmm-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.tmm-giza {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.tmm-giza-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 830;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.tmm-giza-copy > p {
  color: var(--tmm-muted);
}

.tmm-record {
  margin-top: 28px;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  overflow: hidden;
  background: var(--tmm-surface);
}

.tmm-record div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 18px;
  border-top: 1px solid var(--tmm-line);
}

.tmm-record div:first-child {
  border-top: 0;
}

.tmm-record dt {
  color: var(--tmm-muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.tmm-record dd {
  margin: 0;
  font-weight: 700;
}

.tmm-record-source {
  display: inline-block;
  margin-top: 18px;
  color: var(--tmm-accent-strong);
  font-size: 0.9rem;
  font-weight: 750;
}

.tmm-timeline {
  margin: 0;
  padding: 18px 26px;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
  box-shadow: var(--tmm-shadow);
  list-style: none;
}

.tmm-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--tmm-line);
}

.tmm-timeline li:first-child {
  border-top: 0;
}

.tmm-time {
  color: var(--tmm-accent-strong);
  font-size: 0.86rem;
  font-weight: 850;
}

.tmm-timeline b {
  display: block;
  line-height: 1.35;
}

.tmm-timeline p {
  margin: 6px 0 0;
  color: var(--tmm-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.tmm-badge-ledger {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmm-badge-ledger > li {
  padding: 26px;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
}

.tmm-badge-ledger > li:nth-child(2),
.tmm-badge-ledger > li:nth-child(3) {
  transform: translateY(28px);
}

.tmm-badge-ledger h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
}

.tmm-badge-ledger ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmm-badge-ledger ol li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--tmm-muted);
  font-size: 0.92rem;
}

.tmm-badge-ledger ol span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tmm-line);
  border-radius: 50%;
  color: var(--tmm-accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.tmm-safety-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
}

.tmm-safety-col {
  padding: clamp(26px, 4vw, 44px);
}

.tmm-safety-col + .tmm-safety-col {
  border-left: 1px solid var(--tmm-line);
  background: var(--tmm-surface-soft);
}

.tmm-safety-col h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 820;
}

.tmm-check-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tmm-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--tmm-muted);
}

.tmm-check-list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--tmm-accent-strong);
  font-weight: 900;
}

.tmm-use li::before {
  content: "✓";
}

.tmm-avoid li::before {
  content: "×";
}

.tmm-capstone {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: center;
}

.tmm-capstone-copy .tmm-button {
  margin-top: 26px;
  background: var(--tmm-accent);
  color: var(--tmm-on-accent);
}

.tmm-capstone-copy .tmm-button:hover {
  background: var(--tmm-accent-strong);
}

.tmm-room-plan {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmm-room-plan li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--tmm-line);
}

.tmm-room-plan li:first-child {
  border-top: 0;
}

.tmm-room-plan span {
  color: var(--tmm-accent-strong);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.tmm-room-plan h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.tmm-room-plan p {
  margin: 6px 0 0;
  color: var(--tmm-muted);
  font-size: 0.92rem;
}

.tmm-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tmm-source-list li {
  padding: 18px 0;
  border-top: 1px solid var(--tmm-line);
}

.tmm-source-list a {
  color: var(--tmm-accent-strong);
  font-weight: 780;
}

.tmm-source-list p {
  margin: 5px 0 0;
  color: var(--tmm-muted);
  font-size: 0.86rem;
}

.tmm-faq {
  display: grid;
  gap: 12px;
}

.tmm-faq details {
  padding: 0 22px;
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
}

.tmm-faq summary {
  padding: 20px 38px 20px 0;
  cursor: pointer;
  font-weight: 790;
  line-height: 1.45;
}

.tmm-faq details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--tmm-muted);
}

.tmm-closing {
  padding: clamp(34px, 6vw, 66px);
  border: 1px solid var(--tmm-line);
  border-radius: var(--tmm-radius);
  background: var(--tmm-surface);
  box-shadow: var(--tmm-shadow);
}

.tmm-closing p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--tmm-muted);
}

.tmm-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  color: var(--tmm-accent-strong);
  font-weight: 800;
}

.tmm-footer {
  padding: 42px 0 50px;
  border-top: 1px solid var(--tmm-line);
  color: var(--tmm-muted);
  font-size: 0.85rem;
}

.tmm-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.tmm-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

@media (max-width: 900px) {
  .tmm-hero {
    min-height: 600px;
  }

  .tmm-hero-copy > div {
    width: min(650px, 72%);
  }

  .tmm-facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tmm-facts div {
    border-bottom: 1px solid var(--tmm-line);
  }

  .tmm-facts div:nth-child(2n) {
    border-right: 0;
  }

  .tmm-facts div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .tmm-answer-layout,
  .tmm-giza,
  .tmm-capstone {
    grid-template-columns: 1fr;
  }

  .tmm-sticky-title {
    position: static;
  }

  .tmm-badge-ledger > li:nth-child(2),
  .tmm-badge-ledger > li:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 680px) {
  body.tmm-page {
    font-size: 17px;
  }

  body.tmm-page .cit-en-nav__inner {
    align-items: center;
    padding: 0.65rem 0.75rem;
  }

  body.tmm-page .cit-en-nav__links {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  body.tmm-page .cit-en-nav__links > a:not([href="/en/programs/"]):not(.cit-lang-ko):not(.cit-en-nav__cta) {
    display: none;
  }

  body.tmm-page .cit-en-nav__cta {
    padding: 0.55rem 0.65rem;
  }

  .tmm-wrap {
    width: min(calc(100% - 28px), var(--tmm-max));
  }

  .tmm-hero {
    min-height: 620px;
    align-items: end;
  }

  .tmm-hero-media::after {
    background: rgba(7, 12, 30, 0.48);
  }

  .tmm-hero-media img {
    object-position: 63% center;
  }

  .tmm-hero-copy {
    padding-top: 210px;
    padding-bottom: 74px;
  }

  .tmm-hero-copy > div {
    width: 100%;
  }

  .tmm-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 14vw, 4.15rem);
  }

  .tmm-hero-lede {
    max-width: 31ch;
  }

  .tmm-actions {
    align-items: stretch;
  }

  .tmm-button {
    width: 100%;
  }

  .tmm-facts {
    margin-top: -24px;
  }

  .tmm-section {
    padding-block: 68px;
  }

  .tmm-section-compact {
    padding-block: 56px;
  }

  .tmm-missions summary {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 17px 15px;
  }

  .tmm-missions summary small {
    display: none;
  }

  .tmm-mission-list {
    padding: 0 15px 18px;
  }

  .tmm-record div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .tmm-timeline {
    padding: 8px 18px;
  }

  .tmm-badge-ledger,
  .tmm-safety-table,
  .tmm-source-list {
    grid-template-columns: 1fr;
  }

  .tmm-safety-col + .tmm-safety-col {
    border-top: 1px solid var(--tmm-line);
    border-left: 0;
  }

  .tmm-footer-inner {
    flex-direction: column;
  }

  .tmm-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tmm-button {
    transition: none;
  }

  .tmm-button:hover {
    transform: none;
  }
}

@media print {
  #navBarContainer,
  .tmm-actions,
  .tmm-footer,
  #citStaffTools {
    display: none !important;
  }

  .tmm-page,
  .tmm-section,
  .tmm-hero {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .tmm-hero {
    min-height: 0;
  }

  .tmm-hero-media {
    display: none;
  }

  .tmm-hero h1,
  .tmm-hero-lede,
  .tmm-hero-kicker {
    color: #111827;
  }

  .tmm-missions details {
    break-inside: avoid;
  }
}
