/* College bootcamps: shared extras. Builds on styles.css and admin/admin.css (the .ad-* console). */

/* ---------- status badges (the console's .ad-badge gets a colour per status) ---------- */
.ad-badge[class*="st-"]::before { background: var(--ink); }
.ad-badge.st-pending, .ad-badge.st-requested, .ad-badge.st-reported, .ad-badge.st-draft, .ad-badge.st-registered { background: var(--paper); }
.ad-badge.st-pending::before, .ad-badge.st-requested::before, .ad-badge.st-reported::before, .ad-badge.st-draft::before, .ad-badge.st-registered::before { background: transparent; border: 1.5px solid var(--ink); }
.ad-badge.st-approved, .ad-badge.st-scheduled, .ad-badge.st-open, .ad-badge.st-shortlisted, .ad-badge.st-issued { border-color: var(--orange); }
.ad-badge.st-approved::before, .ad-badge.st-scheduled::before, .ad-badge.st-open::before, .ad-badge.st-shortlisted::before, .ad-badge.st-issued::before { background: var(--orange); border: 0; }
.ad-badge.st-in_progress, .ad-badge.st-finalist { background: var(--orange); border-color: var(--orange); }
.ad-badge.st-in_progress::before, .ad-badge.st-finalist::before { background: var(--ink); animation: blink 1s steps(2) infinite; }
.ad-badge.st-completed, .ad-badge.st-received, .ad-badge.st-winner, .ad-badge.st-runner_up { background: var(--ink); color: var(--paper); }
.ad-badge.st-completed::before, .ad-badge.st-received::before, .ad-badge.st-winner::before, .ad-badge.st-runner_up::before { background: #5CE08E; border: 0; }
.ad-badge.st-cancelled, .ad-badge.st-rejected, .ad-badge.st-suspended, .ad-badge.st-revoked, .ad-badge.st-closed, .ad-badge.st-refunded { color: var(--mute); border-color: rgba(15, 15, 13, 0.35); }
.ad-badge.st-cancelled::before, .ad-badge.st-rejected::before, .ad-badge.st-suspended::before, .ad-badge.st-revoked::before, .ad-badge.st-closed::before, .ad-badge.st-refunded::before { background: var(--mute); border: 0; }
.ad-dr-head .ad-badge[class*="st-"] { color: var(--ink); background: var(--paper); }

/* ---------- forms (inside drawers and panels) ---------- */
.bf { display: grid; gap: 14px; }
.bf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bf label { display: block; font-size: 12.5px; font-weight: 500; color: var(--mute); margin-bottom: 5px; font-family: var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.bf label em { color: var(--orange); font-style: normal; }
.bf input, .bf select, .bf textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--ink); background: var(--paper); font: inherit; font-size: 14.5px; color: var(--ink); border-radius: 4px; }
.bf input:focus, .bf select:focus, .bf textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 74, 28, 0.18); }
.bf textarea { min-height: 84px; resize: vertical; }
.bf-help { font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.bf-msg { font-size: 13.5px; min-height: 1.2em; }
.bf-msg.err { color: #C4300E; }
.bf-msg.ok { color: #1F7A46; }
.bf-sum { padding: 14px 16px; background: rgba(15, 15, 13, 0.05); border-left: 3px solid var(--orange); font-size: 14px; line-height: 1.5; }
.bf-sum b { font-weight: 600; }
.ad-chk { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ad-chk input { width: 18px; height: 18px; accent-color: var(--orange); }
.ad-dr-body .ad-act { margin-top: 4px; }

/* ---------- meters, cards, small blocks ---------- */
.bf-meter { height: 8px; background: rgba(15, 15, 13, 0.12); border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.bf-meter i { display: block; height: 100%; background: var(--orange); width: 0; transition: width 0.8s var(--ease); }
.bf-meter-l { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.bf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bf-card { padding: 18px 20px; border: 1px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; gap: 8px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.bf-card.click { cursor: pointer; }
.bf-card.click:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.bf-card h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.bf-card p { font-size: 13.5px; color: #3A3935; line-height: 1.45; }
.bf-card .ad-meta { white-space: normal; }
.bf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bf-kind { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.bf-status { padding: 14px 18px; border: 1px solid var(--ink); margin-bottom: 26px; display: flex; gap: 14px; align-items: flex-start; background: var(--paper); }
.bf-status.warn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bf-status.warn b { color: var(--orange); }
.bf-status b { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; flex: none; margin-top: 3px; }
.bf-status p { font-size: 14px; line-height: 1.5; }
.bf-steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: bs; }
.bf-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.3); font-size: 14.5px; }
.bf-steps li::before { counter-increment: bs; content: counter(bs, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--orange); }
.bf-steps li.done { color: var(--mute); }
.bf-steps li.done b { text-decoration: line-through; text-decoration-color: rgba(15, 15, 13, 0.4); }
.bf-steps li b { font-weight: 500; display: block; }
.bf-steps li small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.ad-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-right { text-align: right; }
.ad-table td .ad-btn.small { margin-right: 6px; }

/* ---------- public bootcamp page ---------- */
.bc-hero { padding: clamp(36px, 5vw, 76px) 0 clamp(40px, 5vw, 72px); }
.bc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 84px); align-items: end; }
.bc-hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.055em; margin: 14px 0 22px; }
.bc-hero h1 em { color: var(--orange); }
.bc-hero p.lead { max-width: 33em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: #3A3935; line-height: 1.5; }
.bc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bc-facts { border: 1px solid var(--ink); background: var(--paper); }
.bc-facts div { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-top: 1px solid rgba(15, 15, 13, 0.3); align-items: baseline; }
.bc-facts div:first-child { border-top: 0; }
.bc-facts b { font-family: var(--f-mono); font-size: 12px; color: var(--orange); font-weight: 500; }
.bc-facts span { font-size: 15px; line-height: 1.4; }
.bc-sec { padding: clamp(52px, 6.5vw, 100px) 0; border-top: 1px solid var(--ink); }
.bc-sec.ink { background: var(--ink); color: var(--paper); }
.bc-sec .label i { color: var(--orange); }
.bc-sec h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; margin: 12px 0 clamp(24px, 3vw, 40px); max-width: 16em; }
.bc-progs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0; border: 1px solid var(--ink); background: var(--paper); }
.bc-prog { padding: 26px 26px 24px; border-left: 1px solid rgba(15, 15, 13, 0.3); display: flex; flex-direction: column; gap: 12px; }
.bc-prog:first-child { border-left: 0; }
.bc-prog .days { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.bc-prog h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.bc-prog p { color: #3A3935; font-size: 15px; line-height: 1.5; }
.bc-prog ul { list-style: none; margin-top: 4px; border-top: 1px solid rgba(15, 15, 13, 0.3); }
.bc-prog li { padding: 9px 0 9px 22px; border-bottom: 1px solid rgba(15, 15, 13, 0.2); font-size: 14px; position: relative; }
.bc-prog li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; background: var(--orange); }
.bc-prog .fee { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--mute); font-family: var(--f-mono); letter-spacing: 0.03em; }
.bc-prog .fee b { color: var(--ink); font-weight: 500; font-size: 15px; font-family: var(--f-sans); letter-spacing: 0; }
.bc-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--paper); }
.bc-flow div { padding: 22px 18px 6px 0; border-left: 1px solid rgba(238, 233, 222, 0.22); padding-left: 18px; }
.bc-flow div:first-child { border-left: 0; padding-left: 0; }
.bc-flow b { font-family: var(--f-mono); font-size: 11px; color: var(--orange); font-weight: 500; letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.bc-flow strong { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; display: block; margin-bottom: 4px; }
.bc-flow span { font-size: 13.5px; color: var(--ink-dim); line-height: 1.45; display: block; }
.bc-events { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.bc-event { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px 26px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.35); }
.bc-event .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.bc-event h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.bc-event p { font-size: 14px; color: #3A3935; margin-top: 4px; max-width: 46em; }
.bc-empty { padding: 28px; border: 1px dashed rgba(15, 15, 13, 0.4); color: var(--mute); text-align: center; }
.bc-final { padding: clamp(60px, 8vw, 120px) 0; }
.bc-final h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 12em; }

/* ---------- college login: the registration form ---------- */
.au-reg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.au-reg .cf-f { margin-top: 14px; }
.au-reg .wide { grid-column: 1 / -1; }
.au-reg-note { grid-column: 1 / -1; margin-top: 14px; font-size: 13px; color: var(--mute); line-height: 1.5; }

/* ---------- certificate (screen and print) ---------- */
.ct-body { background: #E3DDCF; min-height: 100svh; margin: 0; }
.ct-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 26px 0 60px; }
.ct-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.ct-bar .ad-btn:not(.solid) { background: var(--paper); }
.ct-bar .ad-btn:not(.solid):hover { background: var(--ink); }
.ct-status { padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--ink); background: var(--paper); font-size: 15px; display: flex; gap: 12px; align-items: center; }
.ct-status.bad { background: #C4300E; color: #fff; border-color: #C4300E; }
.ct-status b { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ct-sheet { position: relative; aspect-ratio: 297 / 210; background: var(--paper); border: 1px solid var(--ink); box-shadow: 10px 10px 0 rgba(15, 15, 13, 0.85); overflow: hidden; container-type: inline-size; }
.ct-frame { position: absolute; inset: 3.2cqw; border: 0.18cqw solid var(--ink); }
.ct-frame::before { content: ""; position: absolute; inset: 0.7cqw; border: 0.08cqw solid rgba(15, 15, 13, 0.5); }
.ct-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 15, 13, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 15, 13, 0.04) 1px, transparent 1px); background-size: 3cqw 3cqw; pointer-events: none; }
.ct-in { position: absolute; inset: 6.4cqw 8cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ct-brand { display: flex; align-items: center; gap: 1.4cqw; }
.ct-brand img { height: 5.4cqw; width: auto; }
.ct-brand b { display: block; font-size: 2.1cqw; letter-spacing: 0.34em; font-weight: 600; text-align: left; }
.ct-brand small { display: block; font-family: var(--f-mono); font-size: 0.85cqw; letter-spacing: 0.3em; text-transform: uppercase; color: var(--orange); text-align: left; margin-top: 0.4cqw; }
.ct-kicker { margin-top: 3.6cqw; font-family: var(--f-mono); font-size: 1.05cqw; letter-spacing: 0.4em; text-transform: uppercase; color: var(--mute); }
.ct-title { font-size: 5.6cqw; font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin-top: 1cqw; }
.ct-title em { color: var(--orange); font-style: normal; }
.ct-line { font-size: 1.5cqw; color: #3A3935; margin-top: 2.2cqw; }
.ct-name { font-size: 4.2cqw; font-weight: 500; letter-spacing: -0.035em; margin: 0.8cqw 0 0; padding: 0 3cqw 0.8cqw; border-bottom: 0.14cqw solid var(--ink); }
.ct-text { font-size: 1.55cqw; line-height: 1.55; color: #3A3935; margin-top: 1.8cqw; max-width: 60cqw; }
.ct-text b { color: var(--ink); font-weight: 600; }
.ct-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 3cqw; align-items: end; text-align: left; }
.ct-foot div { font-family: var(--f-mono); font-size: 0.95cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); line-height: 1.7; }
.ct-foot div b { display: block; font-size: 1.2cqw; color: var(--ink); font-weight: 500; letter-spacing: 0.1em; }
.ct-foot .r { text-align: right; }
.ct-sign { border-top: 0.12cqw solid var(--ink); padding-top: 0.7cqw; min-width: 18cqw; text-align: center; font-family: var(--f-mono); font-size: 0.95cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.ct-sign b { display: block; color: var(--ink); font-weight: 500; font-size: 1.15cqw; letter-spacing: 0.06em; }
.ct-seal { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; border: 0.2cqw solid var(--orange); display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 0.8cqw; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); line-height: 1.5; position: relative; }
.ct-seal::before { content: ""; position: absolute; inset: 0.55cqw; border-radius: 50%; border: 0.08cqw dashed var(--orange); }
.ct-revoked { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12cqw; font-weight: 700; letter-spacing: 0.1em; color: rgba(196, 48, 14, 0.2); transform: rotate(-18deg); pointer-events: none; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .ct-body { background: #fff; }
  .ct-wrap { width: 100%; padding: 0; margin: 0; }
  .ct-bar, .ct-status, .no-print { display: none !important; }
  .ct-sheet { border: 0; box-shadow: none; width: 297mm; height: 210mm; aspect-ratio: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 860px) {
  .bf-row, .au-reg { grid-template-columns: 1fr; }
  .bc-hero-grid { grid-template-columns: 1fr; }
  .bc-flow { grid-template-columns: 1fr 1fr; }
  .bc-flow div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .bc-event { grid-template-columns: 1fr; }
  .bc-prog { border-left: 0; border-top: 1px solid rgba(15, 15, 13, 0.3); }
  .bc-prog:first-child { border-top: 0; }
}
