:root {
  --pcx-navy: #06264a;
  --pcx-navy-deep: #03182f;
  --pcx-teal: #22d3bd;
  --pcx-teal-soft: #a7f3e8;
  --pcx-coral: #ff6b5e;
  --pcx-ink: #10213a;
  --pcx-muted: #55657a;
  --pcx-paper: #f7fbfc;
  --pcx-line: #d8e7eb;
  --pcx-shadow: 0 18px 50px rgba(3, 24, 47, .12);
}

.pcx-progress {
  position: fixed;
  z-index: 100000;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(34, 211, 189, .14);
  pointer-events: none;
}

.admin-bar .pcx-progress { top: 32px; }

.pcx-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--pcx-teal), #6ee7db 55%, var(--pcx-coral));
  box-shadow: 0 0 14px rgba(34, 211, 189, .8);
}

.pcx-reader-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .48rem;
  margin: 1rem 0 1.4rem;
  color: var(--pcx-muted);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pcx-reader-meta__dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--pcx-teal);
  box-shadow: 0 0 0 5px rgba(34, 211, 189, .15);
}

.pcx-reader-meta__separator { color: var(--pcx-teal); }

.pcx-orientation {
  margin: 1.8rem 0 2.25rem;
  padding: 1.35rem 1.45rem 1.3rem;
  border: 1px solid rgba(34, 211, 189, .45);
  border-radius: 18px;
  color: #eafffb;
  background:
    radial-gradient(circle at 87% 16%, rgba(34, 211, 189, .23), transparent 26%),
    linear-gradient(135deg, var(--pcx-navy-deep), var(--pcx-navy));
  box-shadow: var(--pcx-shadow);
}

.pcx-orientation__eyebrow,
.pcx-toc__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--pcx-teal-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.pcx-orientation__eyebrow span { color: var(--pcx-coral); font-size: .9rem; }
.pcx-orientation__body { max-width: 58rem; margin: .62rem 0 .8rem; line-height: 1.65; }
.pcx-orientation__body strong { color: #fff; }
.pcx-orientation__link {
  display: inline-flex;
  gap: .48rem;
  align-items: center;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none !important;
}
.pcx-orientation__link:hover { color: var(--pcx-teal) !important; }

.pcx-article-content {
  color: var(--pcx-ink);
  font-size: 1.07rem;
  line-height: 1.8;
}

.pcx-article-content > p:first-of-type {
  max-width: 50rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

.pcx-article-content h2 {
  position: relative;
  margin: 3.1rem 0 1.05rem;
  padding: 1.1rem 0 0 1.2rem;
  border-top: 1px solid var(--pcx-line);
  color: var(--pcx-navy);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  letter-spacing: -.035em;
  line-height: 1.16;
  scroll-margin-top: 5rem;
}

.pcx-article-content h2::before {
  position: absolute;
  left: 0;
  top: 1.18rem;
  width: 4px;
  height: 1.55rem;
  border-radius: 999px;
  background: linear-gradient(var(--pcx-teal), var(--pcx-coral));
  content: '';
}

.pcx-article-content h3 {
  margin: 2rem 0 .55rem;
  color: var(--pcx-navy);
  font-size: 1.12rem;
  line-height: 1.35;
}

.pcx-article-content a {
  color: #007e78;
  font-weight: 700;
  text-decoration-color: rgba(0, 126, 120, .38);
  text-underline-offset: .18em;
}
.pcx-article-content a:hover { color: #d84b3f; }

.pcx-article-content blockquote {
  margin: 1.8rem 0;
  padding: 1.15rem 1.35rem;
  border: 0;
  border-left: 4px solid var(--pcx-coral);
  border-radius: 0 14px 14px 0;
  color: var(--pcx-navy);
  background: #fff8f6;
  font-size: 1.08em;
}

.pcx-article-content ul,
.pcx-article-content ol { padding-left: 1.35rem; }
.pcx-article-content li + li { margin-top: .42rem; }

.pcx-toc {
  margin: 1.75rem 0 2.35rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid var(--pcx-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fcfb, #fbfdff);
}
.pcx-toc__label { margin-bottom: .72rem; color: #087d77; }
.pcx-toc__label span { font-size: 1.15rem; }
.pcx-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1.4rem;
  margin: 0;
  padding-left: 1.25rem;
}
.pcx-toc li { padding-left: .05rem; line-height: 1.35; }
.pcx-toc a {
  display: inline-block;
  padding: .24rem 0;
  color: #24536d;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.pcx-toc a[aria-current="location"] { color: #007e78; text-decoration: underline; text-decoration-color: var(--pcx-teal); text-underline-offset: .24em; }

.pcx-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--pcx-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(3, 24, 47, .06);
}
.pcx-article-content table {
  width: 100%;
  min-width: 42rem;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.52;
}
.pcx-article-content th {
  padding: .95rem 1rem;
  border: 0;
  color: #eafffb;
  background: var(--pcx-navy);
  font-size: .74rem;
  letter-spacing: .065em;
  text-align: left;
  text-transform: uppercase;
}
.pcx-article-content td { padding: .95rem 1rem; border: 0; border-bottom: 1px solid #e5eff1; vertical-align: top; }
.pcx-article-content tr:last-child td { border-bottom: 0; }
.pcx-article-content tbody tr:nth-child(even) { background: #f8fbfc; }

.pcx-article-content details {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid var(--pcx-line);
  border-radius: 12px;
  background: #fff;
}
.pcx-article-content summary { color: var(--pcx-navy); font-weight: 800; cursor: pointer; }

@media (max-width: 700px) {
  .admin-bar .pcx-progress { top: 46px; }
  .pcx-orientation { margin: 1.25rem 0 1.75rem; padding: 1.08rem; border-radius: 14px; }
  .pcx-article-content { font-size: 1rem; line-height: 1.73; }
  .pcx-article-content > p:first-of-type { font-size: 1.1rem; }
  .pcx-article-content h2 { margin-top: 2.45rem; padding-left: 1rem; }
  .pcx-toc { padding: 1.05rem; }
  .pcx-toc ol { grid-template-columns: 1fr; gap: .18rem; }
  .pcx-article-content table { min-width: 34rem; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pcx-progress__bar { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
