.nfir-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.25rem;
}
.nfir-event-card {
    overflow: hidden;
    border: 3px solid #4c9aba;
    border-radius: 9px;
    background: #fff;
    color: #182d3c;
}
.nfir-event-poster img {
    display: block;
    width: 100%;
    height: auto;
}
.nfir-event-body {
    padding: 1.25rem;
    overflow-wrap: anywhere;
}
.nfir-event-body h2 {
    font-weight: 800;
    line-height: 1.2;
}
.nfir-event-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.nfir-event-body .nfir-event-positions {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: 0 0 .75rem;
}
.nfir-event-positions li {
    background: #edf6fa;
    padding: .2rem .55rem;
    border-radius: .3rem;
}
.nfir-event-body .nfir-event-button {
    display: inline-block;
    padding: .55rem .85rem;
    border-radius: .35rem;
    background: #ef92bd;
    color: #29202a;
    font-weight: 700;
}


.nfir-design-card {
    width:100%; box-sizing:border-box; border:1px solid #99b6c8;
    border-radius:10px; overflow:hidden; background:#fff; color:#102540;
    font-family:system-ui,sans-serif; box-shadow:0 3px 10px rgba(16,37,64,.04);
}
.nfir-design-card h2 {
    padding:13px 12px; margin:0; text-align:left; text-transform:none;
    color:#102540; background:#fcf3f7; border-bottom:2px solid #edb3d0;
    font:800 clamp(16px,1.3vw,20px)/1.25 system-ui,sans-serif;
}

.nfir-next-event-body {padding:12px;}
.nfir-next-event-body img {display:block;width:100%;height:auto;border-radius:6px;}
.nfir-next-event-body h3 {margin-top:10px;font-size:17px;font-weight:700;}
.nfir-next-event-body a {color:#007e8a;}
.nfir-event-link {font-weight:700;}
.nfir-event-card {border:1px solid #99b6c8;border-radius:10px;}
.nfir-event-card .nfir-event-button {background:#007e8a;color:white;}

.nfir-next-event.nfir-design-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16,37,64,.06);
}
.nfir-next-event.nfir-design-card h2 {
    margin: 0;
    padding: .7rem .25rem;
    color: #241522;
    background: #ee78b3;
    border: 0;
    text-align: center;
    text-transform: uppercase;
    font: 800 1rem/1.25 system-ui, sans-serif;
}
.nfir-next-event-body .nfir-event-link {
    display: inline-block;
    padding: .5rem .8rem;
    color: #fff;
    background: #008e98;
    border-radius: 7px;
    font-weight: 700;
}

.nfir-event-roster-scroll { overflow-x: auto; margin-bottom: 1rem; }
.nfir-event-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #102540;
}
.nfir-event-roster-table th, .nfir-event-roster-table td {
    padding: .65rem .75rem;
    text-align: left;
    border-bottom: 1px solid #e0e7eb;
}
.nfir-event-roster-table thead th { background: #fcf3f7; font-weight: 700; }
.nfir-event-roster-table tbody th { font-weight: 600; }
.nfir-event-assigned { color: #17683e; font-weight: 600; }
.nfir-event-available { color: #506477; }

/* Events landing page and detail page — scoped to avoid changing homepage widgets. */
.nfir-events-list, .single-nfir_event .nfir-event-description,
.single-nfir_event .nfir-event-staffing {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #243b4d;
}
.nfir-events-heading { margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid #dce7ed; }
.nfir-events-kicker { display: block; color: #00717d; font-size: 12px; font-weight: 750; letter-spacing: .12em; margin-bottom: 5px; }
.nfir-events-heading h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: #102540; line-height: 1.2; padding-bottom: 8px; }
.nfir-events-heading h1::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 3px; background: #ee78b3; margin-top: 12px; }
.nfir-events-heading p { margin: 0; padding: 0; }
.nfir-events-list .nfir-event-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.nfir-event-preview { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: start; border: 1px solid #b4c8d4; box-shadow: 0 4px 16px rgba(16,37,64,.06); }
.nfir-event-preview.nfir-no-poster { grid-template-columns: 1fr; }
.nfir-event-preview .nfir-event-poster { display: block; padding: 16px 0 16px 16px; align-self: start; }
.nfir-event-preview .nfir-event-poster img { border-radius: 6px; width: 100%; height: auto; }
.nfir-event-preview .nfir-event-body { padding: 18px 20px; }
.nfir-event-preview h2 { font-size: 23px; color: #102540; margin: 0 0 5px; }
.nfir-event-preview h2 a { color: inherit; }
.nfir-event-preview h3 { font-size: 14px; font-weight: 700; color: #102540; padding: 0 0 7px; }
.nfir-event-preview .nfir-event-time, .nfir-event-staffing .nfir-event-time { font-size: 14px; color: #006b76; background: #edf7f8; border-radius: 5px; padding: 8px 11px; margin: 10px 0 16px; }
.nfir-event-preview .nfir-event-positions { font-size: 12px; font-weight: 600; }
.nfir-event-preview .nfir-event-button, .nfir-event-staffing .nfir-event-button { padding: 10px 16px; border-radius: 6px; background: #00717d; color: #fff; font-size: 14px; font-weight: 700; }
.nfir-event-more a, .nfir-event-back a { color: #006b76; font-weight: 700; }
.nfir-event-empty { border: 1px solid #dbe5eb; border-radius: 8px; background: #f6fafb; padding: 24px; }
.single-nfir_event #main-content .container::before { display: none; }
.single-nfir_event #sidebar { display: none; }
.single-nfir_event #left-area { width: 100%; padding: 0; float: none; }
.single-nfir_event #main-content .container { max-width: 1000px; width: 90%; }
.single-nfir_event .entry-title { color: #102540; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.single-nfir_event .et_post_meta_wrapper > img { border-radius: 9px; }
.single-nfir_event .nfir-event-description { font-size: 16px; line-height: 1.8; }
.single-nfir_event .nfir-event-description a { color: #006b76; text-decoration: underline; }
.nfir-event-staffing { margin-top: 32px; padding: 0; border: 1px solid #b4c8d4; box-shadow: 0 4px 16px rgba(16,37,64,.06); }
.nfir-event-staffing h2 { background: #ee78b3; color: #241522; padding: 14px 20px; margin: 0 0 18px; font-size: 21px; font-weight: 800; }
.nfir-event-staffing > :not(h2) { margin-left: 20px; margin-right: 20px; }
.nfir-event-staffing h3 { color: #102540; font-size: 18px; font-weight: 750; margin-top: 14px; }
.nfir-event-staffing > p:last-child { margin-bottom: 20px; }
.nfir-event-roster-table { font-size: 15px; }
.nfir-event-roster-table tbody tr:nth-child(even) { background: #f7fafb; }
.nfir-event-assigned, .nfir-event-available { display: inline-flex; align-items: center; gap: 8px; }
.nfir-event-assigned::before, .nfir-event-available::before { content: ""; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #8394a0; }
.nfir-event-assigned::before { background: #26965d; box-shadow: 0 0 0 3px #e0f4e7; }
.nfir-event-back { margin-top: 20px; }
.nfir-events-list a:focus-visible, .nfir-event-staffing a:focus-visible { outline: 3px solid #00717d; outline-offset: 3px; }
@media (max-width: 700px) {
    .nfir-event-preview { grid-template-columns: 1fr; }
    .nfir-event-preview .nfir-event-poster { padding: 12px 12px 0; }
    .nfir-event-preview .nfir-event-body { padding: 16px; }
    .nfir-event-staffing > :not(h2) { margin-left: 12px; margin-right: 12px; }
}
