/* Extracted from templates/layout.php inline styles */
.post .hero-img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	margin: 12px 0;
	display: block;
}

.post .title {
	margin: 1rem 0 0.5rem 0;
	font-size: 1.8rem;
	line-height: 1.3;
}

.post .tldr {
	color: var(--muted, #666);
	font-size: 1.05rem;
	margin: 0.5rem 0;
	font-style: italic;
}

.post .meta {
	color: var(--muted, #666);
	font-size: 0.9rem;
	margin: 0.5rem 0;
}

.post .prose {
	margin-top: 1rem;
	line-height: 1.7;
	font-size: 1.05rem;
	color: var(--text, #333);
}

.post .prose p {
	margin: 0 0 1.5rem 0;
	text-align: justify;
}

.post .prose p:last-child { margin-bottom: 0; }
.post .prose p:first-child { margin-top: 0; }

.post .protect {
	margin: 1.5rem 0;
	padding: 1rem;
	background: var(--card, #f8f9fa);
	border-radius: 8px;
	border-left: 4px solid #007cba;
}

.post .sources { margin: 1.5rem 0; }
.post .sources h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.post .sources ul { margin: 0; padding-left: 1.5rem; }
.post .sources li { margin: 0.25rem 0; }

.post .severity-low { color: #1d6b1d; font-weight: 600; }
.post .severity-medium { color: #8a5a00; font-weight: 600; }
.post .severity-high { color: #8a1f1f; font-weight: 600; }
.post .severity-critical { color: #7a0018; font-weight: 600; }

.post .post-type {
	background: var(--accent, #007cba);
	color: var(--accent-text, #fff);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 500;
}

.post .badge {
	display: inline-block;
	margin: 0.25rem 0.5rem 0.25rem 0;
	padding: 0.25rem 0.75rem;
	background: var(--accent, #007cba);
	color: var(--accent-text, #fff);
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
}

.post .badge-actor { background: #6f42c1; }
.post .badge-sector { background: #fd7e14; }
.post .badge-region { background: #20c997; }
.post .badge-cve { background: #dc3545; }
.post .badge-products { background: #6c757d; }

.post .tag {
	display: inline-block;
	margin: 0.25rem 0.5rem 0.25rem 0;
	padding: 0.25rem 0.75rem;
	background: #007bff;
	color: #fff;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}
.post .tag:hover { background: #0056b3; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,123,255,0.3); }
.post .tag:nth-child(1) { background: #007bff; }
.post .tag:nth-child(2) { background: #28a745; }
.post .tag:nth-child(3) { background: #dc3545; }
.post .tag:nth-child(4) { background: #ffc107; color: #000; }
.post .tag:nth-child(5) { background: #6f42c1; }
.post .tag:nth-child(6) { background: #fd7e14; }
.post .tag:nth-child(7) { background: #20c997; }
.post .tag:nth-child(8) { background: #6c757d; }

.post .threat-info,
.post .vulnerability-info {
	margin: 1.5rem 0;
	padding: 1rem;
	background: var(--card, #f8f9fa);
	border-radius: 8px;
	border-left: 4px solid #28a745;
}

.post .threat-info h2,
.post .vulnerability-info h2 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.post .threat-info ul,
.post .vulnerability-info ul { margin: 0; padding-left: 1.5rem; }
.post .threat-info li,
.post .vulnerability-info li { margin: 0.25rem 0; }

/* Mobile-first responsive post styles */
@media (max-width: 768px) {
  .post .title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0.75rem 0 0.5rem 0;
  }
  
  .post .tldr {
    font-size: 1rem;
    margin: 0.4rem 0;
  }
  
  .post .meta {
    font-size: 0.85rem;
    margin: 0.4rem 0;
  }
  
  .post .prose {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.75rem;
  }
  
  .post .prose p {
    margin: 0 0 1.25rem 0;
    text-align: left; /* Better for mobile reading */
  }
  
  .post .protect {
    margin: 1.25rem 0;
    padding: 0.75rem;
  }
  
  .post .badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    margin: 0.2rem 0.4rem 0.2rem 0;
  }
  
  .post .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    margin: 0.2rem 0.4rem 0.2rem 0;
  }
}

@media (max-width: 480px) {
  .post .title {
    font-size: 1.3rem;
    line-height: 1.35;
    margin: 0.5rem 0 0.4rem 0;
  }
  
  .post .tldr {
    font-size: 0.95rem;
    margin: 0.3rem 0;
  }
  
  .post .meta {
    font-size: 0.8rem;
    margin: 0.3rem 0;
  }
  
  .post .prose {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
  }
  
  .post .prose p {
    margin: 0 0 1rem 0;
  }
  
  .post .protect {
    margin: 1rem 0;
    padding: 0.6rem;
  }
  
  .post .badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem 0.3rem 0.15rem 0;
  }
  
  .post .tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    margin: 0.15rem 0.3rem 0.15rem 0;
  }
  
  .post .sources h3 {
    font-size: 1rem;
  }
  
  .post .threat-info h2,
  .post .vulnerability-info h2 {
    font-size: 1rem;
  }
}


