@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --navy-50: #f0f5fc;
  --navy-100: #e2ecf9;
  --navy-200: #c9dbf4;
  --navy-300: #a1c2ed;
  --navy-400: #71a2e3;
  --navy-500: #4982d8;
  --navy-600: #3367c7;
  --navy-700: #2a52b1;
  --navy-800: #173a67;
  --navy-900: #0f2744;
  --navy-950: #081628;
  
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #008751;
  --emerald-600: #007043;
  --emerald-700: #005a36;
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
}

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

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.break-words {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

/* Dark Mode Overrides */
html.dark body {
  background-color: #0b1120;
  color: #e2e8f0;
}

html.dark .bg-white {
  background-color: #131c2e !important;
}

html.dark .bg-slate-50 {
  background-color: #0f172a !important;
}

html.dark .border-slate-200 {
  border-color: #1e293b !important;
}

html.dark .border-slate-100 {
  border-color: #1e293b !important;
}

html.dark .text-slate-900,
html.dark .text-navy-950 {
  color: #f8fafc !important;
}

html.dark .text-slate-600,
html.dark .text-slate-700 {
  color: #94a3b8 !important;
}

/* Header & Nav */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

html.dark .header-glass {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

/* Phone Card */
.pk-phone-card {
  box-shadow: 0 20px 25px -5px rgba(15, 39, 68, 0.2), 0 8px 10px -6px rgba(15, 39, 68, 0.2);
}

/* Article Prose Typography */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

html.dark .article-body {
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2744;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

html.dark .article-body h2 {
  color: #f8fafc;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #173a67;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

html.dark .article-body h3 {
  color: #e2e8f0;
}

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

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body a {
  color: #008751;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-body a:hover {
  color: #005a36;
}

.article-body blockquote {
  border-left: 4px solid #008751;
  padding-left: 1.25rem;
  font-style: italic;
  color: #475569;
  margin: 1.5rem 0;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

html.dark .article-body blockquote {
  background: #1e293b;
  color: #94a3b8;
}

.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-body pre, .article-body code {
  white-space: pre-wrap;
  word-break: break-all;
}

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

html.dark .article-body th, html.dark .article-body td {
  border-color: #334155;
}

.article-body th {
  background-color: #f1f5f9;
  font-weight: 700;
}

html.dark .article-body th {
  background-color: #1e293b;
}

/* Toast Notification */
#pk-toast {
  visibility: hidden;
  min-width: 280px;
  background-color: #0f2744;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 14px 20px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, bottom 0.3s;
}

#pk-toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px;
}


/* Mobile Overflow Prevention */
main, article, section, div, header, footer {
  box-sizing: border-box;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .pk-phone-card a {
    word-break: break-all;
  }
}
