/* VMwareMadeSimple — Shared Stylesheet
   Professional publication design. No frameworks, no CDNs.
   Red accent (#c8102e), serif body, system sans UI.
*/

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Variables ── */
:root {
  --ink: #0f1419;
  --paper: #ffffff;
  --surface: #f5f6f8;
  --muted: #5c6773;
  --rule: #d4d9e0;
  --rule-light: #e8eaed;
  --accent: #c8102e;
  --accent-dark: #8a0a1f;
  --link: #0a58ca;
  --green: #1a7f37;
  --max-width: 1160px;
  --content-width: 760px;
}

/* ── Base ── */
body {
  font-family: Georgia, 'Charter', 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Alert strip ── */
.alert-strip {
  background: var(--accent);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem 1rem;
  font-weight: 600;
}
.alert-strip a { color: #fff; text-decoration: underline; }

/* ── Masthead ── */
.masthead {
  border-bottom: 4px solid var(--ink);
  padding: 1.5rem 0 0.8rem;
  text-align: center;
}
.masthead-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.masthead h1 {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.masthead h1 a { color: var(--ink); text-decoration: none; }
.masthead h1 .red { color: var(--accent); }
.masthead .tagline {
  font-family: -apple-system, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}
.credibility-bar {
  font-family: -apple-system, sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.credibility-bar .creds { display: flex; gap: 1rem; flex-wrap: wrap; }
.credibility-bar .creds .dot { color: var(--accent); font-weight: 700; }
.credibility-bar .social { display: flex; gap: 0.8rem; }
.credibility-bar .social a {
  font-size: 0.68rem; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Category nav ── */
.navbar {
  background: var(--ink);
  font-family: -apple-system, sans-serif;
  font-size: 0.82rem;
  border-bottom: 1px solid #000;
  position: sticky; top: 0; z-index: 50;
}
.navbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.5rem; display: flex; align-items: center; overflow-x: auto;
}
.navbar a {
  color: #c9d1d9; text-decoration: none; font-weight: 600;
  letter-spacing: 0.3px; padding: 0.7rem 1.1rem; white-space: nowrap;
  transition: 0.15s;
}
.navbar a:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.navbar a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-search { margin-left: auto; display: flex; align-items: center; padding: 0.4rem 0; }
.nav-search input {
  background: #1c2128; border: 1px solid #2d333b; color: #c9d1d9;
  padding: 0.3rem 0.6rem; border-radius: 3px; font-size: 0.78rem;
  width: 160px; font-family: -apple-system, sans-serif;
}
.nav-search input::placeholder { color: #6e7681; }

/* ── Layout ── */
.main {
  max-width: var(--max-width); margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 2rem;
}

/* ── Article content area (shared) ── */
.article-body { max-width: var(--content-width); margin: 0 auto; padding: 0 1rem; }
.article-body h2 {
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  margin-top: 2rem; margin-bottom: 0.5rem; line-height: 1.3;
}
.article-body h3 {
  font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700;
  margin-top: 1.5rem; margin-bottom: 0.4rem; line-height: 1.3;
}
.article-body p { margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.7; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.3rem; font-size: 1rem; line-height: 1.6; }
.article-body strong { font-weight: 700; }
.article-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em; background: var(--surface); padding: 0.1rem 0.3rem;
  border-radius: 2px; border: 1px solid var(--rule-light);
}
.article-body pre {
  background: #0d1117; color: #c9d1d9; padding: 1rem 1.2rem;
  border-radius: 4px; overflow-x: auto; margin-bottom: 1.2rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem; line-height: 1.5;
}
.article-body pre code { background: none; border: none; padding: 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 0.5rem 1rem;
  margin: 1rem 0; background: var(--surface); font-style: italic;
  color: #3d4450;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: 0.9rem;
}
.article-body th {
  background: var(--ink); color: #fff; padding: 0.5rem 0.7rem;
  text-align: left; font-family: -apple-system, sans-serif;
  font-size: 0.82rem; font-weight: 600;
}
.article-body td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule-light); }
.article-body tr:nth-child(even) td { background: var(--surface); }

/* Callouts */
.callout, .callout-red, .callout-green {
  padding: 0.8rem 1rem; margin: 1rem 0; border-radius: 2px; font-size: 0.92rem;
}
.callout { background: #fef9e7; border-left: 3px solid #f0ad4e; }
.callout-red { background: #fdf0f0; border-left: 3px solid var(--accent); }
.callout-green { background: #eef7ee; border-left: 3px solid var(--green); }

/* ── Article page header ── */
.article-header {
  max-width: var(--content-width); margin: 0 auto;
  padding: 2rem 1rem 1.5rem; border-bottom: 1px solid var(--rule);
}
.article-header .breadcrumb {
  font-family: -apple-system, sans-serif; font-size: 0.75rem; color: var(--muted);
  margin-bottom: 0.5rem;
}
.article-header .breadcrumb a { color: var(--muted); }
.article-header .cat-label {
  font-family: -apple-system, sans-serif; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent);
  margin-bottom: 0.4rem;
}
.article-header h1 {
  font-family: Georgia, serif; font-size: 2rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 0.5rem;
}
.article-header .byline {
  font-family: -apple-system, sans-serif; font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.article-header .byline .verified {
  background: #ddf4e0; color: var(--green); font-size: 0.68rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 2px; text-transform: uppercase;
}

/* ── Article footer / related ── */
.article-footer {
  max-width: var(--content-width); margin: 0 auto;
  padding: 1.5rem 1rem; border-top: 1px solid var(--rule);
}
.related-box {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.related-box h4 {
  font-family: -apple-system, sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; margin-bottom: 0.5rem;
}
.related-box ul { list-style: none; }
.related-box li { padding: 0.2rem 0; }
.related-box a { color: var(--link); font-size: 0.9rem; }

/* ── Newsletter CTA ── */
.newsletter-cta {
  max-width: var(--content-width); margin: 2rem auto;
  padding: 1.5rem; background: var(--ink); color: #c9d1d9;
  text-align: center; border-radius: 4px;
}
.newsletter-cta h3 { color: #fff; font-family: Georgia, serif; font-size: 1.4rem; margin-bottom: 0.4rem; }
.newsletter-cta p { font-family: -apple-system, sans-serif; font-size: 0.85rem; color: #8b949e; margin-bottom: 1rem; }
.newsletter-cta input {
  background: #1c2128; border: 1px solid #2d333b; color: #fff;
  padding: 0.55rem 0.7rem; border-radius: 4px; font-size: 0.85rem;
  width: 260px; max-width: 80%; font-family: -apple-system, sans-serif;
}
.newsletter-cta button {
  background: var(--accent); color: #fff; border: none;
  padding: 0.55rem 1.5rem; border-radius: 4px; font-weight: 700;
  cursor: pointer; font-size: 0.85rem; font-family: -apple-system, sans-serif;
}
.newsletter-cta button:hover { background: var(--accent-dark); }

/* ── Homepage specific ── */
.hero-featured {
  border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 1.5rem;
}
.hero-featured .cat-label {
  font-family: -apple-system, sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 0.4rem;
}
.hero-featured h2 {
  font-family: Georgia, serif; font-size: 1.9rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 0.5rem;
}
.hero-featured h2 a { color: var(--ink); text-decoration: none; }
.hero-featured h2 a:hover { color: var(--accent); text-decoration: none; }
.hero-featured .byline {
  font-family: -apple-system, sans-serif; font-size: 0.78rem; color: var(--muted);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.hero-featured .byline .verified {
  background: #ddf4e0; color: var(--green); font-size: 0.68rem; font-weight: 700;
  padding: 0.1rem 0.4rem; border-radius: 2px; text-transform: uppercase;
}
.hero-featured .excerpt { font-size: 1.05rem; color: #2d333b; line-height: 1.65; }
.hero-featured .continue {
  font-family: -apple-system, sans-serif; font-size: 0.82rem; font-weight: 700;
  color: var(--accent); margin-top: 0.6rem; display: inline-block;
}

.section-label {
  font-family: -apple-system, sans-serif; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0; margin: 1.5rem 0 0.8rem;
  display: flex; justify-content: space-between; align-items: center;
}
.section-label .meta { font-size: 0.68rem; color: var(--muted); font-weight: 500; }

.article-item { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-light); }
.article-item:last-child { border-bottom: none; }
.article-item .meta-line {
  font-family: -apple-system, sans-serif; font-size: 0.72rem; color: var(--muted);
  margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.4rem;
}
.article-item .meta-line .type {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent);
}
.article-item .meta-line .type.guide { color: var(--green); }
.article-item .meta-line .type.analysis { color: var(--link); }
.article-item .meta-line .type.tool { color: #8250df; }
.article-item h3 {
  font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.2rem;
}
.article-item h3 a { color: var(--ink); text-decoration: none; }
.article-item h3 a:hover { color: var(--link); text-decoration: none; }
.article-item .excerpt { font-size: 0.9rem; color: #3d4450; line-height: 1.5; }
.article-item .updated-badge {
  font-family: -apple-system, sans-serif; font-size: 0.62rem; font-weight: 700;
  color: var(--green); text-transform: uppercase; letter-spacing: 0.3px; margin-left: 0.3rem;
}

/* ── Sidebar ── */
.sidebar { font-family: -apple-system, sans-serif; }
.sidebar .widget { margin-bottom: 1.5rem; }
.sidebar h4 {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 0.3rem; margin-bottom: 0.6rem;
}
.sidebar .tool-card {
  border-left: 3px solid var(--accent); padding: 0.8rem 0.8rem 0.8rem 1rem; background: var(--surface);
}
.sidebar .tool-card h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.2rem; }
.sidebar .tool-card p { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
.sidebar .tool-card a { font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-top: 0.4rem; display: inline-block; }
.sidebar ol { list-style: none; counter-reset: trending; padding: 0; }
.sidebar ol li {
  counter-increment: trending; padding: 0.4rem 0 0.4rem 1.6rem;
  border-bottom: 1px solid var(--rule-light); position: relative; font-size: 0.82rem; line-height: 1.35;
}
.sidebar ol li:last-child { border-bottom: none; }
.sidebar ol li::before {
  content: counter(trending); position: absolute; left: 0; top: 0.4rem;
  font-size: 1rem; font-weight: 700; color: var(--accent); font-family: Georgia, serif;
}
.sidebar ol li a { color: var(--ink); text-decoration: none; }
.sidebar ol li a:hover { color: var(--link); }
.sidebar .about-box { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.8rem 0; }
.sidebar .about-box .author-name { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.sidebar .about-box .author-bio { font-size: 0.72rem; color: var(--muted); line-height: 1.45; margin-top: 0.2rem; }
.sidebar .newsletter-compact { border-left: 3px solid var(--ink); padding: 0.6rem 0.8rem; background: var(--surface); }
.sidebar .newsletter-compact h5 { font-size: 0.82rem; font-weight: 700; }
.sidebar .newsletter-compact p { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.4rem; }
.sidebar .newsletter-compact input {
  width: 100%; background: #fff; border: 1px solid var(--rule);
  padding: 0.4rem 0.5rem; border-radius: 2px; font-size: 0.78rem; margin-bottom: 0.3rem;
  font-family: -apple-system, sans-serif;
}
.sidebar .newsletter-compact button {
  width: 100%; background: var(--ink); color: #fff; border: none; padding: 0.4rem;
  border-radius: 2px; font-weight: 700; cursor: pointer; font-size: 0.78rem; font-family: -apple-system, sans-serif;
}
.sidebar .newsletter-compact button:hover { background: var(--accent); }

/* ── Hardware strip ── */
.hardware-strip { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem 2rem; }
.hardware-strip .hw-label {
  font-family: -apple-system, sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0; margin-bottom: 0.8rem; display: flex; justify-content: space-between;
}
.hardware-strip .hw-label .verify { color: var(--green); font-size: 0.65rem; }
.hardware-strip .hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.hw-item {
  font-family: -apple-system, sans-serif; padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule-light); font-size: 0.82rem;
}
.hw-item .hw-name { font-weight: 700; }
.hw-item .hw-spec { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.hw-item .hw-link { font-size: 0.72rem; font-weight: 600; color: var(--link); margin-top: 0.2rem; display: block; }
.hw-item .hw-link .disclosure { color: var(--muted); font-weight: 400; }

/* ── Footer ── */
footer {
  border-top: 4px solid var(--ink); padding: 1.2rem 1.5rem;
  max-width: var(--max-width); margin: 0 auto;
  font-family: -apple-system, sans-serif; font-size: 0.76rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer .footer-links { display: flex; gap: 1rem; }
footer .footer-links a { color: var(--muted); }
footer .aff-disclosure { font-size: 0.7rem; font-style: italic; color: #8b949e; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; gap: 1.5rem; }
  .hardware-strip .hw-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}
@media (max-width: 480px) {
  .masthead h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .credibility-bar { flex-direction: column; text-align: center; }
  .hero-featured h2 { font-size: 1.5rem; }
  .article-header h1 { font-size: 1.5rem; }
  .navbar-inner { padding: 0 0.75rem; }
  .navbar a { padding: 0.65rem 0.8rem; }
}
