/* vs-news-index.css — VS NDC Connect Newsroom index */

/* ── page chrome ── */
.pagehead {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 32px;
}

.pagehead .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft, #6b7280);
  margin: 0 0 8px;
}

.pagehead p:not(.kicker) {
  font-size: 15px;
  color: var(--ink-soft, #4b5563);
  margin: 0;
  max-width: 640px;
}

.pagefoot {
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.pagefoot p {
  font-size: 13px;
  color: var(--ink-soft, #6b7280);
  margin: 0;
}

/* ── controls bar ── */
.controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ctrl-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-label {
  font-size: 13px;
  color: var(--ink-soft, #6b7280);
  white-space: nowrap;
}

.segmented {
  display: flex;
  background: var(--surface-2, #f3f4f6);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.segmented button {
  padding: 6px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft, #6b7280);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.5;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface, #fff);
  color: var(--ink, #111827);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.counts {
  font-size: 13px;
  color: var(--ink-soft, #6b7280);
  margin: 0;
}

/* ── year groups ── */
.group {
  margin-bottom: 48px;
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.group-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #111827);
}

.group-head .count {
  font-size: 13px;
  color: var(--ink-soft, #6b7280);
}

.group-rule {
  height: 2px;
  border-radius: 1px;
  margin-bottom: 24px;
  background: #e0001a;
}

/* ── card grid ── */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── card ── */
.item {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* image — short banner strip */
.item-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--surface-2, #f3f4f6);
  flex-shrink: 0;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* body below the image */
.item-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.item-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-head h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--ink, #111827);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.tag.industry { background: #fce7ea; color: #b0000f; }
.tag.portal   { background: #ede9fe; color: #5b21b6; }
.tag.partner  { background: #d1fae5; color: #065f46; }
.tag.cert     { background: #fef3c7; color: #92400e; }
.tag.when     { background: var(--surface-2, #f3f4f6); color: var(--ink-soft, #6b7280); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* excerpt */
.item-body > p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft, #4b5563);
  margin: 0;
  flex: 1;
}

/* action row */
.status {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #e0001a;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
}

.cta:hover { background: #b8000f; }

/* ── responsive ── */
@media (max-width: 600px) {
  .controls { gap: 12px; }
  .items { grid-template-columns: 1fr; }
  .segmented button { padding: 6px 12px; }
}
