/* SRE & AI Control Plane — Content Styling (Posts, Resume, Archives, Categories, Tags, Trending) */

.page-body {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 0;
}

.page-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.page-hero .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--positive);
  margin-bottom: 6px;
}
.page-hero h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* =========================================================================
   TECHNICAL ARTICLE / POST VIEW (Runbook & Monograph Style)
   ========================================================================= */
.post-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 36px;
}
@media (max-width: 768px) {
  .post-container { padding: 20px 16px; }
}
.post-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.post-header h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--text);
}
.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.post-meta a {
  color: var(--accent);
  background: rgba(74, 138, 214, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(74, 138, 214, 0.25);
}
.post-meta .sep { color: var(--dim); margin: 0 4px; }

.post-content {
  font-size: 15.5px;
  line-height: 1.72;
  color: #d1d5db;
}
.post-content p {
  color: #d1d5db;
  margin-bottom: 18px;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 32px 0 14px;
  line-height: 1.3;
}
.post-content h1 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.post-content h2 { font-size: 19px; color: #ffffff; border-left: 2px solid var(--accent); padding-left: 12px; }
.post-content h3 { font-size: 16.5px; color: #f3f4f6; }
.post-content h4 { font-size: 15px; font-family: var(--mono); color: var(--positive); }
.post-content ul, .post-content ol {
  color: #d1d5db;
  margin: 0 0 18px 22px;
}
.post-content li { margin-bottom: 6px; }
.post-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(74, 138, 214, 0.4);
}
.post-content a:hover { color: var(--positive); }
.post-content strong { color: #ffffff; font-weight: 600; }
.post-content blockquote {
  border-left: 2px solid var(--warning);
  padding: 12px 18px;
  margin: 20px 0;
  background: #14161c;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
}
.post-content code {
  background: #181a20;
  border: 1px solid #262932;
  color: var(--positive);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}
.post-content pre {
  background: #08090c;
  border: 1px solid #1f222a;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 18px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e5e7eb;
  font-size: inherit;
}
.post-content .highlight {
  background: #08090c;
  border: 1px solid #1f222a;
  border-radius: 6px;
  margin: 18px 0;
  overflow: hidden;
}
.post-content .highlight pre {
  padding: 16px 18px;
  margin: 0;
  background: #08090c;
  border: none;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  text-align: left;
}
.post-content th {
  background: var(--raised);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}
.post-content td { color: #d1d5db; }
.post-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 8px 0;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* =========================================================================
   ARCHIVES / CATEGORIES / TAGS / TRENDING TABLES & LISTS
   ========================================================================= */
.list-year {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.list-year:first-child { margin-top: 0; }
.m-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.m-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.m-list li:last-child { border-bottom: none; }
.m-list li:hover { background: rgba(255, 255, 255, 0.025); }
.m-list .d {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  min-width: 90px;
}
.m-list a {
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.m-list a:hover { color: var(--accent); }

.tag-list, .cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list a, .cat-list a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 0.15s ease;
}
.tag-list a:hover, .cat-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tag-list .count, .cat-list .count {
  color: var(--positive);
  font-size: 11px;
  margin-left: 6px;
}

/* TRENDING REPOS GRID */
.tlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 820px) {
  .tlist { grid-template-columns: 1fr; }
}
.trow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  transition: border-color 0.15s ease;
}
.trow:hover { border-color: var(--accent); }
.trow .rk {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
}
.trow .nm {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--accent);
}
.trow .nm a { color: var(--text); border-bottom: 1px solid rgba(74, 138, 214, 0.4); }
.trow .nm a:hover { color: var(--accent); }
.trow .ds { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.45; }
.trow .lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--positive);
  margin-top: 6px;
}
.trow .st {
  font-family: var(--mono);
  color: var(--warning);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
