/* ==========================================================================
   NYIC theme — mobile-first, layered on top of Bootstrap 5.
   ========================================================================== */

:root {
    /* NYIC brand palette — sampled from the official logo */
    --nyic-plum: #2e0a30;          /* wordmark / primary */
    --nyic-plum-dark: #1f061f;
    --nyic-navy: #0c1f6b;
    --nyic-coral: #fb7a5c;         /* CTA / accent (their donate-button color) */
    --nyic-coral-dark: #e85f40;
    --nyic-lavender: #c9c3f0;

    --nyic-primary: var(--nyic-plum);
    --nyic-accent: var(--nyic-coral);
    --nyic-bg: #f7f6fa;
    --nyic-card: #ffffff;
    --nyic-border: #e7e3ee;
    --nyic-text: #1f1426;
    --nyic-muted: #6b6275;
    --nyic-radius: 12px;
    --nyic-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --bs-primary: var(--nyic-coral);
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--nyic-bg);
    color: var(--nyic-text);
    -webkit-text-size-adjust: 100%;
}

/* Bootstrap button override — .btn-primary uses the brand coral CTA color */
.btn-primary {
    --bs-btn-bg: var(--nyic-coral);
    --bs-btn-border-color: var(--nyic-coral);
    --bs-btn-hover-bg: var(--nyic-coral-dark);
    --bs-btn-hover-border-color: var(--nyic-coral-dark);
    --bs-btn-active-bg: var(--nyic-coral-dark);
    --bs-btn-active-border-color: var(--nyic-coral-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--nyic-plum);
    --bs-btn-border-color: var(--nyic-plum);
    --bs-btn-hover-bg: var(--nyic-plum);
    --bs-btn-hover-border-color: var(--nyic-plum);
    --bs-btn-active-bg: var(--nyic-plum);
}

/* ----------------------------- Topbar ----------------------------------- */
.nyic-topbar {
    background: #fff;
    color: var(--nyic-plum);
    border-bottom: 1px solid var(--nyic-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
}
.nyic-topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.nyic-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.nyic-brand__logo {
    height: 34px;
    width: auto;
    display: block;
}
.nyic-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nyic-navlink {
    color: var(--nyic-plum);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.4rem;
}
.nyic-navlink:hover {
    color: var(--nyic-coral-dark);
}
.nyic-topbar__user {
    color: var(--nyic-muted);
    font-size: 0.85rem;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Hide the email + secondary links on very small screens to keep the
   "Sign in" / "Sign out" action reachable. */
@media (max-width: 480px) {
    .nyic-topbar__user { display: none; }
    .nyic-navlink { display: none; }
}

/* ----------------------------- Layout ----------------------------------- */
.nyic-main {
    flex: 1 0 auto;
    width: 100%;
    overflow-x: clip;   /* contain full-bleed sections (e.g. landing hero) */
}
.nyic-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* ----------------------------- Cards ------------------------------------ */
.nyic-card {
    background: var(--nyic-card);
    border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius);
    box-shadow: var(--nyic-shadow);
    padding: 1.25rem;
}

.nyic-auth-card {
    background: var(--nyic-card);
    border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius);
    box-shadow: var(--nyic-shadow);
    padding: 1.5rem;
    max-width: 420px;
    margin: 2rem auto;
}
.nyic-auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.nyic-auth-links a {
    color: var(--nyic-accent);
    text-decoration: none;
}
.nyic-auth-links a:hover {
    text-decoration: underline;
}

/* ----------------------------- Hero ------------------------------------- */
.nyic-hero {
    text-align: center;
    max-width: 680px;
    margin: 2.5rem auto;
}
.nyic-hero__title {
    font-size: clamp(1.9rem, 6vw, 2.75rem);
    font-weight: 700;
    color: var(--nyic-primary);
    margin-bottom: 0.75rem;
}
.nyic-hero__lead {
    font-size: 1.05rem;
    color: var(--nyic-muted);
    margin-bottom: 1.5rem;
}
.nyic-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ----------------------------- Footer ----------------------------------- */
.nyic-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--nyic-border);
    background: #fff;
    color: var(--nyic-muted);
    padding-bottom: env(safe-area-inset-bottom);
}
.nyic-footer .nyic-container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.nyic-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nyic-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.nyic-footer__links a {
    color: var(--nyic-plum);
    text-decoration: none;
    font-size: 0.9rem;
}
.nyic-footer__links a:hover { color: var(--nyic-coral-dark); }

/* ========================================================================
   PUBLIC navbar (Bootstrap navbar overrides) + shared building blocks
   ======================================================================== */
.nyic-navbar { padding: 0; width: 100%; }
.nyic-navbar .nyic-topbar__inner { width: 100%; flex-wrap: wrap; }
.nyic-toggler { border: none; }
.nyic-toggler:focus { box-shadow: none; }
.nyic-mainnav { gap: 0.25rem; }
.nyic-mainnav .nav-link { font-weight: 500; color: var(--nyic-plum); }
.nyic-mainnav .nav-link:hover { color: var(--nyic-coral-dark); }
@media (max-width: 991px) {
    .nyic-topbar__actions { margin-top: 0.5rem; flex-wrap: wrap; }
    .nyic-topbar__user { display: inline; }
}

.nyic-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--nyic-coral-dark);
    margin-bottom: 0.5rem;
}
.nyic-eyebrow--light { color: rgba(255,255,255,0.85); }

.nyic-page-head { margin: 0.5rem 0 1.5rem; }
.nyic-page-head__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--nyic-plum); margin: 0; }
.nyic-page-head__sub { color: var(--nyic-muted); margin: 0.4rem 0 0; max-width: 60ch; }

.nyic-section { margin: 2.5rem 0; }
.nyic-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.nyic-section__title { font-size: 1.3rem; font-weight: 700; color: var(--nyic-plum); margin-bottom: 1rem; }
.nyic-section__link { color: var(--nyic-coral-dark); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nyic-back { display: inline-block; color: var(--nyic-muted); text-decoration: none; margin-bottom: 1rem; font-size: 0.9rem; }
.nyic-back:hover { color: var(--nyic-coral-dark); }

.nyic-empty { text-align: center; color: var(--nyic-muted); padding: 2.5rem 1rem; }
.nyic-about p { max-width: 70ch; color: var(--nyic-muted); }

/* ----- Hero ----- */
.nyic-hero { text-align: center; max-width: 720px; margin: 2.5rem auto 1rem; }
.nyic-hero__title { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; color: var(--nyic-plum); line-height: 1.05; margin-bottom: 1rem; }
.nyic-hero__lead { font-size: 1.1rem; color: var(--nyic-muted); margin-bottom: 1.5rem; }
.nyic-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.nyic-hero__stat { margin-top: 1rem; color: var(--nyic-muted); font-size: 0.9rem; }

/* ----- Image hero (full-bleed banner with overlay) ----- */
.nyic-hero2 {
    width: 100vw;
    margin-left: calc(50% - 50vw);   /* break out of the centered container */
    margin-top: -1.25rem;            /* meet the navbar (cancels container top padding) */
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    height: 440px;            /* fixed — banner stays the same size on every screen */
}
.nyic-hero2__inner {
    width: 100%; max-width: 1080px; margin: 0 auto;
    padding: 2.5rem 1.5rem; color: #fff;
}
.nyic-hero2__eyebrow {
    display: block; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 0.6rem;
}
.nyic-hero2__title {
    font-size: clamp(2rem, 5.5vw, 3.3rem); font-weight: 800; line-height: 1.05;
    color: #fff; margin-bottom: 0.9rem; max-width: 18ch;
}
.nyic-hero2__lead { font-size: 1.08rem; color: rgba(255,255,255,0.92); max-width: 46ch; margin-bottom: 1.5rem; }
.nyic-hero2__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nyic-hero2__stat { margin-top: 1rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* Lavender button (brand secondary) */
.btn-lavender {
    --bs-btn-bg: var(--nyic-lavender);
    --bs-btn-border-color: var(--nyic-lavender);
    --bs-btn-color: var(--nyic-plum);
    --bs-btn-hover-bg: #b6ade9;
    --bs-btn-hover-border-color: #b6ade9;
    --bs-btn-hover-color: var(--nyic-plum);
    --bs-btn-active-bg: #b6ade9;
    --bs-btn-active-color: var(--nyic-plum);
    font-weight: 600;
}

/* ----- Card grid + story cards ----- */
.nyic-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}
.nyic-story-card {
    display: flex;
    flex-direction: column;
    background: var(--nyic-card);
    border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--nyic-shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.nyic-story-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(46,10,48,0.12); }
.nyic-story-card__media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--nyic-lavender), #efeaff);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.nyic-story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nyic-story-card__placeholder { font-weight: 800; letter-spacing: 0.1em; color: var(--nyic-plum); opacity: 0.5; font-size: 1.5rem; }
.nyic-story-card__badge { background: rgba(46,10,48,0.85); color: #fff; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.85rem; }
.nyic-story-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.nyic-story-card__theme { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--nyic-coral-dark); }
.nyic-story-card__title { font-size: 1.1rem; font-weight: 700; color: var(--nyic-plum); margin: 0; }
.nyic-story-card__excerpt { color: var(--nyic-muted); font-size: 0.92rem; margin: 0; flex: 1; }
.nyic-story-card__meta { color: var(--nyic-muted); font-size: 0.85rem; display: flex; gap: 0.3rem; }

/* ----- Theme chips ----- */
.nyic-theme-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nyic-chip {
    --chip: var(--nyic-plum);
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip) 12%, white);
    color: var(--chip);
    border: 1px solid color-mix(in srgb, var(--chip) 30%, white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.nyic-chip:hover { background: color-mix(in srgb, var(--chip) 22%, white); }

/* ----- Filters / pagination ----- */
.nyic-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.nyic-filters .form-control, .nyic-filters .form-select { flex: 1 1 160px; min-width: 140px; }
.nyic-filters .btn { flex: 0 0 auto; }
.nyic-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.nyic-pagination__info { color: var(--nyic-muted); font-size: 0.9rem; }

/* ----- Campaign banner / hero ----- */
.nyic-campaign-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--nyic-plum), var(--nyic-navy));
    color: #fff; padding: 1.25rem 1.5rem; border-radius: var(--nyic-radius); margin: 1.5rem 0;
}
.nyic-campaign-banner h2 { color: #fff; }
.nyic-campaign-hero {
    background: linear-gradient(120deg, var(--nyic-plum), var(--nyic-navy));
    color: #fff; padding: 2.5rem 1.5rem; border-radius: var(--nyic-radius); text-align: center; margin-bottom: 2rem;
}
.nyic-campaign-hero__title { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; margin-bottom: 0.75rem; }
.nyic-campaign-hero__lead { max-width: 60ch; margin: 0 auto 1rem; opacity: 0.95; }
.nyic-campaign-hero__goal { font-weight: 700; margin-bottom: 1.5rem; }

/* ----- Story detail ----- */
.nyic-story { max-width: 760px; margin: 0 auto; }
.nyic-story__themes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.nyic-story__title { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; color: var(--nyic-plum); }
.nyic-story__byline { color: var(--nyic-muted); display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1.5rem; }
.nyic-story__media { margin: 1.5rem 0; }
.nyic-story__media img, .nyic-story__media video { width: 100%; border-radius: var(--nyic-radius); }
.nyic-story__caption { color: var(--nyic-muted); font-size: 0.88rem; margin-top: 0.4rem; text-align: center; }
.nyic-story__body { font-size: 1.12rem; line-height: 1.75; color: var(--nyic-text); }
.nyic-story__footer { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--nyic-border); }
.nyic-transcript { margin-top: 0.5rem; color: var(--nyic-muted); font-size: 0.92rem; }

/* ----- Public forms ----- */
.nyic-form-wrap { max-width: 680px; margin: 0 auto; }
.nyic-form .nyic-fieldset {
    background: var(--nyic-card); border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius); padding: 1.25rem; margin-bottom: 1.25rem;
}
.nyic-fieldset legend { font-size: 1.05rem; font-weight: 700; color: var(--nyic-plum); float: none; width: auto; padding: 0; margin-bottom: 0.75rem; }
.nyic-fieldset--consent { border-color: color-mix(in srgb, var(--nyic-coral) 40%, white); background: color-mix(in srgb, var(--nyic-coral) 6%, white); }
.nyic-optional { font-weight: 400; color: var(--nyic-muted); font-size: 0.85rem; }
.nyic-form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.nyic-form-row > * { flex: 1 1 200px; }
.nyic-consent-note { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--nyic-border); }

/* ----- Success ----- */
.nyic-success { max-width: 560px; margin: 3rem auto; text-align: center; }
.nyic-success__mark { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--nyic-coral); color: #fff; font-size: 2rem; margin: 0 auto 1rem; }
.nyic-success__title { font-weight: 800; color: var(--nyic-plum); }
.nyic-success__lead { color: var(--nyic-muted); margin-bottom: 1.5rem; }

/* ========================================================================
   STAFF / Story Bank back-office
   ======================================================================== */
.nyic-staff { background: var(--nyic-bg); }
.nyic-staff-topbar {
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: 0.75rem;
    background: #fff; border-bottom: 1px solid var(--nyic-border);
    padding: 0.55rem 1rem; padding-top: calc(0.55rem + env(safe-area-inset-top));
}
.nyic-staff-topbar { flex-wrap: nowrap; }
.nyic-staff-topbar__menu { display: none; font-size: 1.2rem; line-height: 1; flex: 0 0 auto; }
.nyic-staff-topbar__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.nyic-staff-topbar__logo { height: 26px; }
.nyic-staff-topbar__tag { font-weight: 700; color: var(--nyic-plum); font-size: 0.95rem; white-space: nowrap; }
.nyic-staff-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.nyic-staff-search { margin: 0; min-width: 0; }
.nyic-staff-search input {
    border: 1px solid var(--nyic-border); border-radius: 999px;
    padding: 0.3rem 0.85rem; font-size: 0.85rem; width: 180px; max-width: 40vw; min-width: 0;
    background: var(--nyic-bg);
}
.nyic-staff-search input:focus { outline: none; border-color: var(--nyic-coral); background: #fff; }
/* Small phones: drop the "Story Bank" wordmark + tighten so nothing overflows */
@media (max-width: 575px) {
    .nyic-staff-topbar { gap: 0.5rem; padding-left: 0.7rem; padding-right: 0.7rem; }
    .nyic-staff-topbar__tag { display: none; }
    .nyic-staff-topbar__right { gap: 0.5rem; }
    .nyic-staff-search input { width: 9rem; }
}
.nyic-staff-topbar__user { color: var(--nyic-muted); font-size: 0.85rem; }
.nyic-staff-topbar__user { color: var(--nyic-muted); font-size: 0.85rem; }

.nyic-staff-shell { display: flex; align-items: flex-start; }
.nyic-staff-sidebar { background: #fff; border-right: 1px solid var(--nyic-border); }
@media (min-width: 992px) {
    .nyic-staff-sidebar { width: 240px; flex: 0 0 240px; position: sticky; top: 49px; height: calc(100vh - 49px); }
    .nyic-staff-sidebar .offcanvas-body { padding: 1rem 0.75rem; }
}
.nyic-staff-sidebar__body { display: flex; flex-direction: column; gap: 0.15rem; }
.nyic-sidelink { display: block; padding: 0.55rem 0.85rem; border-radius: 8px; text-decoration: none; color: var(--nyic-text); font-weight: 500; }
.nyic-sidelink:hover { background: var(--nyic-bg); color: var(--nyic-plum); }
.nyic-sidelink.is-active { background: color-mix(in srgb, var(--nyic-coral) 14%, white); color: var(--nyic-coral-dark); }
.nyic-sidelabel { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--nyic-muted); margin: 0.85rem 0.85rem 0.25rem; font-weight: 700; }

.nyic-staff-main { flex: 1 1 auto; min-width: 0; padding: 1.5rem; max-width: 1200px; }
@media (max-width: 575px) { .nyic-staff-main { padding: 1rem; } .nyic-staff-topbar__menu { display: inline-block; } }
@media (min-width: 576px) and (max-width: 991px) { .nyic-staff-topbar__menu { display: inline-block; } }

.nyic-staff-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.nyic-staff-head h1 { font-size: 1.5rem; font-weight: 700; color: var(--nyic-plum); margin: 0; }

/* KPIs */
.nyic-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.nyic-kpi { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem; background: #fff; border: 1px solid var(--nyic-border); border-radius: var(--nyic-radius); text-decoration: none; box-shadow: var(--nyic-shadow); }
.nyic-kpi:hover { border-color: var(--nyic-coral); }
.nyic-kpi__num { font-size: 1.9rem; font-weight: 800; color: var(--nyic-plum); line-height: 1; }
.nyic-kpi__label { color: var(--nyic-muted); font-size: 0.85rem; }
.nyic-kpi--accent { background: color-mix(in srgb, var(--nyic-coral) 10%, white); border-color: color-mix(in srgb, var(--nyic-coral) 35%, white); }
.nyic-kpi--accent .nyic-kpi__num { color: var(--nyic-coral-dark); }

/* Panels */
.nyic-panel { background: #fff; border: 1px solid var(--nyic-border); border-radius: var(--nyic-radius); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--nyic-shadow); }
.nyic-panel__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.75rem; }
.nyic-panel__head h2 { font-size: 1.1rem; font-weight: 700; color: var(--nyic-plum); margin: 0; }
.nyic-panel__title { font-size: 1.05rem; font-weight: 700; color: var(--nyic-plum); margin-bottom: 0.85rem; }

/* Tables */
.nyic-table-wrap { overflow-x: auto; }
.nyic-table { width: 100%; border-collapse: collapse; }
.nyic-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--nyic-muted); padding: 0.5rem 0.6rem; border-bottom: 2px solid var(--nyic-border); }
.nyic-table td { padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--nyic-border); vertical-align: middle; }
.nyic-table tbody tr { cursor: pointer; }
.nyic-table tbody tr:hover { background: var(--nyic-bg); }

/* Status badges */
.nyic-status { display: inline-block; padding: 0.18rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.nyic-status--submitted { background: #fff4e6; color: #b35309; }
.nyic-status--in_review { background: #e7eefc; color: #1d4ed8; }
.nyic-status--approved { background: #e6f6ec; color: #1a7f37; }
.nyic-status--published { background: #e6f6ec; color: #0f6b2e; }
.nyic-status--draft { background: #eef0f2; color: #555; }
.nyic-status--archived { background: #eef0f2; color: #777; }
.nyic-status--rejected { background: #fdeaea; color: #b42318; }
.nyic-pill { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--nyic-lavender); color: var(--nyic-plum); font-size: 0.72rem; font-weight: 700; }
.nyic-star { color: #e0a800; }
.nyic-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--nyic-border); }

/* Queue */
.nyic-queue { display: flex; flex-direction: column; gap: 1rem; }
.nyic-queue-card { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; background: #fff; border: 1px solid var(--nyic-border); border-radius: var(--nyic-radius); padding: 1.1rem; box-shadow: var(--nyic-shadow); flex-wrap: wrap; }
.nyic-queue-card__main { flex: 1 1 300px; min-width: 0; }
.nyic-queue-card__top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.nyic-queue-card__title { font-size: 1.15rem; font-weight: 700; color: var(--nyic-plum); margin: 0 0 0.3rem; }
.nyic-queue-card__excerpt { color: var(--nyic-muted); margin: 0 0 0.4rem; }
.nyic-queue-card__actions { display: flex; gap: 0.5rem; align-items: center; }

/* Review layout */
.nyic-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .nyic-review-grid { grid-template-columns: 1fr; } }
.nyic-review-side { display: flex; flex-direction: column; }
.nyic-actionbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; align-items: center; }

.nyic-media-row { display: flex; gap: 0.75rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--nyic-border); }
.nyic-media-row:last-child { border-bottom: none; }
.nyic-media-row__preview { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--nyic-bg); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nyic-media-row__preview img { width: 100%; height: 100%; object-fit: cover; }
.nyic-media-row__info { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.nyic-media-row__type { font-size: 0.85rem; color: var(--nyic-muted); }
.nyic-media-row__btns { display: flex; gap: 0.75rem; }

.nyic-meta-list { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.75rem; margin-bottom: 1rem; font-size: 0.88rem; }
.nyic-meta-list dt { color: var(--nyic-muted); }
.nyic-meta-list dd { margin: 0; color: var(--nyic-text); }

.nyic-confirm { max-width: 480px; }

/* Advanced search form */
.nyic-advsearch__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.85rem;
}
.nyic-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; margin: 0; border: 0; padding: 0; }
.nyic-field > span, .nyic-field > legend {
    font-size: 0.78rem; font-weight: 700; color: var(--nyic-muted);
    text-transform: uppercase; letter-spacing: 0.04em; padding: 0; float: none; width: auto;
}
.nyic-field--wide { grid-column: 1 / -1; }
.nyic-checkrow { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.nyic-check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; color: var(--nyic-text); font-weight: 500; }
.nyic-advsearch__actions { display: flex; gap: 0.6rem; margin-top: 1rem; }

/* ========================================================================
   STORY MAP (stylized interactive SVG — no map library / tiles)
   ======================================================================== */
.nyic-page-head--tight { margin-bottom: 0.75rem; }
.nyic-map-toolbar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.nyic-map-toolbar .nyic-chip { cursor: pointer; border: 1px solid var(--nyic-border); background: #fff; --chip: var(--nyic-plum); padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.nyic-map-toolbar .nyic-chip.is-active { background: var(--nyic-plum); color: #fff; border-color: var(--nyic-plum); }

/* 60 / 40 layout, sized to fit the viewport (no page scroll) */
.nyic-maplayout {
    display: flex; gap: 1rem; align-items: stretch;
    height: clamp(420px, calc(100vh - 240px), 700px);
}
.nyic-map-col { flex: 0 0 60%; max-width: 60%; display: flex; flex-direction: column; min-width: 0; }
.nyic-svgmap-wrap {
    flex: 1; min-height: 0;
    background: #eef4f8;                 /* faint land/water backdrop */
    border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius);
    box-shadow: var(--nyic-shadow);
    padding: 0.4rem;
}
.nyic-svgmap { display: block; width: 100%; height: 100%; }

/* NY State outline (faint context) */
.nyic-state { fill: #f6f3fb; stroke: #cdbfe0; stroke-width: 1; stroke-linejoin: round; }
.nyic-state-label { fill: #b3a6c8; font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.nyic-nyc-marker { fill: var(--nyic-coral); }
.nyic-nyc-label { fill: var(--nyic-coral-dark); font-size: 10px; font-weight: 700; text-anchor: middle; }

/* Borough shapes (enlarged inset) */
.nyic-boro {
    fill: #e3f1fb; stroke: #7fb2d6; stroke-width: 1.2;
    stroke-linejoin: round; cursor: pointer;
    transition: fill 0.12s ease, opacity 0.12s ease;
}
.nyic-boro:hover { fill: #cfe6f6; }
.nyic-boro.is-active { fill: #cfe6f6; stroke: var(--nyic-plum); stroke-width: 2; }
.nyic-boro.is-dim { opacity: 0.35; }
.nyic-boro-name { fill: var(--nyic-plum); font-weight: 700; font-size: 13px; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }

/* Story dots */
.nyic-dot { stroke: #fff; stroke-width: 1.5; transition: r 0.1s ease; cursor: pointer; }
.nyic-dot-link:hover .nyic-dot,
.nyic-dot-link:focus .nyic-dot { r: 9; }

/* Right-hand story list */
.nyic-map-side { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0;
    border: 1px solid var(--nyic-border); border-radius: var(--nyic-radius); background: #fff; box-shadow: var(--nyic-shadow); }
.nyic-map-side__title { font-size: 1.1rem; font-weight: 700; color: var(--nyic-plum); margin: 0; padding: 0.9rem 1rem; border-bottom: 1px solid var(--nyic-border); }
.nyic-side-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0.5rem; }
.nyic-side-story { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.6rem; border-radius: 10px; text-decoration: none; color: inherit; }
.nyic-side-story:hover { background: var(--nyic-bg); }
.nyic-side-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 0.25rem; border: 1px solid rgba(0,0,0,0.1); }
.nyic-side-body { display: flex; flex-direction: column; min-width: 0; }
.nyic-side-name { font-weight: 700; color: var(--nyic-plum); }
.nyic-side-meta { font-size: 0.82rem; color: var(--nyic-muted); }
.nyic-side-empty { padding: 1rem; color: var(--nyic-muted); }
.nyic-side-empty a { color: var(--nyic-coral-dark); font-weight: 600; text-decoration: none; }

/* Stack on small screens (page scroll is fine on mobile) */
@media (max-width: 768px) {
    .nyic-maplayout { flex-direction: column; height: auto; }
    .nyic-map-col { flex: none; max-width: 100%; }
    .nyic-svgmap-wrap { height: 56vw; max-height: 380px; }
    .nyic-map-side { height: 50vh; }
}

.nyic-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 1rem 0; }
.nyic-map-legend__label { font-weight: 700; color: var(--nyic-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.nyic-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--nyic-text); }
.nyic-legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.1); }
.nyic-map-cta { color: var(--nyic-muted); margin-top: 0.5rem; }
.nyic-map-cta a { color: var(--nyic-coral-dark); font-weight: 600; text-decoration: none; }

/* ========================================================================
   TIMELINE — interactive year rail (left 60%), stories on the right (40%).
   Reuses .nyic-maplayout / .nyic-map-col / .nyic-map-side / .nyic-side-*.
   ======================================================================== */
.nyic-tlrail {
    flex: 1; min-height: 0; overflow-y: auto;
    background: #fff; border: 1px solid var(--nyic-border);
    border-radius: var(--nyic-radius); box-shadow: var(--nyic-shadow);
    padding: 0.6rem 0.75rem;
}
.nyic-tlrail__item {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    width: 100%; background: none; border: 0; cursor: pointer; color: var(--nyic-text);
    padding: 0.55rem 0.6rem 0.55rem 1.5rem; margin-left: 0.5rem;
    border-left: 2px solid #e7e3ee; position: relative; transition: background 0.12s ease;
}
.nyic-tlrail__item::before {
    content: ''; position: absolute; left: -7px; top: 50%; transform: translateY(-50%);
    width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--nyic-lavender);
}
.nyic-tlrail__item:hover { background: var(--nyic-bg); }
.nyic-tlrail__item.is-active { background: color-mix(in srgb, var(--nyic-coral) 12%, white); border-left-color: var(--nyic-coral); }
.nyic-tlrail__item.is-active::before { background: var(--nyic-coral); border-color: var(--nyic-coral); }
.nyic-tlrail__year { font-weight: 700; color: var(--nyic-plum); font-size: 1.02rem; }
.nyic-tlrail__count { font-size: 0.78rem; color: var(--nyic-muted); background: var(--nyic-bg); border-radius: 999px; padding: 0.05rem 0.55rem; }
.nyic-tlrail__item.is-empty { opacity: 0.5; }
.nyic-tlrail__item.is-empty.is-active { opacity: 1; }

/* ========================================================================
   SUBMISSION WIZARD (multi-step share form)
   ======================================================================== */
.nyic-wizard { max-width: 940px; margin: 0.5rem auto 2.5rem; }
.nyic-wizard__body { max-width: 760px; margin: 0 auto; }  /* keep the form comfortable while the stepper stays wide */

/* Stepper — circles connected by a line, ticks for completed steps */
.nyic-stepper {
    display: flex; list-style: none; margin: 0 auto 2.5rem;
    padding: 0.5rem 1.25rem 0;   /* room for the active ring + breathing space */
}
.nyic-stepper__node {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    position: relative; color: var(--nyic-muted); font-size: 0.92rem; text-align: center;
}
.nyic-stepper__node::before {
    content: ''; position: absolute; top: 22px; right: 50%; width: 100%; height: 3px;
    background: var(--nyic-border); border-radius: 3px; z-index: 0;
    transition: background 0.18s ease;
}
.nyic-stepper__node:first-child::before { display: none; }
.nyic-stepper__dot {
    width: 44px; height: 44px; border-radius: 50%; background: #fff;
    border: 2px solid var(--nyic-border); color: var(--nyic-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    position: relative; z-index: 1; margin-bottom: 0.6rem;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.nyic-stepper__node.is-active .nyic-stepper__dot {
    border-color: var(--nyic-coral); color: var(--nyic-coral-dark);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--nyic-coral) 20%, white);
}
.nyic-stepper__node.is-active .nyic-stepper__label { color: var(--nyic-plum); font-weight: 700; }
.nyic-stepper__node.is-done .nyic-stepper__dot { background: var(--nyic-coral); border-color: var(--nyic-coral); color: #fff; }
.nyic-stepper__node.is-done .nyic-stepper__label { color: var(--nyic-plum); }
/* The connector that LEADS INTO a step lights up once we've reached it
   (active) or passed it (done) — it belongs to this node, not the previous one. */
.nyic-stepper__node.is-active::before,
.nyic-stepper__node.is-done::before { background: var(--nyic-coral); }

/* Step panels */
.nyic-step__title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: var(--nyic-plum); margin-bottom: 0.4rem; }
.nyic-step__sub { color: var(--nyic-muted); max-width: 65ch; margin-bottom: 1.5rem; }
.nyic-step__h { font-size: 1.2rem; font-weight: 700; color: var(--nyic-plum); margin: 1.75rem 0 0.85rem; }
.nyic-step__hint { color: var(--nyic-muted); font-size: 0.88rem; margin: 0.25rem 0 0; }
.nyic-prompt {
    background: #fff; border: 1px solid var(--nyic-border); border-radius: var(--nyic-radius);
    padding: 1.25rem; margin: 1rem 0;
}
.nyic-prompt > .nyic-step__h:first-child { margin-top: 0; }
.nyic-prompt textarea { margin-top: 0.25rem; }

.nyic-wizard__nav { margin-top: 1.75rem; }
.nyic-wizard__nav--split { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }

/* Media: record / attach buttons + file list */
.nyic-media-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0.85rem 0 0.5rem; }
.nyic-mediabtn {
    background: none; border: 0; color: var(--nyic-plum); font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0; font-size: 0.95rem;
}
.nyic-mediabtn:hover { color: var(--nyic-coral-dark); }
.nyic-mediabtn.is-recording { color: #b42318; }
.nyic-media-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.nyic-media-item {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    background: var(--nyic-bg); border: 1px solid var(--nyic-border); border-radius: 8px;
    padding: 0.45rem 0.75rem; font-size: 0.9rem;
}
.nyic-media-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nyic-media-remove { background: none; border: 0; color: #b42318; font-size: 0.85rem; cursor: pointer; flex: 0 0 auto; }

/* Celebration banner (step 3) */
.nyic-celebrate {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: #14342e; border-radius: var(--nyic-radius); padding: 2rem;
    margin: 1.5rem 0; color: #c9c3f0;
}
.nyic-celebrate__mark { flex: 0 0 auto; }
.nyic-celebrate__text { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; margin: 0; flex: 1; min-width: 240px; }
.nyic-celebrate__text strong { color: #fff; }

/* ========================================================================
   WIZARD POLISH — professional, consistent field + section styling
   ======================================================================== */
.nyic-wizard__body { max-width: 720px; }
.nyic-step__title { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 0.45rem; }
.nyic-step__sub { font-size: 1rem; line-height: 1.55; margin-bottom: 1.5rem; }

/* Section cards group related fields */
.nyic-fgroup {
    background: #fff; border: 1px solid var(--nyic-border); border-radius: 14px;
    padding: clamp(1.1rem, 3.5vw, 1.65rem); margin-bottom: 1.25rem; box-shadow: var(--nyic-shadow);
}
.nyic-fgroup__title { font-size: 1.12rem; font-weight: 700; color: var(--nyic-plum); margin: 0 0 1.1rem; }

/* Fields */
.nyic-form .form-label { font-weight: 600; color: var(--nyic-text); font-size: 0.9rem; margin-bottom: 0.4rem; }
.nyic-form .form-control,
.nyic-form .form-select {
    border-radius: 10px; border: 1px solid var(--nyic-border); padding: 0.6rem 0.85rem;
    font-size: 1rem; min-height: 48px; background: #fff; color: var(--nyic-text);
}
.nyic-form textarea.form-control { min-height: 130px; line-height: 1.55; }
.nyic-form .form-control::placeholder { color: #9aa1ab; }
.nyic-form .form-control:focus,
.nyic-form .form-select:focus {
    border-color: var(--nyic-coral); outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nyic-coral) 18%, white);
}
.nyic-form .form-text { font-size: 0.82rem; color: var(--nyic-muted); margin-top: 0.3rem; }
/* spacing: 1rem between stacked fields / rows */
.nyic-form .mb-3 { margin-bottom: 1rem; }
.nyic-form .nyic-form-row { gap: 1rem; margin-bottom: 0; }
.nyic-form .nyic-form-row > .mb-3 { margin-bottom: 1rem; flex: 1 1 220px; }
.nyic-fgroup > .nyic-form-row:last-child > .mb-3:last-child,
.nyic-fgroup > .mb-3:last-child { margin-bottom: 0; }

/* Consent radios as selectable rows */
.form-check-input:checked { background-color: var(--nyic-coral); border-color: var(--nyic-coral); }
.form-check-input:focus { border-color: var(--nyic-coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nyic-coral) 18%, white); }
.nyic-consent .mb-3 { margin-bottom: 0; }
.nyic-consent .form-check {
    position: relative; margin: 0 0 0.6rem; padding: 0.85rem 1rem 0.85rem 2.7rem;
    border: 1px solid var(--nyic-border); border-radius: 10px; cursor: pointer; min-height: auto;
}
.nyic-consent .form-check:last-child { margin-bottom: 0; }
.nyic-consent .form-check-input { position: absolute; left: 1rem; top: 0.95rem; margin: 0; width: 1.15rem; height: 1.15rem; }
.nyic-consent .form-check-label { cursor: pointer; font-weight: 500; color: var(--nyic-text); }
.nyic-consent .form-check:has(.form-check-input:checked) {
    border-color: var(--nyic-coral); background: color-mix(in srgb, var(--nyic-coral) 7%, white);
}

/* Consent + contact checkboxes */
.nyic-checks .form-check { padding-left: 1.9rem; }
.nyic-checks .form-check-input { width: 1.1rem; height: 1.1rem; margin-left: -1.9rem; margin-top: 0.2rem; }
.nyic-checks .form-check-label { color: var(--nyic-text); line-height: 1.45; }

/* Media buttons → pill chips */
.nyic-media-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.25rem; }
.nyic-mediabtn {
    background: #fff; border: 1px solid var(--nyic-border); border-radius: 999px;
    padding: 0.5rem 1rem; color: var(--nyic-plum); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
}
.nyic-mediabtn:hover { border-color: var(--nyic-coral); color: var(--nyic-coral-dark); }
.nyic-mediabtn.is-recording { border-color: #b42318; color: #b42318; }

/* Prompt cards */
.nyic-prompt { padding: clamp(1.1rem, 3.5vw, 1.65rem); margin: 1.25rem 0; }
.nyic-prompt .nyic-step__h { margin: 0 0 0.9rem; font-size: 1.08rem; line-height: 1.35; }

/* Nav buttons */
.nyic-wizard__nav { margin-top: 1.5rem; }
.nyic-wizard__nav .btn { border-radius: 10px; }
.nyic-wizard__nav--split { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
@media (max-width: 480px) {
    .nyic-wizard__nav--split { flex-direction: column-reverse; }
    .nyic-wizard__nav--split .btn { width: 100%; }
}

/* Story Bank review — media previews (show the actual uploaded files) */
.nyic-rev-media { border: 1px solid var(--nyic-border); border-radius: 10px; overflow: hidden; margin-bottom: 0.85rem; }
.nyic-rev-media__preview { background: var(--nyic-bg); display: flex; align-items: center; justify-content: center; }
.nyic-rev-media__preview img { width: 100%; height: auto; max-height: 320px; object-fit: cover; display: block; }
.nyic-rev-media__preview video { width: 100%; max-height: 320px; display: block; background: #000; }
.nyic-rev-media__preview audio { width: 100%; margin: 0.75rem; }
.nyic-rev-media__caption { font-size: 0.82rem; color: var(--nyic-muted); margin: 0; padding: 0.4rem 0.6rem 0; }
.nyic-rev-media__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0.6rem 0.5rem; flex-wrap: wrap; }
.nyic-rev-media__btns { display: flex; gap: 0.6rem; align-items: center; }

/* Story Bank review — linked submission siblings */
.nyic-sibling-panel { border-left: 3px solid var(--nyic-coral); }
.nyic-sibling { display: block; padding: 0.6rem 0.7rem; border: 1px solid var(--nyic-border); border-radius: 10px; text-decoration: none; color: inherit; margin-top: 0.5rem; }
.nyic-sibling:hover { border-color: var(--nyic-coral); background: var(--nyic-bg); }
.nyic-sibling__title { display: block; font-weight: 700; color: var(--nyic-plum); margin: 0.3rem 0 0.15rem; }
.nyic-sibling__excerpt { display: block; font-size: 0.85rem; color: var(--nyic-muted); }

/* Story detail — second prompt section */
.nyic-story__section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--nyic-border); }
.nyic-story__subhead { font-size: 1.3rem; font-weight: 700; color: var(--nyic-plum); margin-bottom: 0.75rem; }

/* Per-question media block in the wizard */
.nyic-media { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px dashed var(--nyic-border); }
.nyic-media__label { font-size: 0.9rem; font-weight: 600; color: var(--nyic-text); margin: 0 0 0.5rem; }
.nyic-optional { font-weight: 400; color: var(--nyic-muted); }
