/* W20e (2026-10-08): VMS blog. Same theme as the VMS web (MedSim_Web/src/style.css): dark teal, teal #22d3c5, Roboto. */
:root {
  --bg-primary: #0f1415; --bg-secondary: #141c1e; --bg-card: #162225; --bg-card-hover: #1c3032;
  --text-primary: #eef4f5; --text-secondary: #b9c6c9; --text-muted: #7d9094;
  --accent: #22d3c5; --accent-dim: #189e94; --accent-glow: rgba(34, 211, 197, 0.12);
  --border-subtle: rgba(34, 211, 197, 0.18); --border-card: rgba(185, 198, 201, 0.12);
  --font: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --max-width: 1000px; --read-width: 760px; --nav-height: 64px; --radius: 8px; --radius-lg: 16px; --transition: 0.3s ease;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body { font-family: var(--font); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.7; font-weight: 300;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: fixed; top: -50%; left: -25%; width: 150%; height: 100%; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,211,197,0.10) 0%, rgba(22,198,236,0.04) 40%, transparent 70%); }
main { flex: 1; width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); color: var(--accent); }
h3 { font-size: 1.15rem; }
p, li { color: var(--text-secondary); }
/* Justified text (Alejandro 2026-10-08): both edges, English hyphenation; centered blocks keep the last line centered. */
p, li, blockquote { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.page-hero p, .site-footer p { text-align-last: center; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }
strong { color: var(--text-primary); font-weight: 500; }

.site-nav { position: sticky; top: 0; z-index: 1000; background: rgba(15,20,21,0.9); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); height: var(--nav-height); display: flex; align-items: center; }
.nav-inner { max-width: var(--max-width); width: 100%; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); }
.nav-logo img { height: 36px; width: 36px; object-fit: contain; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 1.5rem; letter-spacing: 0.06em; color: #ffffff; }
.brand-sub { font-weight: 700; font-size: 0.6rem; letter-spacing: 0.14em; color: var(--accent); margin-top: 0.2rem; }
.nav-links { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; font-weight: 500; }

.btn { display: inline-flex; align-items: center; padding: 0.65rem 1.5rem; border-radius: var(--radius); font-size: 0.9rem;
  font-weight: 700; transition: all var(--transition); }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-primary { background: var(--accent); color: #0b1213; box-shadow: 0 2px 12px rgba(34,211,197,0.25); }
.btn-primary:hover { background: #1fbfb2; color: #0b1213; box-shadow: 0 4px 20px rgba(34,211,197,0.35); }

.page-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1rem 3rem; }
.page-hero { text-align: center; padding: 2rem 0 1rem; }
.page-hero h1 { background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.75rem; }
.page-hero .subtitle { font-size: 1.05rem; max-width: 680px; margin: 0 auto; }

.bucket { margin-top: 2.5rem; }
.bucket h2 { font-size: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 1rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.post-card { display: flex; flex-direction: column; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-lg); padding: 1.25rem; transition: all var(--transition); }
.post-card:hover { background: var(--bg-card-hover); border-color: var(--border-subtle); transform: translateY(-2px); }
.post-card h3 { color: var(--text-primary); }
.post-card p { font-size: 0.92rem; flex: 1; }
.post-card .read { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.crumbs { max-width: var(--read-width); margin: 0 auto 1.25rem; font-size: 0.85rem; color: var(--text-muted); }
.crumbs span { margin: 0 0.35rem; }
.post { max-width: var(--read-width); margin: 0 auto; overflow-wrap: break-word; }
.post-head { margin-bottom: 1.75rem; }
.post-head h1 { margin-bottom: 0.6rem; }
.post-meta { font-size: 0.85rem; color: var(--text-muted); }
.post p { margin: 0 0 1.1rem; font-size: 1.05rem; }
.post h2 { margin: 2.4rem 0 0.9rem; }
.post h3 { margin: 1.6rem 0 0.5rem; }
.post ul, .post ol { margin: 0 0 1.2rem 1.4rem; }
.post li { margin-bottom: 0.45rem; font-size: 1.02rem; }
.post li::marker { color: var(--accent); }
.post blockquote { border-left: 3px solid var(--accent); background: var(--accent-glow); padding: 0.9rem 1.1rem; margin: 0 0 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0; }
.post blockquote p { margin: 0; color: var(--text-primary); }
.post #sources ~ ol li { font-size: 0.9rem; }

.cta { max-width: var(--read-width); margin: 3rem auto 0; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.5rem; }
.cta-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: #0f1415; background: var(--accent);
  border-radius: 999px; padding: 0.15rem 0.65rem; margin-bottom: 0.6rem; }
.cta h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.cta p { margin-bottom: 1rem; }

.site-footer { border-top: 1px solid var(--border-subtle); padding: 2rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(20,28,30,0.5) 100%); margin-top: 3rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-inner p { color: var(--text-muted); font-size: 0.82rem; }
.footer-links { display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .nav-links { gap: 0.75rem; }
  .post p { font-size: 1rem; }
}
