/* ==========================================================================
   You Secure — Magic Editorial Theme
   Adapted from Magic Marketing Design System with You Secure Dark Brand Identity
   ========================================================================== */

:root {
  --ys-bg: #080a12;
  --ys-bg-card: #0e1322;
  --ys-surface: #121829;
  --ys-surface-elevated: #161e33;
  --ys-surface-highlight: #1b253f;
  --ys-border: rgba(255, 255, 255, 0.08);
  --ys-border-hover: rgba(0, 212, 255, 0.4);
  --ys-border-subtle: rgba(255, 255, 255, 0.04);
  --ys-ink: #f8fafc;
  --ys-ink-soft: #e2e8f0;
  --ys-muted: #94a3b8;
  --ys-muted-dim: #64748b;
  --ys-cyan: #00d4ff;
  --ys-cyan-light: #5ee7ff;
  --ys-cyan-glow: rgba(0, 212, 255, 0.28);
  --ys-green: #10b981;
  --ys-green-glow: rgba(16, 185, 129, 0.25);
  --ys-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --ys-hover-shadow: 0 16px 40px rgba(0, 212, 255, 0.12);
  --ys-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Header Navigation (Matches You Secure Brand)
   ========================================================================== */
.ys-site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ys-border);
}

.ys-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ys-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ys-ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.ys-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.ys-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
}

.ys-desktop-nav a {
  color: var(--ys-muted);
  text-decoration: none;
  transition: color 0.18s ease;
  padding: 6px 0;
  position: relative;
}

.ys-desktop-nav a:hover,
.ys-desktop-nav a.is-active {
  color: var(--ys-cyan);
}

.ys-desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ys-cyan);
  border-radius: 99px;
  box-shadow: 0 0 8px var(--ys-cyan-glow);
}

.ys-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ys-login {
  color: var(--ys-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ys-login:hover {
  color: var(--ys-ink);
}

.ys-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(100deg, #00d4ff, #00b4d8);
  color: #080a12 !important;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--ys-cyan-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ys-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.4);
  filter: brightness(1.08);
}

.ys-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ys-border);
  color: var(--ys-ink);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.ys-mobile-nav {
  display: none;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--ys-border);
  background: #0a0d18;
}

.ys-mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ys-mobile-nav a {
  color: var(--ys-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.ys-mobile-nav a.is-active,
.ys-mobile-nav a:hover {
  color: var(--ys-cyan);
}

.ys-mobile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ys-border);
  margin-top: 8px;
}

@media (max-width: 860px) {
  .ys-desktop-nav,
  .ys-header-actions {
    display: none;
  }
  .ys-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   Magic Magazine Wrapper & Layout
   ========================================================================== */
.mm-blog-page {
  background: var(--ys-bg);
  color: var(--ys-ink);
  min-height: 100vh;
  font-family: var(--ys-font-sans);
}

.mm-magazine {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 90px;
  box-sizing: border-box;
}

/* Hero Section */
.mm-magazine-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
  background: radial-gradient(circle at 18% 20%, rgba(0, 212, 255, 0.08) 0, transparent 32%),
              radial-gradient(circle at 82% 20%, rgba(16, 185, 129, 0.06) 0, transparent 32%);
}

.mm-blog-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ys-cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mm-magazine-hero h1 {
  max-width: 920px;
  margin: 0 auto 16px;
  color: var(--ys-ink);
  font-size: clamp(2.6rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-wrap: balance;
}

.mm-magazine-hero h1 em,
.mm-newsletter h2 em {
  font-style: normal;
  background: var(--ys-gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mm-magazine-hero p:not(.mm-blog-kicker) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ys-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.mm-hero-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 8px 18px;
  background: rgba(14, 19, 34, 0.7);
  border: 1px solid var(--ys-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.mm-hero-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ys-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mm-select-box.is-hero .mm-dropdown-select {
  background: #080a12;
  border-color: rgba(0, 212, 255, 0.3);
  padding: 8px 34px 8px 14px;
  font-size: 0.88rem;
}

.mm-select-box.is-hero .mm-dropdown-select:hover,
.mm-select-box.is-hero .mm-dropdown-select:focus {
  border-color: var(--ys-cyan);
  box-shadow: 0 0 14px var(--ys-cyan-glow);
}

/* ==========================================================================
   Top Stories Grid (1 Big Card + 2 Smaller Cards)
   ========================================================================== */
.mm-top-stories {
  padding: 24px 0 40px;
}

.mm-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mm-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ys-border);
  border-radius: 18px;
  background: var(--ys-bg-card);
  box-shadow: var(--ys-card-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mm-story-card:hover {
  transform: translateY(-4px);
  border-color: var(--ys-border-hover);
  box-shadow: var(--ys-hover-shadow);
}

.mm-story-card.is-large {
  grid-column: span 1;
}

.mm-story-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: #060810;
  text-decoration: none;
}

.mm-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mm-story-card:hover .mm-story-image img {
  transform: scale(1.04);
}

.mm-story-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00d4ff;
  color: #080a12;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mm-story-card:hover .mm-story-arrow {
  transform: scale(1.12);
  background: #5ee7ff;
}

.mm-story-card-copy {
  position: relative;
  margin: -32px 14px 14px;
  padding: 20px 20px 18px;
  border: 1px solid var(--ys-border);
  border-radius: 14px;
  background: var(--ys-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mm-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ys-muted-dim);
  font-size: 0.72rem;
  font-weight: 600;
}

.mm-story-meta a {
  color: var(--ys-cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.mm-story-meta a:hover {
  text-decoration: underline;
}

.mm-story-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-story-card h2 a {
  color: var(--ys-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.mm-story-card:hover h2 a {
  color: var(--ys-cyan);
}

.mm-story-card-copy > p:last-child {
  margin: 0;
  color: var(--ys-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Category Dropdown & Filter Controls
   ========================================================================== */
.mm-latest {
  padding-top: 24px;
}

.mm-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 22px;
  background: var(--ys-bg-card);
  border: 1px solid var(--ys-border);
  border-radius: 14px;
}

.mm-latest-title-group h2 {
  margin: 4px 0 0;
  color: var(--ys-ink);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.mm-latest-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-category-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ys-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mm-dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #080a12;
  color: var(--ys-ink);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ys-border);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 260px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-dropdown-select:hover,
.mm-dropdown-select:focus {
  border-color: var(--ys-cyan);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
  color: #fff;
}

.mm-dropdown-select option {
  background: #0e1322;
  color: #f8fafc;
  padding: 8px 12px;
}

.mm-select-chevron {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--ys-cyan);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.mm-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mm-clear-filter:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
}

.mm-latest-pagination-info {
  color: var(--ys-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  padding-left: 10px;
  border-left: 1px solid var(--ys-border);
}

.mm-latest-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Feature Card (Big Horizontal/Editorial) */
.mm-latest-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ys-border);
  border-radius: 18px;
  background: var(--ys-bg-card);
  box-shadow: var(--ys-card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mm-latest-feature:hover {
  transform: translateY(-4px);
  border-color: var(--ys-border-hover);
  box-shadow: var(--ys-hover-shadow);
}

.mm-latest-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  background: #060810;
}

.mm-latest-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mm-latest-feature:hover .mm-latest-image img,
.mm-latest-card:hover .mm-latest-image img {
  transform: scale(1.04);
}

.mm-latest-image > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00d4ff;
  color: #080a12;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--ys-cyan-glow);
  transition: transform 0.2s ease;
}

.mm-latest-card:hover .mm-latest-image > span,
.mm-latest-feature:hover .mm-latest-image > span {
  transform: scale(1.1);
  background: #5ee7ff;
}

.mm-latest-copy {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  flex: 1;
}

.mm-latest-copy h3 {
  margin: 0 0 10px;
  color: var(--ys-ink);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-latest-copy h3 a {
  color: var(--ys-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

.mm-latest-feature:hover h3 a,
.mm-latest-card:hover h3 a {
  color: var(--ys-cyan);
}

.mm-latest-copy p {
  margin: 0 0 14px;
  color: var(--ys-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mm-latest-copy small {
  margin-top: auto;
  color: var(--ys-muted-dim);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Side Stacked Cards */
.mm-latest-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mm-latest-side .mm-latest-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ys-border);
  border-radius: 16px;
  background: var(--ys-bg-card);
  box-shadow: var(--ys-card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mm-latest-side .mm-latest-image {
  min-height: 100%;
  aspect-ratio: auto;
}

.mm-latest-side .mm-latest-copy {
  padding: 16px 18px;
}

.mm-latest-side .mm-latest-copy h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

/* Latest Grid (3 Columns) */
.mm-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mm-latest-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ys-border);
  border-radius: 18px;
  background: var(--ys-bg-card);
  box-shadow: var(--ys-card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mm-latest-card:hover {
  transform: translateY(-4px);
  border-color: var(--ys-border-hover);
  box-shadow: var(--ys-hover-shadow);
}

.mm-latest-card .mm-latest-copy {
  padding: 20px;
}

.mm-latest-card .mm-latest-copy h3 {
  font-size: 1.15rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.mm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 50px 0 20px;
  flex-wrap: wrap;
}

.mm-page-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--ys-border);
  background: var(--ys-bg-card);
  color: var(--ys-ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mm-page-btn:hover {
  border-color: var(--ys-cyan);
  color: var(--ys-cyan);
  transform: translateY(-1px);
}

.mm-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mm-page-num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--ys-border);
  background: var(--ys-bg-card);
  color: var(--ys-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mm-page-num:hover {
  border-color: var(--ys-cyan);
  color: var(--ys-cyan);
}

.mm-page-num.is-active {
  border-color: var(--ys-cyan);
  background: var(--ys-cyan);
  color: #080a12;
  font-weight: 850;
  box-shadow: 0 4px 14px var(--ys-cyan-glow);
}

.mm-page-dots {
  color: var(--ys-muted-dim);
  padding: 0 4px;
}

/* ==========================================================================
   Newsletter / Commercial CTA Section (Editorial Horizon)
   ========================================================================== */
.mm-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 68px;
  padding: 38px 42px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(0, 212, 255, 0.12), #0e1526 60%, rgba(16, 185, 129, 0.08));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.mm-newsletter h2 {
  margin: 6px 0 10px;
  color: var(--ys-ink);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.mm-newsletter p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--ys-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.mm-newsletter-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(100deg, #00d4ff, #00b4d8);
  color: #080a12 !important;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--ys-cyan-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mm-newsletter-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.45);
  filter: brightness(1.1);
}

/* ==========================================================================
   Single Post Page (Editorial Reading Flow)
   ========================================================================== */
.reading-progress {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.reading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--ys-gradient-accent);
  transition: width 0.08s linear;
}

.mm-post-page {
  background: var(--ys-bg);
  color: var(--ys-ink);
  min-height: 100vh;
}

.mm-post {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 40px) 100px;
}

/* Post Header */
.mm-post-header {
  max-width: 1040px;
  margin: 0 auto 28px;
  text-align: center;
}

.mm-post-header h1 {
  margin: 0 auto 18px;
  color: var(--ys-ink);
  font-size: clamp(1.65rem, 2.75vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 1000px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--ys-muted);
  font-size: 0.78rem;
}

.mm-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.mm-meta-item a,
a.mm-meta-item {
  color: var(--ys-cyan);
  font-weight: 700;
  text-decoration: none;
}

.mm-meta-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mm-blog-breadcrumb {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--ys-muted-dim);
}

.mm-blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-blog-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--ys-muted-dim);
}

.mm-blog-breadcrumb a {
  color: var(--ys-muted);
  text-decoration: none;
}

.mm-blog-breadcrumb a:hover {
  color: var(--ys-cyan);
}

.mm-blog-breadcrumb li[aria-current="page"] {
  color: var(--ys-cyan);
  font-weight: 600;
}

/* Post Featured Image */
.mm-post-figure {
  margin: 0 0 28px;
}

.mm-post-figure img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--ys-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.mm-post-figure figcaption {
  margin-top: 10px;
  color: var(--ys-muted-dim);
  font-size: 0.75rem;
  text-align: center;
}

/* Post Byline (Gabriel Kemmer) */
.mm-post-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 600px;
  margin: 24px auto 32px;
  padding: 12px 18px;
  border-top: 1px solid var(--ys-border);
  border-bottom: 1px solid var(--ys-border);
  text-align: left;
}

.mm-post-byline-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ys-cyan);
  box-shadow: 0 4px 16px var(--ys-cyan-glow);
}

.mm-post-byline > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.mm-post-byline span {
  color: var(--ys-cyan);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mm-post-byline strong {
  color: var(--ys-ink);
  font-size: 0.92rem;
}

.mm-post-byline small {
  color: var(--ys-muted);
  font-size: 0.74rem;
}

.mm-post-byline > a {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--ys-border);
  border-radius: 999px;
  color: var(--ys-cyan);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.18s ease;
}

.mm-post-byline > a:hover {
  border-color: var(--ys-cyan);
  background: rgba(0, 212, 255, 0.12);
}

/* Executive Summary / TL;DR */
.mm-executive-summary {
  max-width: 900px;
  margin: 32px auto 44px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 30px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.12), #101626 65%, rgba(16, 185, 129, 0.08));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.mm-executive-answer .mm-blog-kicker {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.mm-executive-answer > strong {
  display: block;
  color: var(--ys-ink);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mm-executive-points {
  padding-left: 24px;
  border-left: 1px solid var(--ys-border);
}

.mm-executive-points h2 {
  margin: 0 0 12px;
  color: var(--ys-ink);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.mm-executive-points ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ys-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.mm-executive-points li {
  margin: 6px 0;
}

/* ==========================================================================
   Content Reading Grid (Sticky TOC on Left, Main Column on Right)
   ========================================================================== */
.mm-post-content {
  max-width: 1140px;
  margin: 36px auto 0;
}

.mm-post-reading-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 780px);
  justify-content: center;
  align-items: start;
  gap: 52px;
}

.mm-post-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 18px 16px;
  border: 1px solid var(--ys-border);
  border-radius: 16px;
  background: var(--ys-bg-card);
}

.mm-post-toc .mm-blog-kicker {
  justify-content: flex-start;
  margin-bottom: 12px;
  font-size: 0.65rem;
}

.mm-post-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-post-toc li {
  margin: 0;
}

.mm-post-toc li.toc-level-3 {
  padding-left: 12px;
}

.mm-post-toc a {
  display: block;
  color: var(--ys-muted);
  font-size: 0.74rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mm-post-toc a:hover {
  color: var(--ys-cyan);
}

.mm-post-toc-mobile {
  display: none;
}

.mm-post-reading-column {
  min-width: 0;
}

/* ==========================================================================
   Post Body Typography (Inter + High Legibility)
   ========================================================================== */
.mm-post-body {
  color: var(--ys-ink-soft);
  font-size: 1.08rem;
  line-height: 1.82;
}

.mm-post-body p {
  margin: 0 0 1.4em;
}

.mm-post-body h2,
.mm-post-body h3 {
  color: var(--ys-ink);
  line-height: 1.15;
  letter-spacing: -0.04em;
  scroll-margin-top: 100px;
}

.mm-post-body h2 {
  margin: 2.2em 0 0.8em;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  border-bottom: 1px solid var(--ys-border);
  padding-bottom: 8px;
}

.mm-post-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 750;
}

.mm-post-body a {
  color: var(--ys-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.mm-post-body a:hover {
  color: var(--ys-cyan-light);
}

.mm-post-body ul,
.mm-post-body ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}

.mm-post-body li {
  margin: 0.45em 0;
}

.mm-post-body blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--ys-cyan);
  border-radius: 0 12px 12px 0;
  color: var(--ys-ink);
  background: rgba(0, 212, 255, 0.06);
  font-style: italic;
}

.mm-post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Callouts */
.mm-post-body aside.mm-callout {
  margin: 2em 0;
  padding: 20px 24px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-left: 4px solid var(--ys-cyan);
  border-radius: 14px;
  color: var(--ys-ink-soft);
  background: rgba(0, 212, 255, 0.06);
  line-height: 1.65;
}

.mm-post-body aside.mm-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ys-cyan);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Code Blocks */
.mm-post-body pre {
  position: relative;
  overflow-x: auto;
  padding: 20px 22px;
  margin: 1.8em 0;
  border: 1px solid var(--ys-border);
  border-radius: 12px;
  background: #05070e;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.65;
}

.mm-post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--ys-cyan-light);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
}

.mm-post-body pre code {
  color: inherit;
  background: transparent;
  padding: 0;
}

/* Tables */
.mm-post-body table {
  width: 100%;
  margin: 2em 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ys-border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.88rem;
}

.mm-post-body th {
  background: var(--ys-surface);
  color: var(--ys-ink);
  font-weight: 750;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--ys-border);
}

.mm-post-body td {
  padding: 12px 18px;
  color: var(--ys-muted);
  background: var(--ys-bg-card);
  border-bottom: 1px solid var(--ys-border-subtle);
}

.mm-post-body tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   In-Article Conversion CTA (You Secure VPS Pitch)
   ========================================================================== */
.mm-post-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 54px 0 44px;
  padding: 28px 32px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(110deg, #111a2d, #0d1322);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.mm-post-cta h2 {
  margin: 6px 0 8px;
  color: var(--ys-ink);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.mm-post-cta p:not(.mm-blog-kicker) {
  max-width: 500px;
  margin: 0;
  color: var(--ys-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.mm-post-cta > a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(100deg, #00d4ff, #00b4d8);
  color: #080a12 !important;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 22px var(--ys-cyan-glow);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.mm-post-cta > a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.mm-cta-sublinks {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mm-cta-sublinks a {
  color: var(--ys-cyan);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.mm-post-faq {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--ys-border);
}

.mm-post-faq h2,
.mm-related h2,
.mm-share h2 {
  margin: 0 0 20px;
  color: var(--ys-ink);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.mm-post-faq details {
  border-bottom: 1px solid var(--ys-border);
  padding: 16px 0;
  transition: background 0.2s ease;
}

.mm-post-faq summary {
  cursor: pointer;
  color: var(--ys-ink-soft);
  font-weight: 750;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mm-post-faq summary::-webkit-details-marker {
  display: none;
}

.mm-post-faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--ys-cyan);
  font-weight: 700;
  margin-left: 12px;
}

.mm-post-faq details[open] summary::after {
  content: "−";
}

.mm-post-faq p {
  margin: 12px 0 0;
  color: var(--ys-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Comments */
.mm-comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--ys-border);
}

.mm-comments h3 {
  margin: 0 0 20px;
  color: var(--ys-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.mm-comments .comment {
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--ys-bg-card);
  border: 1px solid var(--ys-border);
  border-radius: 12px;
}

.mm-comments .comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.mm-comments .comment-author {
  color: var(--ys-cyan);
  font-weight: 750;
}

.mm-comments .comment-date {
  color: var(--ys-muted-dim);
}

.mm-comments p {
  margin: 0;
  color: var(--ys-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Author Footer Card (Gabriel Kemmer)
   ========================================================================== */
.mm-post-author-footer {
  max-width: 660px;
  margin: 76px auto 0;
  padding: 38px 24px 0;
  border-top: 1px solid var(--ys-border);
  text-align: center;
}

.mm-author-avatar {
  display: block;
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  margin: 0 auto 16px;
  border: 3px solid var(--ys-cyan);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px var(--ys-cyan-glow);
}

.mm-post-author-footer h2 {
  margin: 8px 0 4px;
  color: var(--ys-ink);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.mm-author-role {
  margin: 0;
  color: var(--ys-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.mm-author-bio {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ys-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.mm-post-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mm-tag-item {
  padding: 6px 12px;
  border: 1px solid var(--ys-border);
  border-radius: 999px;
  color: var(--ys-muted);
  background: var(--ys-bg-card);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.mm-tag-item:hover {
  border-color: var(--ys-cyan);
  color: var(--ys-cyan);
}

/* ==========================================================================
   Related Posts & Sharing
   ========================================================================== */
.mm-related {
  max-width: 900px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--ys-border);
}

.mm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mm-related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--ys-border);
  border-radius: 14px;
  background: var(--ys-bg-card);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mm-related-card:hover {
  border-color: var(--ys-border-hover);
  background: var(--ys-surface);
  transform: translateY(-2px);
}

.mm-related-card span {
  color: var(--ys-cyan);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mm-related-card strong {
  color: var(--ys-ink);
  font-size: 0.96rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-related-card small {
  margin-top: auto;
  color: var(--ys-muted-dim);
  font-size: 0.72rem;
}

.mm-share {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--ys-border);
  border-bottom: 1px solid var(--ys-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mm-share h2 {
  margin: 0;
  font-size: 1rem;
}

.mm-share > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-share a {
  padding: 8px 14px;
  border: 1px solid var(--ys-border);
  border-radius: 999px;
  color: var(--ys-cyan);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.18s ease;
}

.mm-share a:hover {
  border-color: var(--ys-cyan);
  background: rgba(0, 212, 255, 0.12);
}

.mm-back-link {
  display: block;
  width: max-content;
  margin: 34px auto 0;
  color: var(--ys-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.mm-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .mm-story-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mm-story-card.is-large {
    grid-column: span 2;
  }
  .mm-latest-layout {
    grid-template-columns: 1fr;
  }
  .mm-latest-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mm-latest-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mm-post-reading-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .mm-magazine-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }
  .mm-story-grid {
    grid-template-columns: 1fr;
  }
  .mm-story-card.is-large {
    grid-column: span 1;
  }
  .mm-blog-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .mm-category-chip {
    flex: none;
  }
  .mm-latest-side {
    grid-template-columns: 1fr;
  }
  .mm-latest-grid {
    grid-template-columns: 1fr;
  }
  .mm-newsletter {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }
  .mm-newsletter-link {
    width: 100%;
    justify-content: center;
  }
  .mm-post-header h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.25;
    -webkit-line-clamp: 2;
    max-width: 100%;
  }
  .mm-latest-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mm-latest-controls {
    width: 100%;
    justify-content: space-between;
  }
  .mm-executive-summary {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .mm-executive-points {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--ys-border);
    padding-top: 18px;
  }
  .mm-post-reading-grid {
    display: block;
  }
  .mm-post-toc {
    display: none;
  }
  .mm-post-toc-mobile {
    display: block;
    margin: 0 0 28px;
    padding: 14px 18px;
    border: 1px solid var(--ys-border);
    border-radius: 14px;
    background: var(--ys-bg-card);
  }
  .mm-post-toc-mobile summary {
    cursor: pointer;
    color: var(--ys-ink);
    font-size: 0.85rem;
    font-weight: 800;
  }
  .mm-post-toc-mobile ol {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 18px;
  }
  .mm-post-toc-mobile a {
    color: var(--ys-muted);
    font-size: 0.8rem;
    text-decoration: none;
  }
  .mm-post-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .mm-post-cta > a {
    width: 100%;
    justify-content: center;
  }
  .mm-related-grid {
    grid-template-columns: 1fr;
  }
  .mm-share {
    flex-direction: column;
    align-items: flex-start;
  }
}
