/* ── Patch Tuesday Tracker — /tools/patch-tuesday-tracker ────────────────── */

.pt-wrap { color: #0d1f3c; }

/* Hero */
.pt-hero {
  background: #0f2544;
  padding: 56px 24px 40px;
  text-align: center;
}
.pt-hero-inner { max-width: 640px; margin: 0 auto; }
.pt-hero-icon { margin-bottom: 14px; }
.pt-hero-icon svg { width: 52px; height: 52px; }
.pt-hero-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}
.pt-hero-sub {
  font-size: 15.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  margin: 0 0 26px;
}

.pt-month-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px 8px 8px 16px;
}
.pt-month-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.6);
}
.pt-month-select {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f3c;
  background: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 180px;
}
.pt-month-select:disabled { cursor: wait; opacity: .7; }

/* Body */
.pt-outer { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }

.pt-loading, .pt-error {
  text-align: center;
  padding: 40px 20px;
  font-size: 15px;
  color: #475569;
}
.pt-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
}

/* Stat cards */
.pt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.pt-stat {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 18px 18px 16px;
}
.pt-stat-val { font-size: 28px; font-weight: 800; color: #0d1f3c; line-height: 1.1; }
.pt-stat-label { font-size: 12.5px; color: #64748b; margin-top: 6px; font-weight: 600; }
.pt-stat--critical .pt-stat-val { color: #b42318; }
.pt-stat--exploited .pt-stat-val { color: #b45309; }
.pt-stat--exploited { border-color: #fde68a; background: #fffbeb; }

/* Priority (exploited/disclosed) section */
.pt-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d1f3c;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.pt-section-title-flag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 9px;
  border-radius: 20px;
}
.pt-priority-section { margin-bottom: 28px; }
.pt-priority-list { display: flex; flex-direction: column; gap: 8px; }
.pt-priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
}
.pt-priority-item a { color: #0f2544; font-weight: 700; text-decoration: none; }
.pt-priority-item a:hover { text-decoration: underline; }
.pt-priority-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.pt-priority-tag--exploited { background: #b42318; color: #fff; }
.pt-priority-tag--disclosed { background: #b45309; color: #fff; }
.pt-priority-title { color: #334155; flex: 1; }

/* Severity bars */
.pt-severity-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
}
.pt-sev-row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; }
.pt-sev-name { font-weight: 700; color: #334155; }
.pt-sev-track { background: #f1f5f9; border-radius: 6px; height: 10px; overflow: hidden; }
.pt-sev-fill { height: 100%; border-radius: 6px; }
.pt-sev-fill--critical { background: #dc2626; }
.pt-sev-fill--important { background: #f59e0b; }
.pt-sev-fill--moderate { background: #3b82f6; }
.pt-sev-fill--low { background: #64748b; }
.pt-sev-fill--unknown { background: #cbd5e1; }
.pt-sev-count { text-align: right; font-weight: 700; color: #0d1f3c; }

/* KB / patches section */
.pt-kb-section { margin-bottom: 32px; }
.pt-kb-section .pt-table-wrap { margin-bottom: 10px; }

/* Products & patches section */
.pt-product-section { margin-bottom: 32px; }
.pt-product-section .pt-table-wrap { margin-bottom: 10px; max-height: 420px; overflow-y: auto; }

/* Table controls */
.pt-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.pt-search {
  flex: 1 1 220px;
  font-size: 13.5px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.pt-filter {
  font-size: 13.5px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.pt-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  white-space: nowrap;
}

/* Table */
.pt-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.pt-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  background: #f8fafc;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.pt-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.pt-table tbody tr:last-child td { border-bottom: none; }
.pt-table tbody tr:hover { background: #f8fafc; }
.pt-table a { color: #017bbd; font-weight: 700; text-decoration: none; }
.pt-table a:hover { text-decoration: underline; }
.pt-cell-title { max-width: 320px; color: #334155; }
.pt-cell-products { color: #64748b; font-size: 12.5px; max-width: 200px; }

.pt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.pt-badge--critical { background: #fee4e2; color: #b42318; }
.pt-badge--important { background: #fef0c7; color: #b45309; }
.pt-badge--moderate { background: #dbeafe; color: #1d4ed8; }
.pt-badge--low { background: #f1f5f9; color: #475569; }
.pt-badge--unknown { background: #f1f5f9; color: #94a3b8; }

.pt-status-tag { font-size: 11px; font-weight: 700; }
.pt-status-tag--exploited { color: #b42318; }
.pt-status-tag--disclosed { color: #b45309; }
.pt-status-tag--none { color: #94a3b8; }

.pt-table-count { font-size: 12.5px; color: #64748b; margin-top: 10px; }

/* Footnote + CTA */
.pt-footnote {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.7;
  margin: 26px 0 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.pt-footnote a { color: #017bbd; text-decoration: none; }
.pt-footnote a:hover { text-decoration: underline; }

.pt-cta {
  background: #eef6fc;
  border: 1px solid #c7dff0;
  border-radius: 14px;
  padding: 22px 26px;
}
.pt-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pt-cta-title { font-size: 16px; font-weight: 700; color: #0d1f3c; margin: 0 0 6px; }
.pt-cta-sub { font-size: 13.5px; color: #475569; margin: 0; max-width: 560px; line-height: 1.6; }
.pt-cta-btn {
  flex-shrink: 0;
  background: #017bbd;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.pt-cta-btn:hover { background: #0f2544; color: #fff; text-decoration: none; }

/* Responsive */
@media (max-width: 640px) {
  .pt-hero { padding: 40px 18px 32px; }
  .pt-outer { padding: 28px 16px 56px; }
  .pt-sev-row { grid-template-columns: 76px 1fr 32px; }
  .pt-cta-inner { flex-direction: column; align-items: flex-start; }
  .pt-cta-btn { width: 100%; text-align: center; }
}
