/* Brand hook: set --pdg-accent (buttons) and --pdg-heading (titles) from the theme or here. */
:root { --pdg-accent: #A92838; --pdg-accent-dark: #8a1f2d; --pdg-heading: #1B3665; --pdg-tint: #eef1f7; }

.pdg-job { font-family: 'Montserrat', sans-serif; color: #1a1a1a; }
.pdg-job-title, .pdg-job-archive-title, .pdg-job-section-title, .pdg-job-table th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pdg-heading);
}
.pdg-job-eyebrow { color: var(--pdg-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pdg-job-stat { background: var(--pdg-tint); }
.pdg-job-stat-value { color: var(--pdg-heading); }
.pdg-job-apply-btn { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.pdg-job-apply-btn:hover { background: var(--pdg-accent-dark); opacity: 1; }
.pdg-job-table th { border-bottom: 2px solid var(--pdg-heading); }
.pdg-job-table-title { color: var(--pdg-heading); }
.pdg-job-filters select:focus, .pdg-job-filters input:focus { outline: 2px solid var(--pdg-heading); outline-offset: 1px; }
.pdg-job-filter-reset { color: var(--pdg-heading); font-weight: 600; }
.pdg-job-card:hover { border-color: var(--pdg-heading); }
.pdg-job-back a { color: var(--pdg-heading); }

/* PDG Job Postings — neutral front-end styling.
   Deliberately minimal so it sits reasonably well inside most
   themes without a fight. Override any of this from the theme's
   own stylesheet if it needs to match more closely. */

.pdg-job {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pdg-job-header {
  text-align: center;
  margin-bottom: 24px;
}

.pdg-job-eyebrow {
  font-size: 13px;
  color: #666;
  margin: 0 0 6px;
}

.pdg-job-title {
  font-size: 26px;
  margin: 0;
}

.pdg-job-stats {
  display: grid;
  grid-template-columns: repeat(var(--pdg-stat-count, 3), minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.pdg-job-stat {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.pdg-job-stat-value {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pdg-job-stat-label {
  font-size: 12px;
  color: #777;
}

.pdg-job-apply-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.pdg-job-apply-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--pdg-accent, #1a1a1a);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.pdg-job-apply-btn:hover {
  opacity: 0.9;
}

.pdg-job-about {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.pdg-job-section {
  margin-bottom: 28px;
}

.pdg-job-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pdg-job-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.pdg-job-back {
  margin-top: 32px;
}
.pdg-job-back a {
  font-size: 14px;
}

/* ── Archive ── */

.pdg-job-archive-title {
  font-size: 26px;
  margin-bottom: 24px;
}

.pdg-job-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdg-job-card {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.pdg-job-card:hover {
  border-color: #999;
}

.pdg-job-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pdg-job-card-meta {
  font-size: 13px;
  color: #777;
}

.pdg-job-empty {
  color: #777;
}

/* ── Archive table (CDA) ── */

.pdg-job-archive-table { max-width: 1000px; }

.pdg-job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.pdg-job-filters select,
.pdg-job-filters input,
.pdg-job-filter-reset {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.pdg-job-filter-search { flex: 1 1 200px; }
.pdg-job-filter-reset { cursor: pointer; }

.pdg-job-table {
  width: 100%;
  border-collapse: collapse;
}
.pdg-job-table th {
  text-align: left;
  font-size: 13px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--pdg-heading);
}
.pdg-job-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.pdg-job-table tr[hidden] { display: none; }
.pdg-job-table-title { font-weight: 600; text-decoration: none; }
.pdg-job-table-title:hover { text-decoration: underline; }
.pdg-job-table-sub { font-size: 13px; color: #777; margin-top: 2px; }
.pdg-job-table-action { text-align: right; white-space: nowrap; }
.pdg-job-apply-btn-sm { padding: 8px 18px; font-size: 14px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

@media (max-width: 700px) {
  .pdg-job-table thead { display: none; }
  .pdg-job-table, .pdg-job-table tbody, .pdg-job-table tr, .pdg-job-table td { display: block; width: 100%; }
  .pdg-job-table tr { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
  .pdg-job-table td { border: 0; padding: 4px 0; }
  .pdg-job-table td[data-label]:not([data-label="Position"])::before { content: attr(data-label) ": "; color: #777; font-size: 13px; }
  .pdg-job-table-action { text-align: left; padding-top: 8px; }
}

@media (max-width: 600px) {
  .pdg-job-stats {
    grid-template-columns: 1fr;
  }
}

.pdg-job-apply-how {
  text-align: center;
  margin: -12px 0 24px;
  font-size: 15px;
  line-height: 1.6;
}
