/* ---------------------------------------------------------------------
   City casting-call pages.

   Built on the castme-v2 tokens so it sits beside the Industry Hub rather
   than introducing another look. What it deliberately does NOT reuse is
   blog-article-v2: this is a list people scan for work, not an article
   they read top to bottom, and the blog template made it read like a post.

   The thing a performer decides on first is whether a call is paid and
   whether they can physically get to it, so pay and place are the loudest
   things on a card after the title.
   ------------------------------------------------------------------ */

.cc-page { background: var(--cm-paper); color: var(--cm-ink); }

/* ---- Hero ---------------------------------------------------------- */
.cc-hero {
  position: relative;
  background: var(--cm-night);
  color: #fff;
  padding: 54px 0 46px;
  overflow: hidden;
}
.cc-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% 55%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(46, 204, 113, .22), transparent 70%);
  pointer-events: none;
}
.cc-hero-inner {
  position: relative;
  width: min(var(--cm-container), calc(100% - 44px));
  margin: 0 auto;
}
.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--cm-green);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.cc-hero h1 {
  margin: 18px 0 10px;
  font-family: var(--cm-heading);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 16ch;
}
.cc-hero h1 em { font-style: normal; color: var(--cm-green); }
.cc-hero p {
  margin: 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, .8);
  font-size: 1.02rem;
  line-height: 1.55;
}
.cc-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.cc-stat strong {
  display: block;
  font-family: var(--cm-heading);
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cc-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---- Layout -------------------------------------------------------- */
.cc-wrap {
  width: min(var(--cm-container), calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 60px;
}
.cc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 0 4px;
}
.cc-section-head h2 {
  margin: 0;
  font-family: var(--cm-heading);
  font-size: 1.42rem;
  line-height: 1.2;
}
.cc-note {
  margin: 0 0 20px;
  max-width: 68ch;
  color: var(--cm-ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}

/* ---- Role cards ---------------------------------------------------- */
.cc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.cc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.cc-card:hover,
.cc-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--cm-line-strong);
  box-shadow: var(--cm-shadow);
}
.cc-card h3 {
  margin: 0;
  font-family: var(--cm-heading);
  font-size: 1.02rem;
  line-height: 1.3;
  text-wrap: balance;
}
/* The whole card is the target; the link keeps the accessible name. */
.cc-card h3 a { color: var(--cm-ink); text-decoration: none; }
.cc-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cc-card h3 a:focus-visible { outline: none; }
.cc-card:focus-within { outline: 2px solid var(--cm-green-dark); outline-offset: 2px; }

.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.cc-chip-paid    { background: rgba(46, 204, 113, .16); color: #0b6b39; }
.cc-chip-unpaid  { background: rgba(232, 93, 90, .14);  color: #a32f2c; }
.cc-chip-unknown { background: var(--cm-mist);          color: var(--cm-ink-soft); }

.cc-facts { margin: 0; display: grid; gap: 5px; font-size: .84rem; color: var(--cm-ink-soft); }
.cc-facts div { display: flex; gap: 8px; align-items: baseline; }
.cc-facts dt {
  flex: 0 0 4.6rem;
  color: var(--cm-ink);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.cc-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cc-source {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--cm-line);
  font-size: .76rem;
  color: var(--cm-ink-soft);
}

/* ---- Quieter list for the arts jobs -------------------------------- */
.cc-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  background: var(--cm-line); border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line); }
.cc-jobs li { background: var(--cm-paper); padding: 12px 4px; display: flex;
  flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 18px; }
.cc-jobs a { flex: 1 1 18rem; color: var(--cm-ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; }
.cc-jobs a:hover, .cc-jobs a:focus-visible { border-bottom-color: var(--cm-line-strong); }
.cc-jobs span { flex: 1 1 12rem; font-size: .8rem; color: var(--cm-ink-soft); overflow-wrap: anywhere; }

/* ---- Editorial below the listings ---------------------------------- */
.cc-guide { margin-top: 52px; padding-top: 34px; border-top: 2px solid var(--cm-line); }
.cc-guide-inner { max-width: 68ch; }
.cc-guide h2 { font-family: var(--cm-heading); font-size: 1.42rem; margin: 0 0 14px; }
.cc-guide h3 { font-family: var(--cm-heading); font-size: 1.04rem; margin: 26px 0 8px; }
.cc-guide p  { margin: 0 0 14px; line-height: 1.65; color: var(--cm-ink); }
.cc-guide a  { color: var(--cm-green-dark); }

.cc-faq { margin-top: 30px; display: grid; gap: 10px; max-width: 68ch; }
.cc-faq details {
  background: var(--cm-white);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  padding: 13px 16px;
}
.cc-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--cm-heading);
  font-size: .96rem;
  list-style: none;
}
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: "+"; float: right; color: var(--cm-green-dark); font-size: 1.2rem; line-height: 1; }
.cc-faq details[open] summary::after { content: "\2212"; }
.cc-faq p { margin: 10px 0 0; line-height: 1.6; color: var(--cm-ink-soft); font-size: .92rem; }

.cc-cta {
  margin-top: 44px;
  padding: 26px;
  background: var(--cm-surface);
  border-radius: var(--cm-radius);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc-cta p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.82); }
.cc-cta strong { display: block; font-family: var(--cm-heading); font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.cc-cta a {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: var(--cm-radius);
  background: var(--cm-green);
  color: #08251a;
  font-weight: 700;
  text-decoration: none;
}
.cc-cta a:hover { background: #46d884; }

.cc-empty {
  padding: 28px;
  background: var(--cm-white);
  border: 1px dashed var(--cm-line-strong);
  border-radius: var(--cm-radius);
  max-width: 62ch;
}

@media (max-width: 640px) {
  .cc-hero { padding: 38px 0 32px; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc-facts dt { flex-basis: 4rem; }
}
