/**
 * F1GMAT APU Theme · mba-deadlines.css
 * Content-type-specific components for MBA deadlines pages.
 *
 * Loaded site-wide via libraries.yml (theme attaches all three CSS
 * files globally so Full HTML can use any class on any content type).
 * Editor surfaces these via the Styles dropdown entries:
 *   - Block · Deadline · Card
 *   - Block · Deadline · Card strip
 *   - Box · Deadline · Priority funding note   (defined in style.css)
 *   - Deadline · Time flag
 *
 * Everything else used on deadline pages (status pills, badges, callouts,
 * priority notes, stat grids, TL;DR) lives in style.css as shared
 * editorial primitives.
 *
 * Depends on the :root palette in style.css.
 */

/* =====================================================================
   1. DEADLINE CARD — single-round card with badge, date, time, decision
   HTML:
     <article class="fg-deadline-card">
       <span class="fg-badge">R1</span>
       <span class="fg-deadline-card__status fg-status fg-status--open">Open</span>
       <span class="fg-deadline-card__date">Sept 9, 2026</span>
       <span class="fg-deadline-card__time">12:00 PM ET</span>
       <span class="fg-deadline-card__decision">Decision: Dec 14, 2026</span>
     </article>
   ===================================================================== */

.node__content .fg-deadline-card {
  background: var(--fg-paper);
  border-top: 2px solid var(--fg-ink);
  border-bottom: 0.5px solid var(--fg-hairline);
  padding: 22px 24px 20px;
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 28px 0;
}

.node__content .fg-deadline-card .fg-badge {
  position: absolute;
  top: 16px;
  right: 22px;
  margin: 0;
}

.node__content .fg-deadline-card__status {
  align-self: start;
  justify-self: start;
  margin-bottom: 4px;
}

.node__content .fg-deadline-card__date {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--fg-ink);
  letter-spacing: -0.4px;
}

.node__content .fg-deadline-card__time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--fg-ink);
}

.node__content .fg-deadline-card__decision {
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
  color: var(--fg-ink-muted);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 0.5px solid var(--fg-hairline);
}

/* =====================================================================
   2. DEADLINE STRIP — wrapper for 2-5 cards side by side
   HTML:
     <section class="fg-deadline-strip">
       <article class="fg-deadline-card">...</article>
       <article class="fg-deadline-card">...</article>
       <article class="fg-deadline-card">...</article>
     </section>
   ===================================================================== */

.node__content .fg-deadline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 28px 0;
  border: 0.5px solid var(--fg-hairline);
  border-top: 0;
}

.node__content .fg-deadline-strip .fg-deadline-card {
  margin: 0;
  border-bottom: 0;
  border-top: 2px solid var(--fg-ink);
  border-right: 0.5px solid var(--fg-hairline);
}

.node__content .fg-deadline-strip .fg-deadline-card:last-child {
  border-right: 0;
}

@media (max-width: 600px) {
  .node__content .fg-deadline-strip .fg-deadline-card {
    border-right: 0;
    border-bottom: 0.5px solid var(--fg-hairline);
  }
  .node__content .fg-deadline-strip .fg-deadline-card:last-child {
    border-bottom: 0;
  }
}

/* =====================================================================
   3. DEADLINE TIME — emphasised time correction inline in prose
   HTML:  The deadline is <span class="fg-deadline-time">12:00 PM ET, not 11:59 PM</span>.
   ===================================================================== */

.node__content .fg-deadline-time {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fg-ink);
  background: var(--fg-paper-aged);
  border-bottom: 1.5px solid var(--fg-gold-dark);
  padding: 1px 6px 0;
  white-space: nowrap;
}
