:root {
  --ti-navy: #08306b;
  --ti-blue: #0057b8;
  --ti-blue-2: #1e73d8;
  --ti-light-blue: #eef6ff;
  --ti-gold: #d8a316;
  --ti-gold-dark: #c79500;
  --ti-text: #10213f;
  --ti-body: #31435f;
  --ti-border: #d9e5f5;
  --ti-white: #ffffff;
  --ti-soft: #f6f9fd;
  --ti-green: #2b9368;
  --ti-violet: #6750c9;
  --ti-shadow: 0 16px 34px rgba(8, 48, 107, 0.12);
  --ti-radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ti-body);
  background: var(--ti-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--ti-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ti-navy);
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ti-border);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
}

.brand img {
  width: min(260px, 52vw);
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
  color: var(--ti-text);
}

.desktop-nav a.active,
.mobile-panel a.active {
  color: var(--ti-blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  background: var(--ti-white);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ti-navy);
  content: "";
}

.menu-lines::before {
  transform: translateY(-7px);
}

.menu-lines::after {
  transform: translateY(5px);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 1rem;
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  background: var(--ti-white);
  box-shadow: var(--ti-shadow);
}

.mobile-panel a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
}

.hero-bg {
  background:
    radial-gradient(circle at 82% 15%, rgba(216, 163, 22, 0.16), transparent 24rem),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 58%, #ffffff 100%);
  border-bottom: 1px solid var(--ti-border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  min-height: 500px;
  margin: 0 auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.hero.compact {
  min-height: 300px;
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ti-blue);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ti-navy);
  line-height: 1.15;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.lead {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--ti-body);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--ti-blue);
  border-radius: 8px;
  color: var(--ti-blue);
  background: var(--ti-white);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 87, 184, 0.12);
  cursor: pointer;
}

.btn:hover,
.btn.active,
.btn[aria-pressed="true"] {
  color: var(--ti-white);
  background: var(--ti-blue);
}

.btn-primary {
  color: var(--ti-white);
  background: var(--ti-blue);
}

.btn-primary:hover {
  background: var(--ti-navy);
}

.btn-gold {
  color: var(--ti-navy);
  background: var(--ti-gold);
  border-color: var(--ti-gold);
}

.btn-muted {
  color: var(--ti-body);
  background: #eef3fa;
  border-color: #d2dfef;
  box-shadow: none;
  cursor: not-allowed;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section.narrow {
  width: min(900px, calc(100% - 2rem));
}

.section + .section {
  padding-top: 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 1.4rem;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.panel,
.lesson-card,
.map-row,
.wizard-panel,
.mode-panel,
.qa-item {
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  background: var(--ti-white);
  box-shadow: var(--ti-shadow);
}

.card,
.panel,
.lesson-card,
.wizard-panel,
.mode-panel,
.qa-item {
  padding: 1.2rem;
}

.card p,
.panel p,
.lesson-card p {
  margin: 0.4rem 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--ti-border);
  border-radius: 999px;
  color: var(--ti-blue);
  background: #f4f8ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.gold {
  color: #5a4100;
  background: #fff6d8;
  border-color: #f1d36d;
}

.badge.green {
  color: #0d5738;
  background: #eaf8f1;
  border-color: #bce6d2;
}

.badge.violet {
  color: #3d2b8f;
  background: #f0edff;
  border-color: #d8d0ff;
}

.badge.locked {
  color: #694312;
  background: #fff4e8;
  border-color: #efd0aa;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  color: var(--ti-white);
  background: linear-gradient(135deg, var(--ti-blue), var(--ti-blue-2));
  font-weight: 900;
}

.icon-chip.gold {
  color: var(--ti-navy);
  background: linear-gradient(135deg, #ffe39a, var(--ti-gold));
}

.icon-chip.green {
  background: linear-gradient(135deg, #3dbb88, #1d8057);
}

.icon-chip.violet {
  background: linear-gradient(135deg, #836cf0, #5742c7);
}

.hero-visual,
.workflow-hero {
  position: relative;
  min-height: 330px;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--ti-border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.96), rgba(238,246,255,0.86));
  box-shadow: var(--ti-shadow);
}

.workflow-illustration {
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: 12px;
}

.workflow-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.node {
  min-height: 86px;
  padding: 0.8rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-white);
  font-size: 0.88rem;
  font-weight: 800;
}

.node strong {
  display: block;
  color: var(--ti-navy);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 0.6rem;
}

.workflow-step {
  min-height: 84px;
  padding: 0.8rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-soft);
  font-size: 0.86rem;
  font-weight: 850;
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

.map-list {
  display: grid;
  gap: 0.8rem;
}

.map-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.3fr 1fr 0.8fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  font-size: 0.92rem;
}

.map-row.header {
  color: var(--ti-white);
  background: var(--ti-navy);
  font-weight: 900;
}

.course-track {
  display: grid;
  gap: 1rem;
}

.module-card {
  border-left: 5px solid var(--ti-blue);
}

.lesson-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lesson-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-soft);
}

.lesson-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ti-white);
  background: var(--ti-blue);
  font-weight: 900;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.4rem;
  align-items: start;
}

.lesson-main {
  display: grid;
  gap: 1rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.8rem;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.85rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--ti-green);
  font-weight: 900;
  content: "✓";
}

.numbered-steps {
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.numbered-steps li {
  counter-increment: step;
  padding: 1rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-soft);
}

.numbered-steps li::before {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 0.5rem;
  border-radius: 50%;
  color: var(--ti-white);
  background: var(--ti-blue);
  font-weight: 900;
  content: counter(step);
}

.compact-steps {
  gap: 0.65rem;
}

.compact-steps li {
  padding: 0.85rem;
}

.mini-steps {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
  margin: 0.55rem 0 0;
}

.step-help-intro {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  color: var(--ti-navy);
  background: #f4f8ff;
  font-weight: 800;
}

.node-name {
  display: inline-block;
  margin: 0 0.08rem;
  padding: 0.04rem 0.3rem;
  border: 1px solid #f1d36d;
  border-radius: 6px;
  color: #5a4100;
  background: #fff6d8;
  font-size: 0.94em;
  font-weight: 900;
  line-height: 1.35;
}

#software-steps .numbered-steps li {
  line-height: 1.72;
}

.step-detail {
  margin-top: 0.85rem;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  background: var(--ti-white);
}

.step-detail summary {
  padding: 0.7rem 0.85rem;
  color: var(--ti-blue);
  cursor: pointer;
  font-weight: 900;
}

.step-detail[open] summary {
  border-bottom: 1px solid #dce8f6;
  color: var(--ti-navy);
  background: #f8fbff;
}

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

.step-detail-block {
  padding: 0.8rem;
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  background: var(--ti-soft);
}

.step-detail-block h4 {
  margin: 0 0 0.35rem;
  color: var(--ti-navy);
  font-size: 0.92rem;
}

.step-detail-block p {
  margin: 0;
  font-size: 0.93rem;
}

.screenshot-placeholder {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-top: 0.8rem;
  padding: 1rem;
  border: 2px dashed #a9c5e8;
  border-radius: 12px;
  color: var(--ti-navy);
  background: #f8fbff;
  text-align: center;
  font-weight: 850;
}

.figure-card {
  margin: 1rem 0 0;
  padding: 0.8rem;
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  background: #f8fbff;
}

.figure-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c7d9ef;
  border-radius: 10px;
  background: var(--ti-white);
}

.figure-card figcaption {
  margin-top: 0.65rem;
  color: var(--ti-body);
  font-size: 0.9rem;
}

.software-figure-gallery {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #dce8f6;
}

.software-figure-gallery h3 {
  margin: 0;
  color: var(--ti-navy);
  font-size: 1.05rem;
}

.software-figure-gallery > p {
  margin: 0.45rem 0 0;
}

.software-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.9rem;
}

.software-figure-card {
  margin: 0;
}

.software-figure-card img {
  max-height: 620px;
  object-fit: contain;
}

.software-figure-card figcaption strong {
  color: var(--ti-navy);
  font-weight: 900;
}


.software-config-checklist {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #dce8f6;
}

.software-config-checklist h3 {
  margin: 0;
  color: var(--ti-navy);
  font-size: 1.05rem;
}

.software-config-checklist > p {
  margin: 0.45rem 0 0;
}

.software-config-scroll {
  overflow-x: auto;
  margin-top: 0.2rem;
}

.software-config-table {
  min-width: 820px;
}

.software-config-table th:nth-child(1) {
  width: 22%;
}

.software-config-table th:nth-child(3),
.software-config-table th:nth-child(4) {
  width: 27%;
}

.software-screenshot-gallery {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #dce8f6;
}

.software-screenshot-gallery h3 {
  margin: 0;
  color: var(--ti-navy);
  font-size: 1.05rem;
}

.software-screenshot-gallery > p {
  margin: 0.45rem 0 0;
}

.software-screenshot-steps {
  display: grid;
  gap: 0.3rem;
  margin: 0.55rem 0 0 1.1rem;
  padding: 0;
}

.software-screenshot-steps li {
  margin: 0;
}

.software-screenshot-gallery .software-figure-card img {
  max-height: 760px;
}

.mistake-grid,
.prompt-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.small-card {
  padding: 0.9rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-soft);
}

.level-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.decision-guide,
.example-flow,
.template-grid {
  margin-top: 1rem;
}

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

.mini-note {
  margin-top: 1rem;
  padding: 0.9rem;
  border-left: 5px solid var(--ti-gold);
  border-radius: 8px;
  color: var(--ti-text);
  background: #fff9e8;
}

.report-box {
  border-color: #efd787;
  background: #fff9e8;
}

.report-template {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid #efd787;
  border-radius: 12px;
  background: var(--ti-white);
  color: var(--ti-text);
}

.wizard-form {
  display: grid;
  gap: 1rem;
}

.path-planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

.path-plan-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.question-group {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-soft);
}

.question-group legend {
  padding: 0 0.35rem;
  color: var(--ti-navy);
  font-family: var(--ti-heading);
  font-size: 1.15rem;
  font-weight: 900;
}

.question-help {
  margin: 0.15rem 0 0;
  color: var(--ti-muted);
  font-size: 0.94rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.option-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  background: var(--ti-white);
  font-weight: 800;
}

.recommendation {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #bce6d2;
  border-radius: 12px;
  background: #f0fbf6;
}

.recommendation h3 {
  margin-top: 0;
}

.path-alert {
  margin: 0.8rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #e3b341;
  border-radius: 10px;
  background: #fff8df;
  color: #503b00;
}

.path-alert strong {
  display: block;
  margin-bottom: 0.35rem;
}

.path-alert ul,
.path-reason-list,
.path-evidence-list {
  margin-bottom: 0;
}

.path-start-card {
  margin: 0.85rem 0 1rem;
  padding: 1rem;
  border: 2px solid var(--ti-blue);
  border-radius: 12px;
  background: var(--ti-white);
}

.path-start-card p {
  margin-bottom: 0.65rem;
}

.path-step-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
  counter-reset: path-step;
}

.path-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  background: var(--ti-white);
  counter-increment: path-step;
}

.path-step::before {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ti-navy);
  color: var(--ti-white);
  content: counter(path-step);
  font-weight: 900;
}

.path-step h4,
.path-step p {
  margin: 0;
}

.path-step p {
  margin-top: 0.3rem;
  color: var(--ti-muted);
  font-size: 0.92rem;
}

.path-phase {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--ti-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.path-extension {
  padding: 0.7rem;
  border: 1px dashed var(--ti-border);
  border-radius: 10px;
  background: var(--ti-white);
}

.path-extension p {
  margin: 0.3rem 0 0;
  color: var(--ti-muted);
  font-size: 0.88rem;
}

.path-prompt {
  padding: 0.85rem;
  border-left: 4px solid var(--ti-gold);
  background: #fff9e8;
  overflow-wrap: anywhere;
}

.assistant-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.assistant-side {
  display: grid;
  gap: 1rem;
}

.assistant-main {
  display: grid;
  gap: 1rem;
}

.assistant-card,
.assistant-gate {
  padding: 1.2rem;
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  background: var(--ti-white);
  box-shadow: var(--ti-shadow);
}

.assistant-disclaimer {
  color: var(--ti-text);
  font-weight: 750;
}

.assistant-toolbar,
.assistant-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.assistant-status {
  min-width: 94px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #bce6d2;
  border-radius: 999px;
  color: #0d5738;
  background: #eaf8f1;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.starter-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.starter-prompts button,
.assistant-feedback button {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--ti-border);
  border-radius: 999px;
  color: var(--ti-blue);
  background: #f4f8ff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.starter-prompts button:hover,
.assistant-feedback button:hover {
  color: var(--ti-white);
  background: var(--ti-blue);
}

.assistant-messages {
  display: grid;
  gap: 0.85rem;
  min-height: 360px;
  max-height: 620px;
  margin: 1rem 0;
  padding: 1rem;
  overflow-y: auto;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: #f8fbff;
}

.chat-message {
  max-width: 92%;
  padding: 0.9rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-white);
}

.chat-message.user {
  justify-self: end;
  border-color: #c2d7f1;
  background: #eef6ff;
}

.chat-message.assistant {
  justify-self: start;
}

.chat-message.loading {
  opacity: 0.78;
}

.chat-role {
  margin-bottom: 0.45rem;
  color: var(--ti-navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-content h3 {
  margin-top: 0.75rem;
  font-size: 0.98rem;
}

.chat-content h3:first-child {
  margin-top: 0;
}

.assistant-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.assistant-link-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  background: var(--ti-soft);
}

.assistant-link-card span,
.assistant-link-card small {
  color: var(--ti-body);
  font-size: 0.78rem;
  font-weight: 800;
}

.assistant-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.assistant-form {
  display: grid;
  gap: 0.65rem;
}

.assistant-form label {
  color: var(--ti-navy);
  font-weight: 900;
}

.assistant-form textarea {
  min-height: 130px;
  resize: vertical;
}

.assistant-form-footer p {
  margin: 0;
  color: var(--ti-body);
  font-size: 0.88rem;
  font-weight: 800;
}

.assistant-warning {
  margin: 0;
  padding: 0.8rem;
  border: 1px solid #efd787;
  border-radius: 10px;
  color: #694312;
  background: #fff9e8;
  font-weight: 850;
}

.assistant-test-panel {
  border-left: 5px solid var(--ti-gold);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
}

.meta-table th,
.meta-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--ti-border);
  text-align: left;
  vertical-align: top;
}

.meta-table th {
  color: var(--ti-navy);
  background: var(--ti-light-blue);
}

.footer {
  color: var(--ti-white);
  background: linear-gradient(135deg, #041f4a 0%, #08306b 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.footer h3,
.footer a,
.footer p {
  color: var(--ti-white);
}

.footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 0.45rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ti-blue);
}

input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem;
  border: 1px solid var(--ti-border);
  border-radius: 8px;
  color: var(--ti-text);
  font: inherit;
}

textarea {
  min-height: 90px;
}

:focus-visible {
  outline: 3px solid rgba(216, 163, 22, 0.65);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel.open {
    display: block;
  }

  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .lesson-layout,
  .assistant-shell,
  .software-figure-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .sidebar {
    position: static;
  }

  .map-row {
    grid-template-columns: 1fr;
  }

  .map-row.header {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .workflow-stack,
  .example-flow,
  .step-detail-grid,
  .assistant-link-grid,
  .mistake-grid,
  .prompt-grid,
  .resource-grid,
  .option-grid,
  .lesson-row {
    grid-template-columns: 1fr;
  }

  .actions,
  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .path-planner-layout {
    grid-template-columns: 1fr;
  }

  .path-plan-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .path-extension-grid {
    grid-template-columns: 1fr;
  }
}

/* Guided concept-to-report visual workflow and output interpretation */
.visual-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.visual-path a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  color: var(--ti-navy);
  background: var(--ti-light-blue);
  text-decoration: none;
}

.visual-path a:hover {
  border-color: var(--ti-blue);
  transform: translateY(-1px);
}

.visual-path span,
.visual-stage-number,
.output-reading-sequence > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--ti-white);
  background: var(--ti-blue);
  font-weight: 800;
}

.visual-path small {
  grid-column: 2;
  color: var(--ti-muted);
  line-height: 1.35;
}

.visual-stage-group + .visual-stage-group {
  padding-top: 1.75rem;
  margin-top: 2rem;
  border-top: 1px solid var(--ti-border);
}

.visual-stage-intro {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.visual-stage-intro h3,
.visual-stage-intro p {
  margin-top: 0;
}

.guided-figure-card {
  overflow: hidden;
}

.guided-figure-card img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #f7f9fc;
}

.guided-figure-card.contrast-invert img {
  background: transparent;
  filter: invert(1) hue-rotate(180deg) contrast(1.18);
}

.guided-figure-card figcaption {
  padding-top: 0.9rem;
}

.guided-figure-card figcaption h4 {
  margin: 0 0 0.65rem;
  color: var(--ti-navy);
  font-size: 1.05rem;
}

.guided-figure-card figcaption p {
  margin: 0.55rem 0 0;
  line-height: 1.55;
}

.visual-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.visual-stage-badge,
.report-use-tag,
.output-report-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.visual-stage-concept {
  color: #56307d;
  background: #f1e9fb;
}

.visual-stage-software {
  color: #07557b;
  background: #e2f3fb;
}

.visual-stage-output {
  color: #0b6536;
  background: #e5f6ec;
}

.visual-stage-report {
  color: #7c4a00;
  background: #fff1ce;
}

.report-method {
  color: #43516b;
  background: #edf1f6;
}

.report-yes {
  color: #0b6536;
  background: #e5f6ec;
}

.output-reading-sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  list-style: none;
}

.output-reading-sequence > li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  background: var(--ti-white);
}

.output-reading-sequence p {
  margin: 0.25rem 0 0;
  color: var(--ti-muted);
  line-height: 1.45;
}

.output-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
}

.output-interpretation-table {
  min-width: 1040px;
  margin: 0;
}

.output-interpretation-table th[scope="row"] {
  min-width: 180px;
  background: #f7f9fc;
}

.output-interpretation-table td {
  min-width: 225px;
  line-height: 1.5;
}

.output-report-label {
  margin: 0 0.5rem 0.25rem 0;
}

.output-report-detail {
  display: inline;
}

.output-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.output-decision-card {
  padding: 1.1rem;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
}

.output-decision-card h3 {
  margin-top: 0;
}

.output-stop {
  border-left: 5px solid #c94747;
  background: #fff5f5;
}

.output-keep {
  border-left: 5px solid #198754;
  background: #f1fbf5;
}

.report-bridge {
  padding: 1.2rem;
  border: 1px solid #b9d4f3;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f9ff 0%, #eef5ff 100%);
}

.report-bridge h3 {
  margin-top: 0;
}

.report-bridge-rule {
  padding-top: 0.85rem;
  margin-bottom: 0;
  border-top: 1px solid #c9dcef;
}

@media (max-width: 980px) {
  .visual-path,
  .output-reading-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .visual-path,
  .output-reading-sequence,
  .output-decision-grid {
    grid-template-columns: 1fr;
  }

  .guided-figure-card img {
    max-height: 310px;
  }
}


/* Final sitewide footer */
.tia-global-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem) 1.5rem;
  background: linear-gradient(110deg, #061f48 0%, #07336f 62%, #173c68 100%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tia-global-footer__inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.tia-global-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(135px, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
}

.tia-global-footer h2,
.tia-global-footer h3,
.tia-global-footer p {
  color: #ffffff;
}

.tia-global-footer h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.tia-global-footer h2 strong {
  color: #f2b520;
}

.tia-global-footer h3 {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tia-global-footer p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.tia-global-footer__disclaimer {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.94rem;
}

.tia-global-footer ul {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tia-global-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.tia-global-footer a:hover,
.tia-global-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.tia-global-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .tia-global-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tia-global-footer__brand {
    grid-column: 1 / -1;
  }
}

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

  .tia-global-footer__brand {
    grid-column: auto;
  }

  .tia-global-footer__bottom {
    flex-direction: column;
  }
}
