/**
 * MOVED 2026-08-30, from DWF Private Plugin (assets/css/election-calendar.css) to this
 * theme, per direct instruction: theme owns look, plugins own function --
 * front-end CSS living in a plugin was a standing violation of this
 * project's own stated rule (see this file's style.css header). Only the
 * file's LOCATION and its enqueue call site changed (now
 * get_stylesheet_directory_uri() + wp_get_theme()->get('Version') instead
 * of DWFPS_PLUGIN_URL + DWFPS_VERSION, in class-dwfps-plugin.php). The
 * CSS content itself is unchanged in this move -- deliberately not
 * combined with any refactor of its own rules, to keep this a pure,
 * low-risk relocation. Content-level cleanup (e.g. public.css's own
 * --dwfps-* token system duplicating this theme's real design tokens) is
 * a separate, bigger, deliberately deferred decision.
 */
/**
 * 8/16/26: real feature build, per direct approval -- Election Calendar
 * tab on state pages. Includes a local .date-tile definition matching
 * the real, documented Style Guide component exactly (border, radius,
 * month/day treatment) as a safety net, same pattern already used
 * elsewhere in this project, in case the guide's own CSS isn't enqueued
 * site-wide -- identical values mean no visual conflict if it happens
 * to load twice from two different plugins.
 */
.date-tile {
    display: inline-grid;
    grid-template-rows: auto 1fr;
    width: 52px;
    background: #fff;
    border: 1px solid #ded8cf;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}
.date-tile .month {
    display: block;
    background: #1e5c38;
    color: #fff;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    font-weight: 900;
}
.date-tile .day {
    display: block;
    padding: 5px 0 7px;
    font-size: 1.65rem;
    font-weight: 900;
    color: #171717;
}
.dwfps-election-calendar {
    color: #171717;
}
.dwfps-election-calendar__eyebrow {
    margin: 0 0 2px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    font-weight: 900;
    color: var(--dwf-red);
}
.dwfps-election-calendar h2 {
    margin: 0 0 8px;
    color: #171717;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.02em;
}
.dwfps-election-calendar__note {
    margin: 0 0 24px;
    max-width: 640px;
    color: #514d47;
    font-size: .92rem;
    font-style: italic;
}
.dwfps-election-calendar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dwfps-election-calendar__item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid #ede8e0;
}
.dwfps-election-calendar__item:first-child {
    padding-top: 0;
}
.dwfps-election-calendar__item:last-child {
    border-bottom: 0;
}
.dwfps-election-calendar__body {
    min-width: 0;
    flex: 1; /* 3.4.0: fill the row, so every election's deadline grid has the same width and the same columns (they alternated between 2 and 1 columns, Eric's Georgia screenshot 10/29/26). */
}
.dwfps-election-calendar__name {
    margin: 0;
    color: #171717;
    font-size: 1.05rem;
    font-weight: 900;
}
.dwfps-election-calendar__date {
    margin: 2px 0 0;
    color: #514d47;
    font-size: .88rem;
}
.dwfps-election-calendar__deadlines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 3.4.0: always two columns (was auto-fit, which changed with each row's text). */
    gap: 6px 24px;
    margin-top: 12px;
}
.dwfps-election-calendar__deadline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .85rem;
    padding: 4px 0;
    border-bottom: 1px dotted #ded8cf;
}
.dwfps-election-calendar__deadline-label {
    color: #514d47;
}
.dwfps-election-calendar-empty {
    color: #514d47;
    font-style: italic;
}

@media (max-width: 640px) {
    .dwfps-election-calendar__deadlines { grid-template-columns: 1fr; }
}
.dwfps-election-calendar__empty {
    color: #514d47;
}
