/* ==========================================================================
   Kheema Bisht Inter College: Dusk, the Careers page (theme-c-careers.css)
   Loaded after theme-c.css, before fx/transitions.css and theme-c-fx.css.
   Works with assets/js/dusk/careers.js.

   SIGNATURE: the window that lights as an application is filled in.
     Four panes, one for each part of the form, and a fanlight lamp at the top
     that comes on when the application is ready to send. On success the whole
     window glows and a few stars come out around it.
     Where the page is one column (and on short screens) the large window
     scrolls away while the visitor types, so a small copy, .cr-mini, rides
     in the corner of the form card under the header (see "The follower").
   FALLBACK RULE: the resting CSS is the finished state. Panes are dark only
     on .cr-live (careers.js running); with no script the window rests lit.
     Every movement sits inside prefers-reduced-motion: no-preference.
   ========================================================================== */

/* ---------- The window (one component, sized in em) ---------- */
.cr-window {
  --w-frame: #141938;
  --w-line: rgba(235, 203, 138, 0.62);
  --w-r: 4.43em;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: var(--w-r) 1fr 1fr;
  gap: 0.32em;
  width: 10em;
  height: 14.5em;
  padding: 0.45em;
  border: 0.12em solid var(--w-line);
  border-radius: 5em 5em 0.3em 0.3em;
  background: var(--w-frame);
  box-shadow: 0 0 0 0.06em rgba(235, 203, 138, 0.14), 0 1.2em 2.4em -1.2em rgba(6, 8, 24, 0.9);
}
.cr-fan, .cr-pane {
  --kb-light: var(--brass-light);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(128deg, rgba(238, 240, 246, 0) 38%, rgba(238, 240, 246, 0.07) 46%, rgba(238, 240, 246, 0) 54%),
    linear-gradient(170deg, #252c5a 0%, #171c3e 62%, #1e2552 100%);
  border-radius: 0.12em;
}
.cr-fan {
  --kb-light: var(--bus);
  grid-column: 1 / -1;
  border-radius: var(--w-r) var(--w-r) 0.08em 0.08em;
}
/* lit glass: a layer over the dark glass */
.cr-fan::after, .cr-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 105%, #fff4d6 0%, var(--kb-light) 48%, color-mix(in srgb, var(--kb-light) 72%, #9a6a12) 100%);
  opacity: 1;
  transition: opacity 0.32s var(--ease);
}
/* fanlight glazing bars, a small sunburst from the base */
.cr-fan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 100%, var(--w-frame) 0 0.95em, transparent 1em),
    repeating-conic-gradient(from -90deg at 50% 100%, transparent 0 17.2deg, var(--w-frame) 17.2deg 18deg);
  pointer-events: none;
}
/* a thin cross bar in each pane */
.cr-pane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  height: 0.12em;
  background: var(--w-frame);
}
.cr-sill {
  display: block;
  width: 11.6em;
  height: 0.34em;
  margin: 0.25em auto 0;
  border-radius: 0.1em;
  background: linear-gradient(90deg, rgba(210, 162, 76, 0.2), var(--brass) 50%, rgba(210, 162, 76, 0.2));
}
/* glow on the wall around the window: grows with every lit pane */
.cr-window-wrap { position: relative; font-size: 17px; }
.cr-window-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 26em;
  height: 26em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 199, 44, 0.3), rgba(255, 199, 44, 0.08) 55%, rgba(255, 199, 44, 0) 100%);
  opacity: calc(var(--lit, 5) / 5 * var(--lamp, 1));
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.cr-window-wrap > .cr-window, .cr-window-wrap > .cr-sill { position: relative; }

/* dark until the part is done (only when careers.js runs) */
.cr-live .cr-fan:not(.is-on)::after, .cr-live .cr-pane:not(.is-on)::after { opacity: 0; }

/* stars that come out when the application is sent */
.cr-stars { position: absolute; inset: -1.4em -3.2em; pointer-events: none; }
.cr-stars i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff7e2;
  box-shadow: 0 0 8px 2px rgba(255, 236, 180, 0.55);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.cr-stars i:nth-child(1) { left: 6%; top: 18%; }
.cr-stars i:nth-child(2) { right: 4%; top: 8%; width: 3px; height: 3px; }
.cr-stars i:nth-child(3) { left: 14%; top: 62%; width: 3px; height: 3px; }
.cr-stars i:nth-child(4) { right: 10%; top: 48%; }
.cr-stars i:nth-child(5) { left: 50%; top: -2%; width: 3px; height: 3px; }
.cr-lamp.is-done .cr-stars i { opacity: 0.9; }

/* ---------- Title band ---------- */
.cr-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.cr-band-art { position: relative; font-size: 10px; margin: 0 clamp(0px, 4vw, 56px) 4px 0; }
.cr-band-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24em;
  height: 24em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 199, 44, calc(0.22 * var(--lamp, 1))), rgba(255, 199, 44, 0));
  pointer-events: none;
}
.cr-band-art .cr-window { box-shadow: 0 0 0 0.06em rgba(235, 203, 138, 0.14), 0 0 2.6em 0.4em rgba(255, 199, 44, calc(0.2 * var(--lamp, 1))); }
@media (min-width: 960px) { .cr-band-art { font-size: 12px; } }
@media (max-width: 599px) {
  .cr-band-inner { grid-template-columns: minmax(0, 1fr); position: relative; }
  .cr-band-art { position: absolute; right: var(--gutter, 16px); top: 6px; margin: 0; font-size: 5.2px; }
}

/* ---------- Intro ---------- */
.cr-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.cr-intro-photo { width: 100%; max-width: 400px; justify-self: center; }
.cr-intro-photo img { object-position: 50% 64%; }
.cr-intro-text h2 { font-size: var(--t-h2); line-height: 1.08; color: var(--fg-strong); margin-bottom: clamp(18px, 2vw, 26px); }
.cr-intro-copy p { max-width: calc(58 * 0.575em); font-size: var(--t-lede); line-height: 1.6; color: var(--fg-soft); }
.cr-intro-copy p + p { margin-top: 1em; }

/* the three kinds of work: each card is a small window the pointer lights */
.cr-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(48px, 6vw, 88px);
}
.cr-role {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  text-decoration: none;
  color: var(--fg-soft);
  transition: border-color var(--t-ui, 220ms) var(--ease), translate var(--t-ui, 220ms) var(--ease), box-shadow var(--t-ui, 220ms) var(--ease);
}
/* the reveal keeps its own fade; its stagger delays only the fade, never a later hover */
.cr-roles > .cr-role:nth-child(2) { --i: 1; }
.cr-roles > .cr-role:nth-child(3) { --i: 2; }
.c-js .cr-roles > .cr-role[data-reveal] {
  transition:
    opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms),
    transform 0.8s var(--ease) calc(var(--i, 0) * 90ms),
    border-color var(--t-ui, 220ms) var(--ease),
    translate var(--t-ui, 220ms) var(--ease),
    box-shadow var(--t-ui, 220ms) var(--ease);
}
.cr-role:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cr-role-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 64px;
  margin-bottom: 8px;
  border: 1px solid var(--hair);
  border-radius: 27px 27px 4px 4px;
  color: var(--brass-deep);
  background: linear-gradient(180deg, rgba(210, 162, 76, 0), rgba(210, 162, 76, 0));
  transition: background-color var(--t-ui, 220ms), border-color var(--t-ui, 220ms), box-shadow var(--t-ui, 220ms);
}
.cr-role-icon svg { width: 26px; height: 26px; margin-top: 6px; }
.cr-role-name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.2; color: var(--fg-strong); }
:lang(hi) .cr-role-name { font-size: 1.4rem; }
.cr-role-text { line-height: 1.55; }
.cr-role-go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--brass-deep); }
.cr-role-go span[aria-hidden] { display: inline-block; transition: translate var(--t-ui, 220ms) var(--ease); }
.cr-role:hover, .cr-role:focus-visible, .cr-role.is-picked { border-color: rgba(210, 162, 76, 0.7); }
.cr-role:hover .cr-role-icon, .cr-role:focus-visible .cr-role-icon, .cr-role.is-picked .cr-role-icon {
  border-color: var(--brass);
  background-color: rgba(255, 199, 44, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.08), 0 8px 22px -10px rgba(210, 162, 76, 0.8);
}
.cr-role:hover .cr-role-go span[aria-hidden], .cr-role:focus-visible .cr-role-go span[aria-hidden] { translate: 3px 0; }
.cr-role.is-picked { box-shadow: inset 0 0 0 1px rgba(210, 162, 76, 0.5); }
@media (hover: hover) and (pointer: fine) {
  .cr-role:hover { translate: 0 -3px; }
}

/* ---------- Application ---------- */
.cr-apply-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.cr-apply-head h2 { font-size: var(--t-h2); line-height: 1.08; color: var(--fg-strong); }
.cr-req-note { margin-top: 12px; color: var(--fg-soft); }
.cr-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.cr-aside { display: grid; gap: 20px; align-self: start; }
@media (min-width: 960px) and (min-height: 800px) {
  .cr-aside { position: sticky; top: calc(var(--header-h, 65px) + 24px); }
}

.cr-lamp {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding-top: clamp(36px, 4vw, 52px);
  text-align: center;
  overflow: hidden;
}
.cr-lamp-title, .cr-alt-title { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; line-height: 1.3; color: var(--brass-light); margin: 0 0 8px; }
:lang(hi) .cr-lamp-title, :lang(hi) .cr-alt-title { font-style: normal; }
.cr-lamp-copy, .cr-alt-copy { margin: 0; color: var(--on-dark-2); line-height: 1.6; }
.cr-alt-copy a { color: var(--brass-light); text-decoration: underline; text-decoration-color: rgba(235, 203, 138, 0.5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cr-alt-copy a:hover { text-decoration-color: currentColor; }
.cr-wa-text { color: var(--paper); font-weight: 600; white-space: nowrap; }
.cr-alt-buttons { margin-top: 20px; }
.cr-alt-buttons .btn { flex: 1 1 190px; }

/* the form card */
.cr-form-card { --cr-pad: clamp(24px, 3.6vw, 52px); padding: var(--cr-pad); }

/* ---------- The follower ----------
   A small copy of the window (about 44 x 64 px) in the top-right corner of the
   form card. It is sticky under the header, so it stays in view for as long as
   the form is on screen, and it carries the same pane and lamp states.
   Shown only when careers.js runs (.cr-live), only where the aside is not
   sticky, and only while the large window is out of view (.is-shown).
   It takes no room: the negative margin gives its height back, and the
   sticky box keeps it inside the card at the bottom. */
.cr-mini { display: none; }
@media (max-width: 959px), (max-height: 799px) {
  .cr-mini.cr-live {
    --lit: 0;
    display: block;
    position: sticky;
    top: calc(var(--header-h, 60px) + 8px + var(--cr-pad) - 12px);
    z-index: 3;
    height: 64px;
    margin: 0 0 -64px;
    font-size: 4.4px;
    pointer-events: none;
  }
  .cr-mini .cr-window {
    position: absolute;
    top: calc(12px - var(--cr-pad));
    right: calc(12px - var(--cr-pad));
    gap: 1.5px;
    padding: 2px;
    border-width: 1px;
    opacity: 0;
    /* a ring of the card's own white keeps it clear of whatever scrolls beneath; the glow grows with every lit pane */
    box-shadow:
      0 0 0 3px var(--surface),
      0 10px 18px -8px rgba(6, 8, 24, 0.6),
      0 0 calc(4px + var(--lit) * 3px) calc(3px + var(--lit) * 0.6px) rgba(255, 199, 44, calc(var(--lit) * 0.085));
  }
  .cr-mini.is-shown .cr-window { opacity: 1; }
  /* at this size the fanlight keeps its hub and loses the fine bars */
  .cr-mini .cr-fan::before { background: radial-gradient(circle at 50% 100%, var(--w-frame) 0 0.95em, transparent 1em); }
  .cr-mini .cr-pane::before { height: 1px; opacity: 0.7; }
  /* one ring of window light each time a pane comes on */
  .cr-mini .cr-window::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--bus);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
  }
  /* the small lamp of each part sits beside its title, clear of the corner the follower uses */
  .cr-form .cr-set legend::after { margin-left: 0; }
  /* a focused field comes to rest below the follower, never under it */
  .cr-form :is(input, select, textarea) { scroll-margin-top: 92px; }
}
.cr-form { display: block; }
.cr-set { margin: 0 0 28px; padding: 0 0 28px; border-bottom: 1px solid var(--hair); }
.cr-set legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fg-strong);
}
.cr-set legend::before {
  content: "01";
  font-family: var(--f-latin);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brass-deep);
}
/* the small lamp of each part: lights when the part is done */
.cr-set legend::after {
  content: "";
  flex: none;
  width: 11px;
  height: 15px;
  margin-left: auto;
  border-radius: 6px 6px 1px 1px;
  background: rgba(30, 35, 70, 0.14);
  box-shadow: inset 0 0 0 1px rgba(30, 35, 70, 0.12);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.cr-set.is-done legend::after { background: var(--brass); box-shadow: 0 0 10px 3px rgba(255, 199, 44, 0.45); }
.cr-set[data-set="2"] legend::before { content: "02"; }
.cr-set[data-set="3"] legend::before { content: "03"; }
.cr-set[data-set="4"] legend::before { content: "04"; }
:lang(hi) .cr-set legend { font-weight: 400; font-size: 1.45rem; }
.cr-set legend + * { clear: both; }
.cr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.cr-wide { grid-column: 1 / -1; }
.cr-set > .field + .field { margin-top: 18px; }
.cr-field { align-content: start; }
.cr-field .field-error:empty { display: none; }
.cr-field .field-error { margin: 2px 0 0; color: var(--cr-ember-deep); }

/* living fields: a bus-yellow line fills along the bottom on focus, a brass tick when valid */
.cr-form input:not([type="hidden"], [type="file"]), .cr-form textarea {
  background-image: linear-gradient(var(--bus), var(--bus));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, background-size 180ms var(--ease);
}
.cr-form select {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a5a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(var(--bus), var(--bus));
  background-repeat: no-repeat;
  background-position: right 14px center, 0 100%;
  background-size: 20px, 0 2px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, background-size 180ms var(--ease);
}
.cr-form input:not([type="hidden"], [type="file"]):focus, .cr-form textarea:focus { background-size: 100% 2px; }
.cr-form select:focus { background-size: 20px, 100% 2px; }
.cr-form input.is-valid:not([type="hidden"], [type="file"]) {
  padding-right: 44px;
  background-image:
    linear-gradient(var(--bus), var(--bus)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08431' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-position: 0 100%, right 14px center;
  background-size: 0 2px, 18px;
}
.cr-form input.is-valid:not([type="hidden"], [type="file"]):focus { background-size: 100% 2px, 18px; }
/* error, as on the admissions and contact forms: a soft ember underline along the bottom edge, the message below it */
.cr-form { --cr-ember: #c9553d; --cr-ember-deep: #9e3a26; }
.cr-form :is(input, select, textarea).is-invalid {
  border-color: rgba(201, 85, 61, 0.72);
  box-shadow: inset 0 -2px 0 var(--cr-ember);
  background-color: var(--field-bg);
}
/* the browser's own verdict never shows without a message of ours */
.cr-form :is(input, select, textarea):user-invalid:not(.is-invalid) {
  border-color: var(--field-line);
  box-shadow: none;
  background-color: var(--field-bg);
}
.cr-form :is(input, select, textarea):user-invalid:not(.is-invalid):is(:hover, :focus-visible) { border-color: var(--fg-strong); }
.cr-form input[type="number"] { -moz-appearance: textfield; }

/* resume: a drop zone around the real file input */
.cr-file { min-width: 0; }
.cr-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1.5px dashed rgba(122, 90, 28, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(210, 162, 76, 0.07), rgba(210, 162, 76, 0.02));
  color: var(--fg-soft);
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s;
}
/* the real input covers the whole zone: visible to the browser and the keyboard, its own text transparent */
.cr-drop input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.cr-drop input[type="file"]::file-selector-button { width: 0; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; }
.cr-drop input[type="file"]::-webkit-file-upload-button { width: 0; padding: 0; border: 0; opacity: 0; }
.cr-drop-face { display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.cr-drop-icon { width: 30px; height: 30px; color: var(--brass-deep); transition: translate 0.25s var(--ease); }
.cr-drop-text { font-weight: 600; color: var(--fg-strong); }
.cr-drop:hover, .cr-drop.is-over { border-color: var(--brass); border-style: solid; background-color: rgba(255, 199, 44, 0.1); box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.1); }
.cr-drop:hover .cr-drop-icon, .cr-drop.is-over .cr-drop-icon { translate: 0 -3px; }
.cr-drop input[type="file"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cr-drop:has(input:focus-visible) { border-color: var(--fg-strong); }
.cr-file.has-file .cr-drop { display: none; }
.cr-file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(210, 162, 76, 0.7);
  border-radius: 10px;
  background: rgba(255, 199, 44, 0.08);
  color: var(--fg-strong);
}
.cr-file-chip[hidden] { display: none; }
.cr-file-chip svg { flex: none; width: 24px; height: 24px; color: var(--brass-deep); }
.cr-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cr-file-size { flex: none; color: var(--fg-soft); font-size: var(--t-small); }
.cr-file-remove {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--fg-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cr-file-remove:hover { border-color: var(--fg-strong); }
.cr-file-remove:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cr-file.is-bad .cr-file-chip { border-color: rgba(201, 85, 61, 0.72); box-shadow: inset 0 -2px 0 var(--cr-ember); }
.cr-file .field-hint { margin: 4px 0 0; }

/* sending, alert, done */
.cr-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cr-submit { position: relative; min-width: 240px; }
.cr-ring { display: none; width: 16px; height: 16px; border: 2px solid rgba(27, 31, 64, 0.3); border-top-color: var(--night); border-radius: 50%; }
.cr-submit.is-sending .cr-ring { display: inline-block; }
.cr-form.is-ready .cr-submit { box-shadow: 0 6px 24px -8px rgba(210, 162, 76, 0.85), 0 0 0 1px rgba(210, 162, 76, 0.35); }
.cr-alert {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--maroon);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fbf3f4;
  color: var(--ink);
}
.cr-form[hidden], .cr-alert[hidden], .cr-done[hidden], .cr-alert-buttons[hidden], .cr-done-buttons[hidden], .cr-done-note[hidden] { display: none; }
.cr-alert:focus { outline: none; }
.cr-alert:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cr-alert-title { margin: 0; font-weight: 600; color: var(--maroon); }
.cr-alert-copy { margin: 6px 0 0; line-height: 1.55; }
.cr-alert-copy:empty { display: none; }
.cr-alert-buttons { margin-top: 14px; }

.cr-done { display: grid; justify-items: center; gap: 14px; padding: clamp(16px, 3vw, 40px) 0; text-align: center; }
.cr-done:focus { outline: none; }
.cr-done-mark svg { display: block; width: 76px; height: 76px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cr-done-mark circle { stroke: var(--brass); stroke-width: 2; }
.cr-done-mark path { stroke: var(--brass-deep); stroke-width: 3; }
.cr-done-title { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; color: var(--fg-strong); margin: 4px 0 0; overflow-wrap: anywhere; }
:lang(hi) .cr-done-title { font-weight: 400; }
.cr-done-copy { max-width: calc(46 * 0.575em); margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--fg-soft); }
.cr-done-note {
  max-width: 52ch;
  margin: 6px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  color: var(--fg-strong);
  font-weight: 600;
  text-align: left;
}
.cr-done-buttons { justify-content: center; }
/* after a clean send the reminder is a quiet line, not a notice */
.cr-done-note.is-soft { padding: 0; border: 0; background: none; color: var(--fg-soft); font-weight: 400; text-align: center; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 959px) {
  .cr-apply-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-aside { display: contents; }
  .cr-lamp { order: 1; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 22px; padding-top: clamp(22px, 2.6vw, 34px); text-align: left; }
  .cr-lamp .cr-window-wrap { font-size: 9px; }
  .cr-form-card { order: 2; }
  .cr-alt { order: 3; }
  .cr-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .cr-intro-photo { order: 2; max-width: 340px; } /* text first on phones; the photo follows below the first screen */
  .cr-roles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .cr-file-chip { flex-wrap: wrap; row-gap: 6px; }
  .cr-file-name { flex-basis: calc(100% - 36px); }
  .cr-file-size { margin-left: 36px; }
  .cr-file-remove { margin-left: auto; }
}
@media (max-width: 719px) {
  .cr-row { grid-template-columns: minmax(0, 1fr); }
  .cr-lamp .cr-window-wrap { font-size: 7px; }
  .cr-lamp { gap: 18px; }
  .cr-lamp-title, .cr-alt-title { font-size: 1.25rem; }
  .cr-lamp-copy { font-size: 0.96rem; }
  .cr-submit { width: 100%; min-width: 0; }
  .cr-set legend { font-size: 1.35rem; }
}

/* ---------- Motion (only with no-preference) ---------- */
@keyframes cr-settle { 0%, 55% { --kb-light: #ffc72c; } }
@keyframes cr-spin { to { rotate: 1turn; } }
@keyframes cr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cr-twinkle { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.35; } }
@keyframes cr-lamp-catch { 0% { scale: 0.8; opacity: 0.3; } 22% { opacity: 0.9; } 34% { opacity: 0.4; } 100% { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .cr-live .cr-pane.is-on::after { animation: kb-switch-on 900ms ease-out both, cr-settle 1200ms linear both; }
  .cr-live .cr-pane.is-on { --kb-light: var(--brass-light); }
  .cr-live .cr-fan.is-on::after { animation: kb-switch-on 900ms ease-out both; }
  .cr-set.is-done legend::after { animation: cr-lamp-catch 700ms ease-out both; }
  .cr-mini .cr-window { scale: 0.72; transform-origin: 100% 0; transition: opacity 240ms var(--ease), scale 340ms var(--ease-rise, var(--ease)), box-shadow 0.6s var(--ease); }
  .cr-mini.is-shown .cr-window { scale: 1; }
  .cr-mini.is-pulse .cr-window::after { animation: cr-ring 800ms ease-out both; }
  .cr-submit.is-sending .cr-ring { animation: cr-spin 0.8s linear infinite; }
  .cr-lamp.is-done .cr-stars i { transition-delay: calc(var(--d, 0) * 1ms); animation: cr-twinkle 2.4s ease-in-out calc(700ms + var(--d, 0) * 1ms) 3; }
  .cr-stars i:nth-child(2) { --d: 260; }
  .cr-stars i:nth-child(3) { --d: 520; }
  .cr-stars i:nth-child(4) { --d: 780; }
  .cr-stars i:nth-child(5) { --d: 1040; }
  .cr-done:not([hidden]) .cr-done-mark circle { stroke-dasharray: 1; animation: cr-draw 500ms var(--ease-rise, ease-out) both; }
  .cr-done:not([hidden]) .cr-done-mark path { stroke-dasharray: 1; animation: cr-draw 300ms ease-out 480ms both; }
  .cr-done:not([hidden]) > :not(.cr-done-mark) { animation: cr-rise 600ms var(--ease-rise, ease-out) calc(300ms + var(--i, 0) * 90ms) both; }
  .cr-done-title { --i: 0; } .cr-done-copy { --i: 1; } .cr-done-note { --i: 2; } .cr-done-buttons { --i: 3; }
  .cr-alert:not([hidden]) { animation: cr-rise 260ms var(--ease-rise, ease-out) both; }
}
@keyframes cr-ring { from { opacity: 0.9; scale: 1; } to { opacity: 0; scale: 1.5; } }
@keyframes cr-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

@media print {
  .cr-lamp, .cr-mini, .cr-band-art, .cr-drop-face { display: none !important; }
}
