/* ── SECTION ── */
.td-section {
  padding: 2rem 0 4rem;
}

/* ── CARD ── */
.td-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
}

/* ── DARK HEADER ── */
.td-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.td-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(74, 144, 196, 0.15);
  pointer-events: none;
}

/* ── CLOSED BADGE ── */
.td-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.td-closed-badge .icon svg {
  width: 13px;
  height: 13px;
  fill: #fca5a5;
}

/* ── TITLE ── */
.td-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── META PILLS ── */
.td-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.td-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.td-pill .icon {
  display: inline-flex;
  align-items: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.td-pill .icon svg {
  width: 13px;
  height: 13px;
  fill: rgba(255, 255, 255, 0.7);
}

.td-pill-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.td-pill--closed {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}

.td-pill--closed .icon svg {
  fill: #fca5a5;
}

/* ── BODY ── */
.td-body {
  background: #fff;
  padding: 2rem 2.5rem;
}

/* ── ACTIONS ── */
.td-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.75rem;
}

/* ── DOCUMENTS ── */
.td-docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.td-docs-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.td-docs-label .icon svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-color);
}

.td-doc-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* primary download button */
.td-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.td-dl-btn:hover {
  opacity: 0.9;
  color: #fff !important;
}

.td-dl-btn .icon svg {
  width: 13px;
  height: 13px;
  fill: #fff;
}

/* secondary download — outlined */
.td-dl-btn--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.td-dl-btn--secondary:hover {
  background: var(--primary-color);
  color: #fff !important;
  opacity: 1;
}

.td-dl-btn--secondary .icon svg {
  fill: var(--primary-color);
  transition: fill 0.15s;
}

.td-dl-btn--secondary:hover .icon svg {
  fill: #fff;
}

/* ── SHARE ── */
.td-share {
  flex-shrink: 0;
}

.td-share .share-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.td-share .button {
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  height: auto !important;
  padding: 5px 12px !important;
  border-color: #eee !important;
  color: #555 !important;
  background: #fff !important;
  transition: border-color 0.12s, color 0.12s !important;
}

.td-share .button:hover {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ── DESCRIPTION ── */
.td-description {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.td-description h2,
.td-description h3 {
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 0.75rem;
}

.td-description h2 { font-size: 20px; }
.td-description h3 { font-size: 17px; }

.td-description p  { margin-bottom: 1rem; }
.td-description ul,
.td-description ol { margin: 0.75rem 0 1rem 1.5rem; }
.td-description li { margin-bottom: 0.4rem; }
.td-description strong { color: #1a1a1a; }
.td-description a  { color: var(--primary-color); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .td-title { font-size: 24px; }
}

@media (max-width: 768px) {
  .td-section { padding: 1.5rem 0 3rem; }
  .td-header  { padding: 1.75rem 1.5rem; }
  .td-body    { padding: 1.5rem; }
  .td-title   { font-size: 20px; }

  .td-pills   { gap: 6px; }
  .td-pill    { font-size: 11px; padding: 4px 10px; }

  .td-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .td-dl-btn  { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .td-header { padding: 1.5rem 1.25rem; }
  .td-body   { padding: 1.25rem; }
  .td-title  { font-size: 18px; }
}