/* IT Act Section Mapper */
.itm-page { padding-top: 28px; padding-bottom: 48px; }

.itm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.itm-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #9a3412;
  line-height: 1.55;
}

.itm-alert strong { color: #7c2d12; }

.itm-hero { margin-bottom: 28px; }

.itm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
}

.itm-breadcrumb a { color: #2563eb; text-decoration: none; }

.itm-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0f172a;
  line-height: 1.25;
}

.itm-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  max-width: 760px;
}

.itm-search-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.itm-direction {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
}

.itm-direction-btn {
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.itm-direction-btn.is-active {
  background: #1e40af;
  color: #fff;
}

.itm-search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.itm-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.itm-search-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.itm-search-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
}

.itm-clear-btn {
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 1.25rem;
  padding: 0 14px;
  cursor: pointer;
  line-height: 1;
}

.itm-clear-btn:hover { color: #64748b; }

.itm-search-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.itm-results {
  margin-bottom: 28px;
}

.itm-results-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
}

.itm-result-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.itm-result-card.is-best {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.itm-result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.itm-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.itm-copy-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.itm-copy-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.itm-result-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.itm-result-arrow { color: #2563eb; }

.itm-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.itm-badge--renumbered { background: #ecfdf5; color: #047857; }
.itm-badge--consolidated { background: #eff6ff; color: #1d4ed8; }
.itm-badge--rewritten { background: #fff7ed; color: #c2410c; }
.itm-badge--other { background: #f1f5f9; color: #475569; }

.itm-result-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.itm-result-note {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.itm-section { margin-bottom: 36px; }

.itm-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: #0f172a;
}

.itm-section p,
.itm-section li {
  color: #475569;
  line-height: 1.65;
}

.itm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.itm-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
}

.itm-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.itm-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}

.itm-step p {
  margin: 0;
  font-size: 0.88rem;
}

.itm-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.itm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.itm-table th,
.itm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.itm-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.itm-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.itm-table tbody tr:hover { background: #eff6ff; }
.itm-table tbody tr:last-child td { border-bottom: none; }

.itm-popular-old {
  font-weight: 700;
  color: #1e40af;
}

.itm-faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.itm-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}

.itm-faq p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.itm-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.itm-cta h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #0f172a;
}

.itm-cta p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  max-width: 560px;
}

@media (max-width: 900px) {
  .itm-steps { grid-template-columns: 1fr; }
  .itm-cta { flex-direction: column; align-items: flex-start; }
  .itm-cta .btn { width: 100%; text-align: center; }
}
