:root {
  --ink: #1c1c1e;
  --paper: #f5f5f7;
  --subtle: #8e8e93;
  --red: #ff3b30;
  --blue: #007aff;
  --radius: 1rem;
}

/* ============================================
   SETPHI — Tech Magazine Style
   Bright, bold, content-rich
   ============================================ */

.article-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2c2c2e;
}

.article-body h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 3px solid var(--red);
}

.article-body h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #3a3a3c;
  margin: 2.25rem 0 0.875rem;
}

.article-body h4 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--blue);
  margin: 1.75rem 0 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.article-body p {
  margin-bottom: 1.625rem;
  color: #3a3a3c;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 122, 255, 0.35);
  font-weight: 600;
}

.article-body a:hover {
  color: #0056b3;
  text-decoration-color: var(--blue);
}

.article-body img {
  border-radius: var(--radius);
  margin: 1.75rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
}

.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #555;
  font-style: italic;
}

.article-body code {
  background: #e5e5ea;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875em;
  color: var(--red);
}

.article-body pre {
  background: var(--ink);
  color: #f2f2f7;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.75rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
}

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

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}

.article-body th,
.article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5ea;
  text-align: left;
}

.article-body th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.article-body tr:nth-child(even) td {
  background: #fafafa;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.625rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  color: #3a3a3c;
}

.article-body li::marker {
  color: var(--red);
}

/* --- Utility --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5ea;
  background: white;
  color: #636366;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.pagination a:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination .active,
.pagination .current {
  background: var(--red);
  border-color: var(--red);
  color: white;
  font-weight: 800;
}

.pagination .disabled {
  color: #c7c7cc;
  cursor: not-allowed;
}

/* --- Breaking Ticker Animation --- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: #c7c7cc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* --- Selection --- */
::selection {
  background: rgba(255, 59, 48, 0.15);
  color: var(--ink);
}

/* --- Print --- */
@media print {
  header, footer, nav, #searchOverlay, #mobileMenu, #langDropdown, .animate-marquee {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .article-body {
    font-size: 12pt;
  }
}