/* ══════════════════════════════════════════════════════
   Single Opportunity
══════════════════════════════════════════════════════ */

/* Hero */
.cw-single-hero { background: var(--white); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.cw-single-hero-badges { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cw-single-title { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -1.2px; line-height: 1.15; margin-bottom: 24px; max-width: 760px; }

/* Quick facts strip */
.cw-quick-facts {
  display: flex;
  gap: 0;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  scrollbar-width: none;
}
.cw-quick-facts::-webkit-scrollbar { display: none; }
.cw-qf-item {
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.cw-qf-item:last-child { border-right: none; }
.cw-qf-val   { font-size: 14px; font-weight: 700; color: var(--ink); }
.cw-qf-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-top: 3px; }

/* Body grid */
.cw-single-body { padding: 48px 0 80px; }
.cw-single-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Content sections */
.cw-content-section { margin-bottom: 40px; }
.cw-cs-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
}
.cw-cs-body { font-size: 15px; color: var(--ink-3); line-height: 1.75; }
.cw-cs-body p { margin-bottom: 14px; }
.cw-cs-note { font-size: 13px; color: var(--muted); margin-top: 12px; background: var(--bg); padding: 10px 14px; border-radius: 8px; }

/* Checklist */
.cw-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cw-checklist li {
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}
.cw-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--g); font-weight: 800; }

/* Funding grid */
.cw-funding-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.cw-fi-item {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.cw-fi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 4px; }
.cw-fi-val   { font-size: 14px; font-weight: 700; color: var(--ink); }

/* FAQ */
.cw-faq { display: flex; flex-direction: column; gap: 0; }
.cw-faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cw-faq-item:last-child { border-bottom: none; }
.cw-faq-q { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cw-faq-a { font-size: 14px; color: var(--ink-3); line-height: 1.6; }

/* Sidebar */
.cw-sidebar-sticky  { position: sticky; top: 80px; }
.cw-sb-match        { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.cw-sb-ring         { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.cw-sb-ring svg     { transform: rotate(-90deg); }
.cw-sb-ring-center  { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cw-sb-ring-pct     { font-size: 16px; font-weight: 800; }
.cw-sb-match-label  { font-size: 14px; font-weight: 700; color: var(--ink); }
.cw-sb-match-sub    { font-size: 11px; color: var(--faint); margin-top: 2px; }

.cw-sb-deadline     { padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.cw-sb-dl-label     { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 6px; }
.cw-sb-dl-val       { font-size: 20px; font-weight: 800; }

.cw-sb-share        { margin-top: 20px; }
.cw-sb-share-label  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 10px; }
.cw-sb-share-btns   { display: flex; gap: 8px; }
.cw-share-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: all .15s;
}
.cw-share-btn:hover { border-color: var(--g); color: var(--g); }

/* Mobile sticky apply bar */
.cw-mob-apply-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 300;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.cw-mob-apply-dl { font-size: 12px; font-weight: 700; color: var(--c); }

@media (max-width: 768px) {
  .cw-single-title     { font-size: 22px; }
  .cw-single-grid      { grid-template-columns: 1fr; }
  .cw-single-sidebar   { display: none; }
  .cw-mob-apply-bar    { display: flex; }
  .cw-funding-grid     { grid-template-columns: 1fr; }
  .cw-single-body      { padding: 24px 0 80px; }
}

/* ══════════════════════════════════════════════════════
   Deadline Tracker
══════════════════════════════════════════════════════ */

.cw-tracker-header { background: var(--white); padding: 52px 0 40px; border-bottom: 1px solid var(--line); text-align: center; }
.cw-tracker-title  { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -2px; line-height: 1.1; margin-bottom: 12px; }
.cw-tracker-sub    { font-size: 14px; color: var(--muted); }

/* Urgency strip */
.cw-urgency-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.cw-urgency-card  {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  text-align: center;
  border-top: 3px solid var(--line);
}
.cw-urgency-card.red   { border-top-color: #EF4444; }
.cw-urgency-card.amber { border-top-color: var(--c); }
.cw-urgency-card.green { border-top-color: var(--g); }
.cw-urgency-card.on    { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.cw-urg-num   { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.cw-urg-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* Tabs */
.cw-tracker-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cw-tracker-tab  {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: -1px;
  transition: all .15s;
}
.cw-tracker-tab.on { color: var(--ink); border-bottom-color: var(--g); }

/* Tracker two-column */
.cw-tracker-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; padding-bottom: 80px; }

/* Deadline rows */
.cw-dl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.cw-dl-row:hover { background: var(--bg); margin: 0 -20px; padding: 20px; border-radius: 12px; }

.cw-dl-day-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.cw-dl-day-num { font-size: 20px; font-weight: 800; line-height: 1; }
.cw-dl-day-mo  { font-size: 9px;  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.cw-dl-content { flex: 1; min-width: 0; }
.cw-dl-badges  { display: flex; gap: 4px; margin-bottom: 6px; }
.cw-dl-title   { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cw-dl-title a { color: inherit; text-decoration: none; }
.cw-dl-title a:hover { color: var(--g); }
.cw-dl-meta    { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

.cw-dl-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.cw-dl-save {
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s;
}
.cw-dl-save.saved { border-color: var(--g); color: var(--g); }

/* Tracker sidebar */
.cw-tracker-sidebar { position: sticky; top: 80px; }
.cw-sb-section       { margin-bottom: 28px; }
.cw-sb-section-title { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }

/* Calendar */
.cw-tracker-calendar { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; }
.cw-cal-header { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 12px; }
.cw-cal-grid   { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cw-cal-dow    { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--faint); text-align: center; padding: 4px 0; }
.cw-cal-day    {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  cursor: default;
}
.cw-cal-day.today       { background: var(--ink); color: #fff; }
.cw-cal-day.has-deadline { font-weight: 800; border-radius: 6px; }
.cw-cal-day.has-deadline.red   { background: #FEE2E2; color: #991B1B; }
.cw-cal-day.has-deadline.amber { background: #FFF7ED; color: #92400E; }
.cw-cal-day.has-deadline.green { background: var(--gp); color: var(--gd); }

.cw-cal-legend { display: flex; gap: 10px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.cw-cal-legend span { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.cw-cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cw-cal-dot.red   { background: #EF4444; }
.cw-cal-dot.amber { background: var(--c); }
.cw-cal-dot.green { background: var(--g); }

/* Tips */
.cw-tracker-tips { display: flex; flex-direction: column; gap: 0; }
.cw-tip-item     { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cw-tip-item:last-child { border-bottom: none; }
.cw-tip-num  { font-size: 12px; font-weight: 800; color: var(--g); flex-shrink: 0; min-width: 22px; margin-top: 1px; }
.cw-tip-text { font-size: 12px; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 900px) {
  .cw-tracker-grid    { grid-template-columns: 1fr; }
  .cw-tracker-sidebar { display: none; }
  .cw-urgency-strip   { grid-template-columns: repeat(2,1fr); }
  .cw-tracker-title   { font-size: 32px; }
}

/* ══════════════════════════════════════════════════════
   Search Page
══════════════════════════════════════════════════════ */

.cw-search-hero  { background: var(--white); padding: 64px 0 48px; border-bottom: 1px solid var(--line); text-align: center; }
.cw-search-title { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -1.5px; margin-bottom: 28px; }

.cw-search-form  { max-width: 680px; margin: 0 auto 20px; }
.cw-search-bar   {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color .2s;
}
.cw-search-bar:focus-within { border-color: var(--g); }
.cw-search-icon  { font-size: 18px; flex-shrink: 0; }
.cw-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}
.cw-search-input::placeholder { color: var(--faint); }
.cw-search-clear { background: none; border: none; font-size: 20px; color: var(--faint); cursor: pointer; padding: 0 4px; }
.cw-search-submit { flex-shrink: 0; }

.cw-quick-picks  { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cw-qp-label     { font-size: 12px; font-weight: 600; color: var(--muted); }
.cw-qp-pill      {
  padding: 7px 16px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.cw-qp-pill:hover { border-color: var(--g); color: var(--g); }

.cw-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.cw-results-count { font-size: 14px; color: var(--muted); font-weight: 600; }
.cw-results-count em { color: var(--ink); font-style: normal; font-weight: 800; font-size: 16px; }
.cw-results-sort  { display: flex; gap: 6px; }

/* Search highlight */
mark { background: #FEF9C3; color: var(--ink); border-radius: 2px; padding: 0 2px; }

@media (max-width: 768px) {
  .cw-search-hero  { padding: 40px 0 28px; }
  .cw-search-title { font-size: 26px; }
  .cw-search-bar   { padding: 4px 4px 4px 12px; }
  .cw-search-input { font-size: 14px; }
}
