/* ==========================================================================
   NXSTUDIO Vercel Editorial — Shared stylesheet
   Used by: single.php (blog), index.php (blog list), page-guide,
            page-refund-policy, and all Vercel-style editorial pages.
   Source: Extracted from page-refund-policy.php inline styles (2026-09-24).
   ========================================================================== */

/* === Policy Sheet Container === */
.nx-policy-sheet {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 56px 20px 96px;
  max-width: 100%;
}

.nx-policy-container {
  max-width: 820px;
  margin: 0 auto;
}

.nx-policy-header {
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 36px;
  margin-bottom: 44px;
}

/* === Kicker Badge === */
.nx-kicker-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0070f3;
  background: #f0f7ff;
  border: 1px solid #d0e5ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.nx-kicker-badge.emerald {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.nx-kicker-badge.purple {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.nx-kicker-badge.blue {
  color: #0070f3;
  background: #eff6ff;
  border-color: #bfdbfe;
}

/* === Title & Subtitle === */
.nx-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #000000;
  margin: 0 0 12px;
}
.nx-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* === Alert Callouts === */
.nx-alert-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 8px;
  margin-bottom: 48px;
  font-size: 14px;
  line-height: 1.6;
}
.nx-alert-box.alert-notice {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}
.nx-alert-box.alert-notice strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: #ffffff;
}
.nx-alert-box.alert-notice p {
  margin: 0;
  color: #d1d5db;
}
.nx-alert-box.alert-notice .nx-alert-icon {
  width: 28px;
  height: 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.nx-alert-box.alert-warning {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}
.nx-alert-box.alert-warning strong {
  display: block;
  font-size: 15px;
  color: #78350f;
  margin-bottom: 4px;
}
.nx-alert-box.alert-warning p {
  margin: 0;
  color: #92400e;
}
.nx-alert-box.alert-warning .nx-alert-icon {
  color: #b45309;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.nx-alert-box.alert-subtle {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.nx-alert-box.alert-subtle strong {
  display: block;
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}
.nx-alert-box.alert-subtle p {
  margin: 0;
  color: #4b5563;
}
.nx-alert-box.alert-subtle .nx-alert-icon {
  font-family: ui-monospace, monospace;
  font-size: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

/* === Sections === */
.nx-section {
  margin-bottom: 56px;
}
.nx-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.nx-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 3px 8px;
  border-radius: 4px;
}
.nx-tag.indigo {
  color: #4f46e5;
  background: #eef2ff;
  border-color: #c7d2fe;
}
.nx-tag.blue {
  color: #0070f3;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.nx-tag.emerald {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.nx-section-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
}
.nx-section p {
  font-size: 14.5px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 16px;
}
.nx-section a {
  color: #0070f3;
  text-decoration: none;
  font-weight: 500;
}
.nx-section a:hover {
  text-decoration: underline;
}

/* === Tables === */
.nx-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #eaeaea;
  border-radius: 8px;
}
.nx-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.nx-compare-table thead {
  background: #f9fafb;
}
.nx-compare-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #eaeaea;
  font-size: 13px;
  white-space: nowrap;
}
.nx-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  vertical-align: top;
}
.nx-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.nx-compare-table tbody tr:hover {
  background: #f9fafb;
}
.nx-compare-table td strong {
  color: #111827;
}

/* === Cards Grid === */
.nx-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.nx-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px 18px;
  transition: border-color 0.15s ease;
}
.nx-card.highlight {
  border-color: #d1fae5;
  background: #fdfefe;
}
.nx-card-pill {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.nx-card-pill.red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}
.nx-card-pill.green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}
.nx-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}
.nx-card p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

/* === Steps List === */
.nx-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.nx-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.nx-step-num {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0070f3;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.nx-step-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}
.nx-step-item p {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

/* === Source / Disclaimer === */
.nx-source {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

/* === Responsive === */
@media (max-width: 640px) {
  .nx-policy-sheet {
    padding: 36px 16px 64px;
  }
  .nx-title {
    font-size: 28px;
  }
  .nx-compare-table {
    font-size: 13px;
  }
  .nx-compare-table th,
  .nx-compare-table td {
    padding: 10px 12px;
  }
}

/* === Post body content (inside nx-section) === */
.nx-section h2,
.single-content h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 40px 0 16px;
  line-height: 1.3;
}
.nx-section h2:first-child,
.single-content h2:first-child {
  margin-top: 0;
}
.nx-section ul,
.single-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}
.nx-section li,
.single-content li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 10px;
}
.nx-section li:last-child,
.single-content li:last-child {
  margin-bottom: 0;
}
.nx-section p,
.single-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* === Media Row (magazine side-by-side) === */
.nx-media-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #f3f4f6;
}
.nx-media-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.nx-media-row.reverse {
  flex-direction: row-reverse;
}
.nx-media-img {
  flex: 0 0 42%;
  max-width: 42%;
}
.nx-media-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid #eaeaea;
}
.nx-media-text {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}
.nx-media-text h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0 0 14px;
  line-height: 1.3;
  padding-top: 16px;
}
.nx-media-text p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 14px;
}
.nx-media-text p:last-child {
  margin-bottom: 0;
}
.nx-media-text a {
  color: #0070f3;
  text-decoration: none;
  font-weight: 500;
}
.nx-media-text a:hover {
  text-decoration: underline;
}
/* Full-width image variant (standalone, not side-by-side) */
.nx-full-img {
  margin-bottom: 40px;
}
.nx-full-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid #eaeaea;
}
/* Responsive: stack on mobile */
@media (max-width: 640px) {
  .nx-media-row,
  .nx-media-row.reverse {
    flex-direction: column;
    gap: 16px;
  }
  .nx-media-img,
  .nx-media-img {
    flex: none;
    max-width: 100%;
  }
}
