/* internships.html: the page and its application form (features/interns.js). Uses the site tokens (robots/robots.css) and the
   field styles of cms/forms.css (.req). */
.intern { padding: calc(76px + clamp(24px, 4vw, 56px)) 0 clamp(60px, 8vw, 110px); }
.intern .wrap { max-width: 820px; }
.intern h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin: 14px 0 12px; }
.intern .lede { color: var(--soft); font-size: 18px; line-height: 1.75; margin: 0 0 26px; }
.in-facts { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.in-facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--soft); font-size: 15px; line-height: 1.65; }
.in-facts b { display: block; color: var(--ink); font-family: var(--display); font-size: 16.5px; margin-bottom: 4px; }

#apply { scroll-margin-top: 90px; }
.in-form { display: grid; gap: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 34px); }
.in-steps { list-style: none; margin: 0; padding: 0 0 18px; display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.in-steps li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--dim); font-family: var(--display); font-size: 14px; font-weight: 700; }
.in-steps b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font: 900 13px/1 "Lato", sans-serif; }
.in-steps li.on { color: var(--teal); }
.in-steps li.done { color: var(--soft); }
.in-steps li.done b { background: var(--teal); border-color: var(--teal); color: #00243A; }
.in-lead { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.7; }

.in-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.in-track { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 8px; padding: 24px 22px; border-radius: 16px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s, transform .2s; }
.in-track:hover, .in-track.on { border-color: var(--teal); background: rgba(74, 213, 253, .07); transform: translateY(-2px); }
.in-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.in-track b { font-family: var(--display); font-size: 21px; color: var(--ink); }
.in-track span { color: var(--soft); font-size: 15px; line-height: 1.6; }

.in-f { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.in-f legend { padding: 0; margin-bottom: 8px; display: grid; gap: 4px; }
.req .in-f .in-q, .in-f .in-q { font-family: var(--display); font-size: 16.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.in-opt { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 9px; margin-inline-start: 6px; white-space: nowrap; }
.in-hint { color: var(--dim); font-size: 14px; line-height: 1.6; font-weight: 400; }
.in-f textarea { min-height: 120px; line-height: 1.7; }
.in-count { justify-self: end; color: var(--dim); font: 400 12.5px/1 "Lato", sans-serif; direction: ltr; }
.in-err { margin: 0; color: #ff9d8a; font-size: 14px; }
html[data-theme="light"] .in-err { color: #B3392F; }
.in-f.bad input, .in-f.bad textarea { border-color: #ff9d8a; }
.in-f.bonus { padding: 18px; border-radius: 14px; border: 1px dashed rgba(74, 213, 253, .5); background: rgba(74, 213, 253, .05); }

.in-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.in-chip { position: relative; display: inline-flex; cursor: pointer; }
.in-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.in-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: 14.5px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.in-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #00243A; }
html[data-theme="light"] .in-chip input:checked + span { color: #fff; }
.in-chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.in-chips.small span { min-height: 36px; padding: 4px 12px; font-size: 13px; font-weight: 500; }
.in-levels { display: grid; gap: 12px; }
.in-lv { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 10px 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.in-lv b { color: var(--ink); font-size: 15px; }
@media (max-width: 600px) { .in-lv { grid-template-columns: minmax(0, 1fr); } .in-steps li span { display: none; } .in-steps li.on span { display: inline; } }

.in-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.in-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 6px; }
.in-foot .btn.ghost { background: none; border: 1px solid var(--line-2); color: var(--ink); box-shadow: none; }
.in-saved, .in-consent { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin: 0; }
.in-consent a { color: var(--teal); }
.in-fail { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 157, 138, .5); background: rgba(255, 157, 138, .08); color: var(--ink); font-size: 15px; }
.in-done { display: grid; justify-items: center; gap: 12px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(30px, 6vw, 60px) 24px; }
.in-done svg { width: 58px; height: 58px; color: var(--teal); }
.in-done h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); }
.in-done p { margin: 0 0 8px; max-width: 520px; color: var(--soft); font-size: 17px; line-height: 1.75; }
