/* Funding calendar: one filter bar on top, three views below (deadlines list, month grid, all programs). */
.castv-fund{display:flex;flex-direction:column;gap:20px;font-size:15px;line-height:1.45}
.castv-fund .castv-tb-top,.castv-fund .castv-tb-head{margin-bottom:0}
.castv-fund .stats{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:14px;font-variant-numeric:tabular-nums}
.castv-fund .stats b{font-size:20px;font-weight:900;margin-right:4px;color:var(--tb-ink)!important}
.castv-fund .stats span{color:var(--tb-muted)!important}

.castv-fund .filters{display:grid;gap:10px;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:14px;background:var(--tb-surface);border:1px solid var(--tb-line);border-radius:10px}
.castv-fund .filters .search{grid-column:1/-1}
.castv-fund .filters label{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;font-size:12px;font-weight:700;color:var(--tb-muted)!important}
.castv-fund .filters :is(input[type="search"],select){width:100%;min-width:0;height:auto;padding:8px 10px;border:1px solid var(--tb-line)!important;border-radius:7px;background:var(--tb-ground)!important;color:var(--tb-ink)!important;font:inherit;font-size:14px;box-shadow:none}
.castv-fund .filters option{background:#191919;color:#bebe9d}
.castv-fund .filters .check{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:8px;font-size:14px;color:var(--tb-ink)!important}
.castv-fund .filters .check input{width:16px;height:16px;margin:0;accent-color:var(--tb-red)}
@media(max-width:860px){.castv-fund .filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.castv-fund .filters{grid-template-columns:1fr}}

.castv-fund .bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.castv-fund .tabs{display:flex;gap:4px;padding:4px;border-radius:9px;background:rgba(190,190,157,.1)}
.castv-fund .tabs a{padding:7px 14px;border-radius:6px;font-size:14px;font-weight:700;text-decoration:none;color:var(--tb-muted)!important}
.castv-fund.is-live .tabs a[aria-current="true"]{background:var(--tb-red);color:var(--tb-ink)!important}
.castv-fund .bar .right{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:13px;font-variant-numeric:tabular-nums}
.castv-fund .bar .count{color:var(--tb-muted)!important}
.castv-fund button:not(.ev),.castv-fund .bar .ics{padding:7px 12px;border:1px solid var(--tb-line)!important;border-radius:7px;background:var(--tb-surface)!important;color:var(--tb-ink)!important;font:inherit;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;line-height:1.3}
.castv-fund button:not(.ev):hover,.castv-fund .bar .ics:hover{border-color:var(--tb-red)!important}

.castv-fund .views{display:flex;flex-direction:column;gap:28px}
.castv-fund .view-title{margin:0;font-size:1.35rem}
.castv-fund.is-live .view-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.castv-fund .month-head{margin:18px 0 8px;font-size:20px;font-weight:700}
.castv-fund .month-head small{margin-left:8px;font-size:13px;font-weight:400;color:var(--tb-muted)!important}
.castv-fund .list{display:flex;flex-direction:column;gap:8px}
.castv-fund .item{border:1px solid var(--tb-line);border-radius:10px;background:var(--tb-surface)}
.castv-fund .item[open]{border-color:var(--tb-red)}
.castv-fund .item summary{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 14px;list-style:none;cursor:pointer}
.castv-fund .item summary::-webkit-details-marker{display:none}
.castv-fund .date{padding-right:12px;border-right:1px solid var(--tb-line);text-align:center;font-variant-numeric:tabular-nums}
.castv-fund .date .d{font-size:24px;font-weight:700;line-height:1}
.castv-fund .date .m{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--tb-muted)!important}
.castv-fund .date.none .d{font-size:13px;line-height:1.2;color:var(--tb-muted)!important}
.castv-fund .title{font-weight:700}
.castv-fund .sub,.castv-fund .sub .kind{font-size:13px;color:var(--tb-muted)!important}
.castv-fund .side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.castv-fund .amt{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--tb-muted)!important}
.castv-fund .pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.castv-fund .pill.soon{background:var(--tb-red);color:var(--tb-ink)!important}
.castv-fund .pill.dated{background:var(--tb-red-soft);color:var(--tb-ink)!important}
.castv-fund .pill.rolling{background:rgba(159,197,138,.14);color:#9fc58a!important}
.castv-fund .pill:is(.closed,.unknown){background:rgba(190,190,157,.1);color:var(--tb-muted)!important}
.castv-fund .body{display:flex;flex-direction:column;gap:8px;padding:0 14px 14px 92px}
.castv-fund .body p{max-width:65ch;margin:0}
.castv-fund .chips{display:flex;flex-wrap:wrap;gap:6px}
.castv-fund .chip{padding:1px 7px;border:1px solid var(--tb-line);border-radius:5px;font-size:12px;color:var(--tb-muted)!important}
.castv-fund .meta{font-size:13px;color:var(--tb-muted)!important}
.castv-fund .meta .unconfirmed{color:var(--tb-ink)!important}
.castv-fund .body a.out{font-weight:700;color:#e2706c!important}
@media(max-width:560px){
 .castv-fund .item summary{grid-template-columns:56px minmax(0,1fr)}
 .castv-fund .side{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start}
 .castv-fund .body{padding-left:14px}
}

.castv-fund .cal-nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:10px}
.castv-fund .cal-title{min-width:190px;margin:0;font-size:22px}
.castv-fund .cal-scroll{overflow-x:auto}
.castv-fund .cal{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:1px;min-width:780px;overflow:hidden;border:1px solid var(--tb-line);border-radius:10px;background:var(--tb-line)}
.castv-fund .cal .dow{padding:6px 8px;background:var(--tb-ground);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--tb-muted)!important}
.castv-fund .cal .day{display:flex;flex-direction:column;gap:4px;min-height:96px;padding:6px;background:var(--tb-surface)}
.castv-fund .cal .day.out{background:var(--tb-ground)}
.castv-fund .cal .num{display:grid;place-items:center;width:22px;height:22px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--tb-muted)!important}
.castv-fund .cal .day.today .num{border-radius:999px;background:var(--tb-red);font-weight:700;color:var(--tb-ink)!important}
.castv-fund .cal .ev{display:block;width:100%;margin:0;padding:2px 5px;border:0;border-radius:4px;background:var(--tb-red-soft);color:var(--tb-ink)!important;font:inherit;font-size:12px;font-weight:700;line-height:1.25;text-align:left;text-transform:none;letter-spacing:0;cursor:pointer}
.castv-fund .cal .ev:is(:hover,:focus-visible){outline:2px solid var(--tb-red)}
.castv-fund .cal-detail{margin-top:12px}
.castv-fund .empty{padding:28px;border:1px dashed var(--tb-line);border-radius:10px;background:var(--tb-surface);text-align:center;color:var(--tb-muted)!important}

.castv-fund .about{padding-top:20px;border-top:1px solid var(--tb-line)}
.castv-fund .about-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px 28px}
.castv-fund .about p{font-size:14px;color:var(--tb-muted)!important}
.castv-fund .about .cta{margin:8px 0 0;color:var(--tb-ink)!important;font-weight:700}
@media(prefers-reduced-motion:no-preference){.castv-fund .item{transition:border-color .15s}}
