/* Sahkarmi for Teams page. Colours come from guide.css, so it follows light and dark. */
.tm { --tm-indigo: #1e2a5a; --tm-card: var(--bg-2); }
.tm main { display: block; }
.tm-wrap { width: min(1160px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.tm h1, .tm h2, .tm h3 { font-family: "Baloo 2", "Mukta", system-ui, sans-serif; color: var(--text); letter-spacing: -0.01em; }
.tm h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; margin: 0 0 18px; }
.tm h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 12px; }
.tm h3 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.tm-eyebrow { margin: 0 0 10px; color: var(--saffron-ink); font-weight: 700; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; }
.tm-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); margin: 0 0 24px; max-width: 34em; }
.tm-sub { color: var(--text-2); font-size: 17px; margin: 0 0 22px; max-width: 40em; }

.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--tm-card); border: 1px solid var(--line-2); transition: transform 0.18s, border-color 0.18s;
}
.tm-btn:hover { transform: translateY(-2px); border-color: var(--saffron); }
.tm-btn-main { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.tm-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 24px 0 0; padding: 0; color: var(--text-2); font-size: 15px; font-weight: 600; }
.tm-facts li { display: inline-flex; align-items: center; gap: 8px; }
.tm-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Hero ---------- */
.tm-hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); }
.tm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* The office roster */
.tm-roster { background: var(--tm-card); border: 1px solid var(--line-2); border-radius: 24px; padding: 20px 20px 16px; box-shadow: 0 30px 70px rgba(20, 24, 41, 0.14); }
.tm-roster-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; color: var(--text); }
.tm-roster-title span { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px color-mix(in srgb, var(--leaf) 22%, transparent); }
.tm-roster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm-roster li { display: grid; grid-template-columns: minmax(0, 0.8fr) 34px minmax(0, 1.5fr); align-items: center; }
.tm-desk { display: grid; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); line-height: 1.2; }
.tm-desk b { color: var(--text); font-size: 15.5px; }
.tm-desk i { font-style: normal; color: var(--muted); font-size: 13px; }
.tm-link { height: 0; border-top: 2px dotted var(--line-2); position: relative; }
.tm-link::after { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); animation: tm-pass 2.6s ease-in-out infinite; }
.tm-roster li:nth-child(2) .tm-link::after { animation-delay: 0.5s; }
.tm-roster li:nth-child(3) .tm-link::after { animation-delay: 1s; }
.tm-roster li:nth-child(4) .tm-link::after { animation-delay: 1.5s; }
.tm-roster li:nth-child(5) .tm-link::after { animation-delay: 2s; }
@keyframes tm-pass { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.tm-bot { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--halo) 55%, var(--line-2)); background: color-mix(in srgb, var(--halo) 9%, var(--tm-card)); min-width: 0; }
.tm-bot img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.tm-bot em { font-style: normal; font-weight: 600; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.tm-roster-note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }

/* ---------- Bands ---------- */
.tm-band { padding: clamp(44px, 6vw, 84px) 0; border-top: 1px solid var(--line); }
.tm-band-alt { background: color-mix(in srgb, var(--saffron) 5%, var(--bg)); }

/* Who it is for */
.tm-who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tm-who button { font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; padding: 10px 16px; border-radius: 999px; color: var(--text-2); background: var(--tm-card); border: 1px solid var(--line-2); }
.tm-who button:hover { color: var(--text); border-color: var(--saffron); }
.tm-who button[aria-selected="true"] { background: var(--tm-indigo); border-color: var(--tm-indigo); color: #fff; }
.tm-who-panels article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; background: var(--tm-card); border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(20px, 3vw, 34px); }
.tm-who-panels article[hidden] { display: none; }
.tm-who-panels h3 { font-size: clamp(22px, 2.4vw, 28px); grid-column: 1; }
.tm-who-panels p { margin: 0; color: var(--text-2); font-size: 17px; grid-column: 1; }
.tm-who-panels ul { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-who-panels li { position: relative; padding: 12px 14px 12px 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.tm-who-panels li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 6px; background: var(--saffron); }
.tm-who-panels li::after { content: ""; position: absolute; left: 20px; top: 17px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Steps */
.tm-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.tm-steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; border-top: 2px dotted var(--line-2); }
.tm-steps li { position: relative; padding-right: 22px; }
.tm-steps span { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.tm-steps p { margin: 0; color: var(--text-2); }

/* What every desk gets */
.tm-gets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tm-gets li { background: var(--tm-card); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; border-top: 4px solid var(--saffron); }
.tm-gets li:nth-child(3n + 2) { border-top-color: var(--tm-indigo); }
.tm-gets li:nth-child(3n) { border-top-color: var(--leaf); }
.tm-gets p { margin: 0; color: var(--text-2); }

/* Plain facts */
.tm-plain { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 20px 48px; }
.tm-plain ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-plain li { padding: 14px 18px; border-radius: 14px; background: var(--tm-card); border: 1px solid var(--line-2); color: var(--text-2); }
.tm-plain li b { color: var(--text); }

/* The brief */
.tm-brief { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: start; }
.tm-mail { color: var(--text-2); }
.tm-mail a { color: var(--saffron-ink); font-weight: 700; }
.tm-copy { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; margin-left: 8px; padding: 4px 10px; border-radius: 8px; color: var(--text); background: var(--tm-card); border: 1px solid var(--line-2); }
.tm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: var(--tm-card); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(18px, 3vw, 30px); }
.tm-field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }
.tm-field:nth-child(n + 3), .tm-send, .tm-form-note { grid-column: 1 / -1; }
.tm-field label, .tm-field legend { font-weight: 700; font-size: 15px; color: var(--text); padding: 0; }
.tm-field label span { font-weight: 500; color: var(--muted); }
.tm-field input[type="text"], .tm-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; min-height: 46px;
}
.tm-field input:focus-visible, .tm-field textarea:focus-visible, .tm-btn:focus-visible, .tm-who button:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tm-chips label { position: relative; cursor: pointer; }
.tm-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tm-chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text-2); background: var(--bg); border: 1px solid var(--line-2); }
.tm-chips input:checked + span { background: var(--tm-indigo); border-color: var(--tm-indigo); color: #fff; }
.tm-chips input:focus-visible + span { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.tm-send { min-height: 54px; font-size: 17px; }
.tm-form-note { margin: 0; color: var(--muted); font-size: 14px; }

/* Questions */
.tm-faq details { border-bottom: 1px solid var(--line-2); padding: 14px 0; max-width: 820px; }
.tm-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--text); }
.tm-faq details p { margin: 10px 0 0; color: var(--text-2); }
.tm-faq a { color: var(--saffron-ink); }
.tm-faq .tm-btn-main { color: #fff; }
.tm-end { margin: 28px 0 0; }

@media (max-width: 920px) {
  .tm-hero-grid, .tm-plain, .tm-brief { grid-template-columns: 1fr; }
  .tm-steps { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .tm-steps::before { display: none; }
  .tm-gets { grid-template-columns: 1fr 1fr; }
  .tm-who-panels article { grid-template-columns: 1fr; }
  .tm-who-panels ul { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
@media (max-width: 560px) {
  .tm-gets, .tm-steps, .tm-form { grid-template-columns: 1fr; }
  .tm-roster li { grid-template-columns: minmax(0, 0.9fr) 18px minmax(0, 1.4fr); }
  .tm-bot em { font-size: 13px; }
  .tm-bot img { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .tm-link::after { animation: none; left: calc(50% - 4px); } .tm-btn { transition: none; } }

/* ---------- Contact: email and Telegram ---------- */
.tm-contact { text-align: left; }
.tm-contact .tm-sub { margin-inline: 0; }
.tm-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 8px 0 0; }
.tm-way {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; text-decoration: none; text-align: left;
  color: #fff; background: var(--saffron); border: 1px solid var(--saffron); transition: transform 0.18s;
}
.tm-way + .tm-way { background: var(--tm-indigo); border-color: var(--tm-indigo); }
.tm-way:hover { transform: translateY(-3px); }
.tm-way span { display: grid; min-width: 0; line-height: 1.25; }
.tm-way small { font-size: 13px; font-weight: 600; opacity: 0.9; }
.tm-way b { font-family: "Baloo 2", "Mukta", system-ui, sans-serif; font-size: clamp(17px, 2.2vw, 22px); overflow-wrap: anywhere; }
.tm-contact .tm-mail { margin: 16px 0 0; }
.tm-contact .tm-copy { margin: 0; padding: 7px 14px; font-size: 14px; }
@media (max-width: 620px) { .tm-ways { grid-template-columns: 1fr; } }
