/* Additions of the new site (web/) on top of site.css + geo.css, which are kept as in the first site. */
:root { --font: var(--font-jakarta), "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.lang a, .lang span { font: 700 12px/1 var(--font); color: var(--muted); padding: 7px 10px; border-radius: 999px; text-decoration: none; }
.lang span[aria-current] { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--ink); }
/* Casting page: shown when the casting closed after the last build (site.js checks it). */
.closed-note { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); font-weight: 700; }
html.casting-closed .closed-note { display: block; }
html.casting-closed .apply-btn { display: none; }
.asks { margin: 0; padding-left: 20px; }
.asks li { margin: 6px 0; }
.types-nav { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--bg2); border-radius: 18px; padding: 20px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.steps b { display: block; margin-bottom: 4px; }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }

/* Casting page: apply panel for signed-in talent (src/lib/app/apply-panel.tsx) */
html.casting-closed .apply-box { display: none; }
.apply-roles { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.apply-roles li { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.apply-role-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #efeff3; color: #3a3a40; }
.score.high { background: var(--accent); color: #fff; }
.score.low { color: var(--muted); }
.apply-panel .btn { width: 100%; }
.apply-panel .btn.contacted { background: var(--success); color: #fff; }
.apply-panel .spin, .dialog .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; margin-right: 8px; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.apply-status { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.status { font-size: 14px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--bg2); }
.status.shortlisted { background: #fff4d6; }
.status.selected { background: var(--success-soft); color: var(--success); }
.status.rejected { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-dark); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; }
.small-text { font-size: 14px; }
.form-error { color: #c0182b; font-size: 14px; }
.dialog-back { position: fixed; inset: 0; z-index: 100; background: rgba(18,18,20,.5); display: grid; place-items: center; padding: 16px; }
.dialog { background: #fff; border-radius: 22px; padding: 24px; width: min(480px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { font-size: 21px; }
.dialog .stack { display: flex; flex-direction: column; gap: 10px; }
.dialog ul { margin: 0; padding-left: 20px; }
.dialog textarea { width: 100%; font: 400 14px var(--font); border: 1.5px solid var(--border); border-radius: 12px; padding: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions .btn { flex: 1; min-width: 140px; }
.notice { background: var(--accent-soft); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.sk { background: linear-gradient(90deg, #ececf0 0, #f6f6f8 50%, #ececf0 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* /castings for signed-in talent (feed-island.tsx): the public page hides before the first paint */
.feed-wait { display: none; }
html[data-feed] .public { display: none; }
html[data-feed] .feed-wait { display: block; min-height: 100vh; background: #f6f6f8; }
html[data-feed] .feed-wait:has(~ .app) { display: none; }
.apply-extra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.apply-extra .link-btn, .apply-extra a { font-size: 14px; }
.danger-link { color: #c0182b; }
/* Report dialog on the public casting page (app.css isn't loaded there) */
.dialog .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog .opt { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px var(--font); cursor: pointer; color: var(--ink); }
.dialog .opt[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
