/* ==========================================================================
   NODE.COM.BR - Design System Google The Keyword (blog.google)
   Inspiração: blog.google & Material You / Expressive Web
   Tema: Dark Mode Prioritário (Deep Charcoal & OLED Friendly)
   Autor: Giancarlo Gil Ottaviani Raduan
   ========================================================================== */

:root {
  /* Google & Node Palette */
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --node-green: #22c55e;
  --node-green-glow: rgba(34, 197, 94, 0.28);
  --node-green-dim: rgba(34, 197, 94, 0.12);
  
  --aurora-blue: #8ab4f8;
  --aurora-green: #81c995;
  --aurora-purple: #c58af9;
  
  --aurora-gradient: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc04 100%);
  --node-gradient: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
  --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --vultr-gradient: linear-gradient(135deg, #007bfc 0%, #00b4d8 100%);

  /* DARK THEME (PRIORITÁRIO POR PADRÃO) */
  --bg: #0e1013;
  --bg-subtle: #14171c;
  --surface: #181b20;
  --surface-card: #1d2127;
  --surface-card-hover: #252b34;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(34, 197, 94, 0.35);

  --text: #f0f3f6;
  --text-secondary: #9aa0a6;
  --text-muted: #6b7280;
  --text-inverse: #0e1013;

  --accent: var(--node-green);
  --accent-dim: var(--node-green-dim);
  --accent-glow: var(--node-green-glow);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Google Expressive Shapes */
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-hero: 28px;
  --radius-thumb: 18px;
  --radius-sm: 10px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.15);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --surface: #f1f3f4;
  --surface-card: #ffffff;
  --surface-card-hover: #f8f9fa;
  --border: #dadce0;
  --border-hover: #bdc1c6;
  --border-glow: rgba(34, 197, 94, 0.4);

  --text: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --text-inverse: #ffffff;

  --node-green: #16a34a;
  --node-green-dim: rgba(22, 163, 74, 0.1);
  --node-green-glow: rgba(22, 163, 74, 0.2);

  --card-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 0 25px rgba(22, 163, 74, 0.12);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* ================= Top Reading Progress Bar ================= */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--aurora-gradient);
  z-index: 1050;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.5);
}

/* ================= Top Announcement (Google Style) ================= */
.top-announcement {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.top-announcement a {
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.top-announcement a:hover {
  text-decoration: underline;
  color: var(--aurora-blue);
}

/* ================= Navbar (Google The Keyword Style) ================= */
header.navbar-google {
  background: rgba(14, 16, 19, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] header.navbar-google {
  background: rgba(255, 255, 255, 0.92);
}

.navbar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand-google {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-google .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--node-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px var(--node-green-glow);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-google:hover .brand-icon {
  transform: scale(1.06) rotate(6deg);
}
.brand-google .brand-dot {
  color: var(--node-green);
}
.brand-google .badge-pill-blog {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
}

/* Google Pill Nav Items */
.nav-google-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-pill-item {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-pill-item:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-pill-item.active {
  color: var(--text);
  background: var(--surface-card);
  border: 1px solid var(--border);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pill Search Input / Button */
.search-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.search-pill-btn:hover {
  background: var(--surface-card);
  border-color: var(--border-hover);
  color: var(--text);
}
.search-pill-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Theme Toggle (Pill Switcher) */
.theme-pill-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.theme-pill-toggle button {
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.theme-pill-toggle button:hover {
  color: var(--text);
}
.theme-pill-toggle button.active {
  background: var(--surface-card);
  color: var(--node-green);
  box-shadow: var(--shadow-sm);
}

/* Vultr Header Pill Button */
.btn-vultr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--vultr-gradient);
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 123, 252, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-vultr-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 123, 252, 0.38);
}

/* Mobile Quick Nav Bar */
.mobile-nav-scroller {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-scroller::-webkit-scrollbar {
  display: none;
}

/* ================= Google Category / Topic Chips ================= */
.topic-chips-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.topic-chips-bar::-webkit-scrollbar {
  height: 4px;
}
.topic-chips-bar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.topic-chip:hover {
  background: var(--surface-card-hover);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.topic-chip.active {
  background: var(--text);
  color: var(--text-inverse) !important;
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ================= Spotlight Hero Card (Google Blog Featured Story) ================= */
.spotlight-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  background-image: var(--card-gradient);
}
.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.spotlight-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-bottom: 1.25rem;
}

.spotlight-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
.spotlight-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.spotlight-title a:hover {
  color: var(--node-green);
}

.spotlight-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 900px;
}

/* Byline Meta (Google Blog Style) */
.google-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--node-green);
}
.byline-author {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.byline-author:hover {
  color: var(--node-green);
}
.byline-dot {
  color: var(--text-muted);
}
.byline-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Hero Terminal Window (Ubuntu / Linux Cloud Mockup) */
.hero-terminal-window {
  background: #0d1117 !important;
  color: #e6edf3 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  line-height: 1.65;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-terminal-window:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(66, 133, 244, 0.15);
}
.hero-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  font-size: 0.8rem;
}
.hero-terminal-dots {
  display: flex;
  gap: 7px;
}
.hero-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-terminal-body {
  color: #c9d1d9 !important;
}
.hero-terminal-body .cmd-prompt {
  color: #8b949e;
  font-weight: 600;
}
.hero-terminal-body .cmd-text {
  color: #f0f6fc !important;
  font-weight: 600;
}
.hero-terminal-body .cmd-output-success {
  color: #3fb950 !important;
  font-weight: 700;
}
.hero-terminal-body .json-key {
  color: #79c0ff !important;
}
.hero-terminal-body .json-str {
  color: #a5d6ff !important;
}
.hero-terminal-body .json-val-green {
  color: #7ee787 !important;
  font-weight: 600;
}
.hero-terminal-body .json-brace {
  color: #8b949e;
}

[data-theme="light"] .hero-terminal-window {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ================= Story Card Grid (Google Blog Editorial Cards) ================= */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.story-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.story-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  color: inherit;
}

.story-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

/* Dynamic Aurora Thumbnail Backgrounds */
.story-media-aurora {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(66, 133, 244, 0.12) 50%, rgba(251, 188, 4, 0.1) 100%);
  position: relative;
  transition: transform 0.3s ease;
}
.story-card:hover .story-media-aurora {
  transform: scale(1.03);
}
.story-media-icon {
  font-size: 2.75rem;
  color: var(--node-green);
  filter: drop-shadow(0 4px 12px var(--node-green-glow));
}
.story-media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 16, 19, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.story-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.story-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}
.story-card-meta .story-cat-pill {
  color: var(--node-green);
}

.story-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.story-card:hover .story-card-title {
  color: var(--node-green);
}

.story-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.story-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.story-author-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.story-author-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ================= Google Product Announcement Card (Vultr $300) ================= */
.google-promo-card {
  background: var(--surface-card);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: var(--radius-hero);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
}
.google-promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--aurora-gradient);
}
.google-promo-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.promo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(66, 133, 244, 0.15);
  color: var(--aurora-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
[data-theme="light"] .google-promo-card {
  background: #ffffff;
  border-color: #d2e3fc;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.08);
}
[data-theme="light"] .promo-badge-pill {
  background: #e8f0fe;
  color: #1a73e8;
}

.promo-title {
  color: var(--text) !important;
}
.promo-subheading {
  color: var(--text) !important;
}
.promo-feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
[data-theme="light"] .promo-title,
[data-theme="light"] .promo-subheading {
  color: #1e293b !important;
}
[data-theme="light"] .promo-feature-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}
[data-theme="light"] .google-promo-card p {
  color: #475569 !important;
}

.btn-google-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--google-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.35);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.btn-google-primary:hover {
  transform: translateY(-2px);
  background: #3367d6;
  box-shadow: 0 6px 22px rgba(66, 133, 244, 0.45);
}
.btn-google-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-google-outline:hover {
  background: var(--surface-card-hover);
  border-color: var(--text-secondary);
}

/* ================= ARTICLE VIEW (blog.google/products/workspace/google-pics/) ================= */

.article-hero-header {
  padding: 2.5rem 0 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

/* Category Pill at top */
.article-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--node-green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
}
.article-category-pill:hover {
  background: var(--accent-dim);
  border-color: var(--node-green);
}

/* H1 Article Title */
.article-main-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Lead Subtitle */
.article-lead-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

/* Google Pics Style Byline Bar */
.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.article-byline-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.byline-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--node-green);
  box-shadow: 0 0 12px var(--node-green-glow);
}

.byline-info-box {
  display: flex;
  flex-direction: column;
}
.byline-author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.byline-author-name:hover {
  color: var(--node-green);
}

.byline-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* Article Floating / Inline Action Pills */
.article-actions-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.action-pill-btn:hover {
  background: var(--surface-card);
  border-color: var(--border-hover);
  color: var(--text);
}
.action-pill-btn.btn-accent {
  background: var(--accent-dim);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--node-green);
}
.action-pill-btn.btn-accent:hover {
  background: var(--node-green);
  color: #ffffff;
}

/* Single Share Button & Share Box Menu */
.share-trigger-btn {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  font-size: 0.95rem;
  color: var(--text) !important;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.share-trigger-btn:hover,
.share-trigger-btn:focus,
.share-trigger-btn[aria-expanded="true"] {
  background: var(--surface-card);
  border-color: var(--node-green);
  color: var(--node-green) !important;
  box-shadow: 0 0 12px var(--node-green-glow);
}

.share-box-menu {
  min-width: 300px;
  max-width: 340px;
  background: var(--surface-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  margin-top: 0.5rem !important;
  backdrop-filter: blur(12px);
  animation: shareBoxFadeIn 0.18s cubic-bezier(0.2, 0, 0, 1);
  z-index: 1050;
}
@keyframes shareBoxFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  text-align: center;
}

.share-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  transition: transform 0.2s;
  padding: 0.3rem 0.2rem;
  border-radius: 12px;
}
.share-grid-item:hover {
  transform: translateY(-3px);
}

.share-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.share-grid-item:hover .share-icon-circle {
  box-shadow: var(--shadow-md);
}

.share-icon-circle.bg-whatsapp {
  background: #25d366;
}
.share-icon-circle.bg-linkedin {
  background: #0077b5;
}
.share-icon-circle.bg-twitter {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.share-icon-circle.bg-telegram {
  background: #229ed9;
}

.share-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.share-grid-item:hover .share-name {
  color: var(--text);
}

.share-copy-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
}
.share-input-url {
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 0.76rem !important;
}

/* Light Theme Overrides for Share Box */
[data-theme="light"] .share-trigger-btn {
  background: #ffffff;
  border-color: #dadce0;
  color: #3c4043 !important;
}
[data-theme="light"] .share-trigger-btn:hover,
[data-theme="light"] .share-trigger-btn:focus,
[data-theme="light"] .share-trigger-btn[aria-expanded="true"] {
  background: #f8fafc;
  border-color: var(--node-green);
  color: var(--node-green) !important;
}
[data-theme="light"] .share-box-menu {
  background: #ffffff !important;
  border-color: #dadce0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .share-box-title {
  color: #202124;
}
[data-theme="light"] .share-name {
  color: #5f6368;
}
[data-theme="light"] .share-grid-item:hover .share-name {
  color: #202124;
}
[data-theme="light"] .share-copy-box {
  background: #f1f3f4;
  border-color: #dadce0;
}
[data-theme="light"] .share-input-url {
  color: #202124 !important;
}
[data-theme="light"] .share-icon-circle.bg-twitter {
  background: #111111;
  border-color: transparent;
}

/* Feature Hero Card of Article */
.article-hero-card {
  max-width: 920px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-hero);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  position: relative;
}
.article-hero-inner {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(66, 133, 244, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Reading Body Layout */
.article-content-container {
  max-width: 820px;
  margin: 0 auto;
}

/* Editorial Typography for Rendered Markdown */
.markdown-editorial {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
.markdown-editorial code:not(pre code) {
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--node-green);
}
.markdown-editorial img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.markdown-editorial p {
  margin-bottom: 1.6rem;
}
.markdown-editorial h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  padding-bottom: 0.25rem;
  border-bottom: none !important;
  scroll-margin-top: 90px;
}
.markdown-editorial h3 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text);
  scroll-margin-top: 90px;
}
.markdown-editorial ul, .markdown-editorial ol {
  margin-bottom: 1.6rem;
  padding-left: 1.5rem;
}
.markdown-editorial li {
  margin-bottom: 0.5rem;
}
.markdown-editorial blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--node-green);
  background: var(--surface-card);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Callouts (Google Material Notes) */
.google-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}
.google-callout-author {
  border-left: 4px solid var(--node-green);
  background: rgba(34, 197, 94, 0.05);
}
.google-callout-info {
  border-left: 4px solid var(--google-blue);
  background: rgba(66, 133, 244, 0.06);
}
.google-callout h5,
.callout-title {
  color: var(--text) !important;
  letter-spacing: -0.01em;
}
.google-callout .callout-desc,
.google-callout p {
  color: var(--text-secondary);
}

[data-theme="light"] .google-callout {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .google-callout-author {
  background: #f6fbf7;
  border-color: #ccebd7;
  border-left: 4px solid #16a34a;
}
[data-theme="light"] .google-callout-info {
  background: #f4f8fe;
  border-color: #cfe1fd;
  border-left: 4px solid #1a73e8;
}
[data-theme="light"] .google-callout h5,
[data-theme="light"] .callout-title {
  color: #1e293b !important;
}
[data-theme="light"] .google-callout .callout-desc,
[data-theme="light"] .google-callout p {
  color: #475569 !important;
}

/* Remove todos os <hr> do fluxo editorial e artigos */
.markdown-editorial hr,
.markdown-body hr,
article hr,
main hr {
  display: none !important;
}

/* ================= Highlight8 Code Container & GitHub Syntax Engine ================= */
:root {
  --code-bg: #0d1117;
  --code-toolbar-bg: #161b22;
  --code-border: rgba(255, 255, 255, 0.12);
  --badge-bg: #21262d;
  --text-highlight: #58a6ff;
  --scroll-btn-bg: rgba(72, 72, 72, 0.6);
}

[data-theme="light"] {
  --code-bg: #ffffff;
  --code-toolbar-bg: #f6f8fa;
  --code-border: #d0d7de;
  --badge-bg: #eaeef2;
  --text-highlight: #0969da;
  --scroll-btn-bg: rgba(220, 220, 220, 0.6);
}

/* === Highlight8 Code Block Layout (Identical to highlight8.php & media_1788908706666.png) === */
.code-container {
  position: relative;
  margin: 1.75rem 0;
  background-color: transparent;
  width: 100%;
  max-width: 100%;
}

.code-toolbar {
  position: sticky;
  top: 64px;
  z-index: 10;
  background-color: #161b22;
  padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border: none !important;
}

.badge-lang {
  background-color: #2e2e2e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  font-family: "Fira Code", monospace;
}

.code-toolbar .nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.code-toolbar .nav-link {
  color: #c9d1d9 !important;
  padding: 0.25rem 0.75rem !important;
  text-decoration: none !important;
  font-size: 0.75rem !important;
  font-family: inherit;
  transition: color 0.15s ease;
  cursor: pointer;
}

.code-toolbar .nav-link:hover {
  color: #58a6ff !important;
}

.btn-copy {
  background: transparent !important;
  border: none !important;
  color: #8b949e !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.15s ease;
}

.btn-copy:hover {
  color: #58a6ff !important;
}

.code-container pre {
  background-color: #161b22 !important;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding: 0 0.5rem 0.5rem 0.5rem !important;
  margin: 0 !important;
  overflow-x: auto;
  font-family: "Fira Code", monospace !important;
  font-size: 0.88rem;
  line-height: 1.6;
  scrollbar-color: #8b949e transparent;
}

.code-container pre code {
  font-family: "Fira Code", monospace !important;
}

.hljs {
  color: #c9d1d9 !important;
  background: #161b22 !important;
  padding: 5px !important;
}

/* Light Theme Code Container */
[data-theme="light"] .code-container {
  background-color: #f6f8fa;
  border: 1px solid #d0d7de;
}
[data-theme="light"] .code-toolbar {
  background-color: #f6f8fa;
  border-bottom: 1px solid #d0d7de;
}
[data-theme="light"] .badge-lang {
  background-color: #eaeef2;
  color: #24292f;
  border: 1px solid #d0d7de;
}
[data-theme="light"] .code-toolbar .nav-link {
  color: #57606a !important;
}
[data-theme="light"] .code-toolbar .nav-link:hover {
  color: #0969da !important;
}
[data-theme="light"] .btn-copy {
  color: #57606a;
}
[data-theme="light"] .btn-copy:hover {
  color: #0969da;
}
[data-theme="light"] .code-container pre {
  background-color: #f6f8fa !important;
}

.code-container pre code.hljs {
  background: transparent !important;
  padding: 0 !important;
  font-family: inherit;
  display: block;
  color: inherit;
}

/* GitHub Dark syntax overrides */
[data-theme="dark"] .hljs {
  color: #c9d1d9 !important;
}
[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-operator {
  color: #ff7b72 !important;
}
[data-theme="dark"] .hljs-function,
[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-title.function_ {
  color: #d2a8ff !important;
}
[data-theme="dark"] .hljs-string {
  color: #a5d6ff !important;
}
[data-theme="dark"] .hljs-comment {
  color: #8b949e !important;
  font-style: italic;
}
[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-literal {
  color: #79c0ff !important;
}
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-params {
  color: #c9d1d9 !important;
}
[data-theme="dark"] .hljs-built_in {
  color: #ffa657 !important;
}

/* GitHub Light syntax overrides */
[data-theme="light"] .hljs {
  color: #24292f !important;
}
[data-theme="light"] .hljs-keyword,
[data-theme="light"] .hljs-operator {
  color: #cf222e !important;
}
[data-theme="light"] .hljs-function,
[data-theme="light"] .hljs-title,
[data-theme="light"] .hljs-title.function_ {
  color: #8250df !important;
}
[data-theme="light"] .hljs-string {
  color: #0a3069 !important;
}
[data-theme="light"] .hljs-comment {
  color: #6e7781 !important;
  font-style: italic;
}
[data-theme="light"] .hljs-number,
[data-theme="light"] .hljs-literal {
  color: #0550ae !important;
}
[data-theme="light"] .hljs-variable,
[data-theme="light"] .hljs-params {
  color: #24292f !important;
}
[data-theme="light"] .hljs-built_in {
  color: #953800 !important;
}

pre code.language-TXT {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow: visible !important;
}

/* Custom Table from highlight8 */
.custom-table {
  background-color: transparent !important;
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}
.custom-table thead th, .custom-thead,
.markdown-editorial table thead th {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-bottom: 2px solid var(--border) !important;
  font-weight: 700;
  padding: 0.75rem 1rem;
}
.custom-table tbody tr.custom-tr:hover,
.markdown-editorial table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="light"] .custom-table tbody tr.custom-tr:hover,
[data-theme="light"] .markdown-editorial table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
}
.custom-td, .markdown-editorial table td {
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  padding: 0.75rem 1rem;
}

/* Table of Contents Floating Card */
.toc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: color 0.2s;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
}
.toc-link:hover, .toc-link.active {
  color: var(--node-green);
  border-left-color: var(--node-green);
}

/* ================= Author Box Component (Google Profile Card) ================= */
.google-author-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  margin: 3rem 0 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.google-author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--aurora-gradient);
}
.author-card-inner {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.author-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--node-green);
  box-shadow: 0 0 20px var(--node-green-glow);
  flex-shrink: 0;
}
.author-card-content {
  flex: 1;
  min-width: 280px;
}
.author-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.author-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.author-badge-verified {
  color: var(--node-green);
  font-size: 1.1rem;
}
.author-role-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.author-card-bio {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0.75rem 0 1.25rem;
}
.author-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.author-mini-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.author-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ================= Footer (Google The Keyword Clean Footer) ================= */
footer.footer-google {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 380px;
}
.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links-list a:hover {
  color: var(--node-green);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer Disclaimer Box */
.footer-disclaimer-box {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}
.footer-disclaimer-title {
  color: var(--text) !important;
}
.footer-disclaimer-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.88rem;
}

/* Footer Cloud Promo Card */
.footer-cloud-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.footer-cloud-card:hover {
  border-color: var(--google-blue);
  transform: translateY(-2px);
}
.footer-cloud-card .promo-badge {
  display: inline-block;
  background: #fbbc04;
  color: #202124;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}
.footer-cloud-card .promo-text {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

/* Light Mode Overrides for Footer Components */
[data-theme="light"] footer.footer-google {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
[data-theme="light"] .footer-disclaimer-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .footer-disclaimer-title {
  color: #0f172a !important;
}
[data-theme="light"] .footer-disclaimer-text {
  color: #475569;
}
[data-theme="light"] .footer-cloud-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .footer-cloud-card .promo-text {
  color: #475569;
}

/* Toast Feedback */
#nodeToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e2228;
  color: #f0f3f6;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
#nodeToast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ================= Mobile & Tablet Responsive Adjustments ================= */

/* Global Anti-Overflow Mobile Guard */
html, body {
  overflow-x: clip !important;
  max-width: 100vw;
  width: 100%;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden !important;
  }
}

/* Container Standard Google Layout Width (Prevents edge-to-edge stretching) */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .navbar-container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  .spotlight-card {
    padding: 1.5rem;
  }
  .google-promo-card {
    padding: 1.75rem;
  }
  .article-main-title {
    font-size: 2.1rem;
  }
  .story-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 767px) {
  /* Layout e Container */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Article Hero */
  .article-hero-header {
    padding: 1.25rem 0 1rem;
  }
  .article-main-title {
    font-size: 1.65rem !important;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .article-lead-subtitle {
    font-size: 1rem !important;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }
  .article-hero-inner {
    padding: 1.5rem 1.15rem;
    gap: 1rem;
  }

  /* Byline Bar & Actions */
  .article-byline-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
  }
  .article-byline-left {
    width: 100%;
  }
  .article-actions-pills {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .action-pill-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Markdown Content */
  .markdown-editorial {
    font-size: 1.02rem;
    line-height: 1.75;
  }
  .markdown-editorial h2 {
    font-size: 1.45rem;
    margin-top: 2rem;
    padding-bottom: 0.35rem;
  }
  .markdown-editorial h3 {
    font-size: 1.2rem;
    margin-top: 1.6rem;
  }
  .markdown-editorial ul, .markdown-editorial ol {
    padding-left: 1.15rem;
  }

  /* Author Card */
  .google-author-card {
    padding: 1.5rem 1.15rem;
    margin: 2rem 0;
  }
  .author-card-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.15rem;
  }
  .author-card-content {
    min-width: 0;
    width: 100%;
  }
  .author-card-title-row {
    justify-content: center;
  }
  .author-card-tags {
    justify-content: center;
  }
  .author-card-actions {
    justify-content: center;
    width: 100%;
  }
  .author-card-actions a {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  footer.footer-google {
    padding: 2.5rem 0 1.5rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  /* Navbar */
  .navbar-container {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }
  .brand-google {
    font-size: 1.15rem;
    gap: 0.45rem;
  }
  .brand-google .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 9px;
  }
  .brand-google .badge-pill-blog {
    display: none;
  }
  .nav-actions {
    gap: 0.35rem;
  }

  /* Code Blocks */
  .code-container {
    margin: 1.5rem 0;
    border-radius: 0.4rem;
  }
  .code-toolbar {
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
    top: 60px;
  }
  .code-toolbar .nav-link {
    padding: 0.2rem 0.35rem !important;
    font-size: 0.75rem;
  }
  .badge-lang {
    font-size: 0.6rem;
    padding: 0.2em 0.45em;
  }
  .btn-copy {
    margin-left: 0.25rem;
    font-size: 0.85rem;
  }
  .code-container pre {
    padding: 0 0.5rem 0.5rem 0.5rem !important;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Callout */
  .google-callout {
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    margin: 1.75rem 0;
  }
  .google-callout .d-flex.flex-wrap {
    flex-direction: column;
    width: 100%;
  }
  .google-callout .d-flex.flex-wrap a {
    width: 100%;
    justify-content: center;
  }

  /* Story Grid Cards */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .story-card-body {
    padding: 1.15rem;
  }
  .story-card-title {
    font-size: 1.15rem;
  }

  /* Top announcement */
  .top-announcement {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}
