/* ics-job-card.css (H15, 2026-11-05): job cards on /dong-hanh-cung-ics/ (VI p128), /en/join-ics/ (EN p2900) and the /tuyen-dung/ archive.
   Goal: every "Hạn nộp" deadline line sits on one baseline at the bottom of its card whatever the title length; cards in a row share one height;
   the deadline starts at the title's left edge (no indent).
   Markup (served HTML):
     #jn-jobs-grid > a.brxe-jnjcd1.nw-card.ics-torn-card > div.ics-torn-photo + div.nw-cb > h3.nw-tit + div.jn-jmeta > div.nw-deadline
     #brxe-jbgrid > a.brxe-jbcard.nw-card.ics-torn-card > div.ics-torn-photo + div.nw-cb > h3.nw-tit + div.jb-meta > div.nw-deadline
   Not touched: .ics-badge (ics-badge.css), ics-grid.css, ics-card.css, tear-guard.css (overridden by id-count specificity). */

/* 1. Grid: cells stretch to the row height */
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid {
  align-items: stretch;
}

/* 2. Card: column flex, fills its cell */
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid > .nw-card.ics-torn-card.nw-card,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid > .nw-card.ics-torn-card.nw-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3. Text block: column flex, takes the rest of the card */
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid > .nw-card.ics-torn-card.nw-card > .nw-cb.nw-cb,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid > .nw-card.ics-torn-card.nw-card > .nw-cb.nw-cb {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* 4. Title grows: pushes the deadline line to the bottom of the text block */
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid .nw-cb > .nw-tit.nw-tit,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid .nw-cb > .nw-tit.nw-tit {
  flex: 1 1 auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* 5. Deadline block: bottom of the text block, left edge = title edge, empty block takes no space */
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid .nw-cb > .jn-jmeta.jn-jmeta,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid .nw-cb > .jb-meta.jb-meta {
  flex: 0 0 auto;
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid .jn-jmeta.jn-jmeta:empty,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid .jb-meta.jb-meta:empty {
  display: none;
}
html body #jn-jobs-grid#jn-jobs-grid#jn-jobs-grid .nw-deadline.nw-deadline,
html body #brxe-jbgrid#brxe-jbgrid#brxe-jbgrid .nw-deadline.nw-deadline {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
