/* ==========================================================================
   Design Tokens & Exact Palette
   ========================================================================== */
:root {
  font-size: 16px;

  /* Base palette */
  --bg-canvas: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #0f172a;
  --border-color: #334155;

  --accent-cyan: #38bdf8;
  --accent-cyan-bg: rgba(56, 189, 248, 0.1);
  --border-cyan: rgba(56, 189, 248, 0.25);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --transition: all 0.18s ease;
}

/* ==========================================================================
   Article Base Layout
   ========================================================================== */
.article-wrapper {
  max-width: 800px;
  margin: 32px auto 60px;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Header Area */
.article-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  border: 1px solid var(--border-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: capitalize;
  margin: 0 0 12px 0;
}

/* Meta Information Line */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-meta a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: var(--transition);
}

.article-meta a:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.meta-divider {
  color: var(--border-color);
  user-select: none;
}

.article-meta .meta-pill {
  background: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

/* Featured Banner */
.article-banner {
  margin: 0 0 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.article-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mentioned Devices Bar */
.mentioned-devices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.mentioned-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.device-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.device-chip:hover {
  border-color: var(--accent-cyan);
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
}

.chip-thumb {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
}

/* ==========================================================================
   Article Content & Section Headers
   ========================================================================== */
.article-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  width: 100%;
  box-sizing: border-box;
}

/* Remove hr dividers */
.article-content hr,
hr {
  display: none !important;
  height: 0 !important;
  border: none !important;
  margin: 0 !important;
}

/* Markdown # Heading */
.article-content h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin: 24px 0 10px 0;
  border: none !important;
  text-transform: capitalize;
}

/* Section Headers (#1e293b with Inset Stripe) */
.article-content h2 {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 24px;
  margin: 36px 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background-color: var(--accent-cyan);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px 0;
  border: none !important;
}

.article-content p {
  font-size: 16px;
  margin: 0 0 16px 0;
  color: var(--text-body);
  border-bottom: none !important;
}

.article-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-cyan);
  transition: var(--transition);
}

.article-content a:hover {
  color: var(--text-main);
  border-bottom-style: solid;
}

.article-content ul, 
.article-content ol {
  font-size: 15px;
  margin: 0 0 20px 0;
  padding-left: 20px;
  color: var(--text-body);
}

.article-content li {
  margin-bottom: 6px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.article-content blockquote {
  font-size: 15px;
  margin: 20px 0;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-body);
}

.article-source-box {
  margin-top: 32px;
  border-top: none !important;
  font-size: 14px;
  color: var(--text-muted);
}

.article-source-box a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* ==========================================================================
   Clean Unified Phone Card (.guide-vcard)
   Matches the seamless floating style of homepage cards
   ========================================================================== */
.guide-vcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 275px;
  margin: 28px auto;
  background: #252830;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-vcard:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Seamless floating asset cavity: no harsh cut line, same background tone */
.gvc-img-wrap {
  background: transparent;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 8px;
  border-bottom: none !important;
  box-sizing: border-box;
}

.gvc-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.guide-vcard:hover .gvc-img-wrap img {
  transform: scale(1.05);
}

.gvc-body {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  box-sizing: border-box;
  background: transparent;
}

.gvc-header {
  margin-bottom: 12px;
  text-align: center;
  border-bottom: none !important;
}

.gvc-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-cyan);
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.gvc-title {
  margin: 4px 0 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none !important;
  border-bottom: none !important;
  line-height: 1.3;
}

/* Micro-inset specs container with fine row dividers */
.gvc-specs {
  display: flex;
  flex-direction: column;
  /* background: rgba(15, 23, 42, 0.35); */
  /* border: 1px solid rgba(255, 255, 255, 0.05); */
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.gvc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent;
}

.gvc-row:last-child {
  border-bottom: none !important;
}

.gvc-lbl {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.gvc-val {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 8px;
}

/* Integrated solid CTA button */
.gvc-footer {
  margin-top: auto;
  border-top: none !important;
  text-align: center;
}

.gvc-footer span {
  display: inline-block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: var(--transition);
  box-sizing: border-box;
}

.guide-vcard:hover .gvc-footer span {
  background: var(--accent-cyan-bg);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Modern Comparison Table (.guide-vcomp-table)
   Seamless phone thumbnails, balanced row rhythm, and clean dividers
   ========================================================================== */
.guide-comparison-wrap {
  margin-top: 36px;
  padding-top: 0;
  border-top: none !important;
  width: 100%;
  box-sizing: border-box;
}

.guide-comp-title {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 24px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.guide-comp-title::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background-color: var(--accent-cyan);
  border-radius: 2px;
}

.guide-comp-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #20232a;
  contain: paint;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.guide-vcomp-table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  color: #cbd5e1;
  text-align: center;
}

/* Soft spec row divider */
.guide-vcomp-table tr td,
.guide-vcomp-table tr th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.guide-vcomp-table tr:last-child td,
.guide-vcomp-table tr:last-child th {
  border-bottom: none !important;
}

/* Sticky Spec Label Column */
.guide-vcomp-table th.vcomp-sticky-col {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #252830 !important;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  padding: 13px 16px;
  min-width: 120px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
}

.vcomp-row-device th.vcomp-sticky-col {
  background-color: #1c1e24 !important;
}

/* Device Data Cells */
.guide-vcomp-table td {
  padding: 13px 18px;
  min-width: 160px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  line-height: 1.5;
  box-sizing: border-box;
  color: #f8fafc;
  font-weight: 500;
}

.guide-vcomp-table td:last-child {
  border-right: none;
}

/* Alternating gentle slate row shading */
.guide-vcomp-table tr:nth-child(even) td {
  background: #252830;
}

.guide-vcomp-table tr:nth-child(odd) td {
  background: #21232b;
}

/* Device Header Cells: dark grounding bar */
.vcomp-row-device td {
  vertical-align: top;
  padding: 18px 14px 14px;
  background: #1c1e24 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.vcomp-device-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  border: none !important;
  outline: none;
  color: inherit;
}

/* Unconstrained floating phone asset: no mini square box */
.vcomp-img-wrap {
  width: 65px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: transparent;
  border: none;
  padding: 0;
  box-sizing: border-box;
}

.vcomp-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.22s ease;
}

.vcomp-device-link:hover .vcomp-img-wrap img {
  transform: scale(1.08);
}

.vcomp-brand {
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  line-height: 1;
}

.vcomp-model {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.15s ease;
}

.vcomp-device-link:hover .vcomp-model {
  color: var(--accent-cyan);
}

/* Action Button Row */
.vcomp-row-action td {
  padding: 14px 12px;
  background: #23262e !important;
}

.comp-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}

.comp-btn:hover {
  background: var(--accent-cyan-bg);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}