/* =============================================================
   PP Resources — Documentation-Style Layout
   Uses ppv2 design tokens: deep dark sidebar, warm cream content
   ============================================================= */

/* Navbar + language selector styles live in pp-nav.css (global) */

body { overflow-x: hidden; }

/* Dark strip behind navbar — Resources has a light bg (no dark hero),
   so this provides contrast on load, then fades when the pill kicks in.
   Anchored to the classic banner's height: the banner pushes .nav down by
   --classic-banner-h, so the strip has to start there too or the nav's
   white text ends up on the cream page background. Height tracks the nav
   (46px inner + 2x16px padding, dropping to 2x12px under 480px). */
.nav-bg {
  position: fixed; top: var(--classic-banner-h, 0px); left: 0; right: 0;
  height: 78px;
  background: #0F0A1E;
  z-index: 99;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-bg--hidden { opacity: 0; pointer-events: none; }
@media (max-width: 479px) { .nav-bg { height: 70px; } }

/* --- Layout Shell --- */
.resources-layout {
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  min-height: 100vh;
  padding-top: 72px;
}

/* --- Sidebar (dark deep, like ppv2 ds-sidebar) ---
   Outer <aside> stretches to the full grid-row height so the dark rail
   reaches the top/bottom edges of the layout, regardless of how tall the
   menu itself is. The inner `.resources-sidebar__inner` is the sticky,
   scrollable container — keeping sticky on the inner (not the outer) is
   what lets us have BOTH a full-height dark rail and a menu that stays
   put while the reader scrolls a long article. */
.resources-sidebar {
  background: var(--color-deep-1);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.resources-sidebar__inner {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2xl) 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.resources-sidebar__inner::-webkit-scrollbar { width: 4px; }
.resources-sidebar__inner::-webkit-scrollbar-track { background: transparent; }
.resources-sidebar__inner::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.sidebar__section {
  margin-bottom: var(--space-xl);
}

.sidebar__heading {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-light-40);
  padding: calc(3px + var(--space-lg)) var(--space-lg) var(--space-xs);
  margin-bottom: var(--space-xs);
}

/* Collapsible category */
.sidebar__category {
  margin-bottom: var(--space-2xs);
}
.sidebar__category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-light-60);
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast);
  text-align: left;
}
.sidebar__category-btn:hover {
  color: var(--color-text-light);
  background: rgba(255,255,255,0.03);
}
.sidebar__category-btn[aria-expanded="true"] {
  color: var(--color-text-light);
  font-weight: var(--weight-semibold);
}
.sidebar__chevron {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-base) var(--ease-out);
  flex-shrink: 0;
}
.sidebar__category-btn[aria-expanded="true"] .sidebar__chevron {
  transform: rotate(90deg);
}

/* Category children */
.sidebar__children {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--duration-slow) var(--ease-out);
}
.sidebar__children--open {
  max-height: 600px;
}

/* Sidebar nav items */
.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  padding-left: calc(var(--space-lg) + var(--space-md));
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-light-60);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast);
  position: relative;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  line-height: var(--leading-sm);
  border-radius: 0;
}
.sidebar__link:hover {
  color: var(--color-text-light);
  background: rgba(255,255,255,0.03);
}

/* Active state — accent left border + subtle tint (ppv2 pattern) */
.sidebar__link--active {
  color: var(--color-accent-light);
  font-weight: var(--weight-semibold);
  border-left-color: var(--color-accent-light);
  background: rgba(124,58,237,0.08);
}

/* External link icon in sidebar */
.sidebar__external-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.4;
  flex-shrink: 0;
  margin-left: auto;
}

/* --- Main Content Area (warm cream, ppv2 warm surfaces) --- */
.resources-main {
  background: var(--color-warm-bg);
  padding: var(--space-2xl) var(--space-3xl);
  min-width: 0;
}

/* --- Right-hand Table of Contents --- */
.resources-toc {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl) 0;
  background: var(--color-warm-bg);
  border-left: 1px solid var(--color-warm-border);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.08) transparent;
}
.resources-toc::-webkit-scrollbar { width: 3px; }
.resources-toc::-webkit-scrollbar-track { background: transparent; }
.resources-toc::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }

.toc__heading {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dark-50);
  padding: 0 var(--space-md) var(--space-sm);
  margin-bottom: var(--space-xs);
}
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc__link {
  display: block;
  padding: var(--space-2xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-dark-50);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
  line-height: 1.5;
}
.toc__link:hover {
  color: var(--color-text-dark);
  background: rgba(124,58,237,0.04);
}
.toc__link--active {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  border-left-color: var(--color-accent);
  background: rgba(124,58,237,0.04);
}

/* Decorative gradient accent at top of TOC */
.toc__accent-line {
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(167,139,250,0.3), 0 0 16px rgba(34,211,238,0.15);
  margin: 0 var(--space-md) var(--space-lg);
}

/* Breadcrumbs */
.resources-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-dark-50);
  margin-bottom: var(--space-xl);
}
.resources-breadcrumb a {
  color: var(--color-text-dark-70);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.resources-breadcrumb a:hover {
  color: var(--color-accent);
}
.resources-breadcrumb__sep {
  font-size: var(--text-xs);
  color: var(--color-text-dark-50);
  user-select: none;
}
.resources-breadcrumb__current {
  color: var(--color-text-dark);
  font-weight: var(--weight-medium);
}
.resources-breadcrumb__btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--color-text-dark-70);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--duration-fast);
}
.resources-breadcrumb__btn:hover {
  color: var(--color-accent);
}
.resources-breadcrumb__btn:focus {
  outline: none;
}
.resources-breadcrumb__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Content panels (show/hide) */
.resources-panel {
  display: none;
  animation: resourceFadeIn var(--duration-slow) var(--ease-out);
}
.resources-panel--active {
  display: block;
}
@keyframes resourceFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Article Typography (warm surfaces, dark text) --- */
.resource-article {
  line-height: var(--leading-base);
}
.resource-article__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-lg);
}
.resource-article__badge--cheatsheet {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
}
.resource-article__badge--guide {
  background: rgba(124,58,237,0.08);
  color: var(--color-accent);
}
.resource-article__badge--external {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}
.resource-article__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.resource-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-5xl);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.resource-article__subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-dark-70);
  margin-bottom: var(--space-2xl);
  max-width: 60ch;
}
.resource-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-warm-border);
  font-size: var(--text-sm);
  color: var(--color-text-dark-50);
  flex-wrap: wrap;
}
.resource-article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}
.resource-article__meta-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Body text — warm surface palette */
.resource-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, var(--text-3xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-3xl);
  color: var(--color-text-dark);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}
.resource-article h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-2xl);
  color: var(--color-text-dark);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.resource-article p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dark-70);
  margin-bottom: var(--space-lg);
  max-width: 68ch;
}
.resource-article p strong {
  color: var(--color-text-dark);
  font-weight: var(--weight-semibold);
}
.resource-article ul,
.resource-article ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}
.resource-article li {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dark-70);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-xs);
}
.resource-article ul li::marker {
  color: var(--color-accent);
}
.resource-article ol li::marker {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}
.resource-article a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}
.resource-article a:hover {
  color: var(--color-accent-light);
}

/* Inline code */
.resource-article code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-warm-bg-2);
  border: 1px solid var(--color-warm-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent);
}

/* Block callout / tip */
.resource-callout {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid;
}
.resource-callout--tip {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}
.resource-callout--info {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.15);
}
.resource-callout--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
}
.resource-callout__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}
.resource-callout__body {
  flex: 1;
  min-width: 0;
}
.resource-callout__title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2xs);
}
.resource-callout__body p {
  font-size: var(--text-sm);
  margin-bottom: 0;
  color: var(--color-text-dark-70);
}

/* Code block — deep dark, ppv2 style */
.resource-code {
  position: relative;
  background: var(--color-deep-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}
.resource-code__label {
  position: absolute;
  top: 0;
  right: 0;
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.resource-code pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.resource-code .token-role { color: var(--color-accent-light); }
.resource-code .token-content { color: var(--color-teal-light); }
.resource-code .token-key { color: #F59E0B; }
.resource-code .token-comment { color: rgba(255,255,255,0.3); font-style: italic; }

/* Prompt example card — ppv2 before/after style */
.prompt-example {
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.prompt-example__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: #fff;
  border-bottom: 1px solid var(--color-warm-border);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-dark);
}
.prompt-example__header svg {
  width: 16px; height: 16px;
  stroke: var(--color-accent);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.prompt-example__body {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--color-text-light-80);
  background: var(--color-deep-2);
  white-space: pre-wrap;
}
.prompt-example__body .pe-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal-light);
  margin-bottom: var(--space-2xs);
  margin-top: var(--space-md);
}
.prompt-example__body .pe-label:first-child {
  margin-top: 0;
}

/* Cheat sheet grid */
.cheat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.cheat-card {
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cheat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.cheat-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
  box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.cheat-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}
.cheat-card__text {
  font-size: 0.825rem;
  line-height: 1.65;
  color: var(--color-text-dark-70);
}

/* Step flow (numbered steps for ART) */
.step-flow {
  position: relative;
  margin: var(--space-2xl) 0;
  padding-left: var(--space-2xl);
}
.step-flow::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(167,139,250,0.3);
}
.step-flow__item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}
.step-flow__item:last-child {
  margin-bottom: 0;
}
.step-flow__marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl));
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--color-warm-bg), 0 0 20px rgba(124,58,237,0.3);
}
.step-flow__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}
.step-flow__desc {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dark-70);
  max-width: 60ch;
}

/* =========================================================
   Resource Hero + Body (cheatsheet / ART panel content)
   ========================================================= */
.resource-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin: 0 auto var(--space-2xl);
  max-width: 860px;
  border-bottom: 1px solid var(--color-warm-border);
}
.resource-hero__content {
  flex: 1 1 460px;
  min-width: 0;
}
.resource-hero__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.resource-hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
}
.resource-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-5xl);
  color: var(--color-text-dark);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}
.resource-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-dark-70);
  margin: 0 0 var(--space-lg);
  max-width: 60ch;
}
.resource-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-dark-50);
}
.resource-hero__meta a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.resource-hero__meta a:hover {
  color: var(--color-accent-light);
}

/* Download button (primary CTA in hero) */
.resource-download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124,58,237,0.25);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}
.resource-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.35);
}
.resource-download-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.resource-download-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resource-download-btn--disabled,
.resource-download-btn[aria-disabled="true"] {
  background: var(--color-warm-bg-2);
  color: var(--color-text-dark-50);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Compact download button at top of TOC sidebar */
.toc__download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  width: calc(100% - var(--space-md) * 2);
  justify-content: center;
  margin: var(--space-lg) var(--space-md) 0;
  padding: 8px 14px;
  border-radius: var(--radius-md, 8px);
  background: rgba(124, 58, 237, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.toc__download:hover {
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-accent);
}
.toc__download:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.toc__download svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toc__download[aria-disabled="true"] {
  background: var(--color-warm-bg-2);
  color: var(--color-text-dark-50);
  border-color: var(--color-warm-border);
  pointer-events: none;
}

.resource-body {
  line-height: var(--leading-base);
  max-width: 860px;
  margin: 0 auto;
}
.resource-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, var(--text-3xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-3xl);
  color: var(--color-text-dark);
  margin: var(--space-3xl) 0 var(--space-md);
  letter-spacing: -0.02em;
}
.resource-body h2:first-child {
  margin-top: 0;
}
.resource-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-2xl);
  color: var(--color-text-dark);
  margin: var(--space-2xl) 0 var(--space-sm);
  letter-spacing: -0.01em;
}
.resource-body p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dark-70);
  margin: 0 0 var(--space-lg);
}
.resource-body p strong,
.resource-body li strong {
  color: var(--color-text-dark);
  font-weight: var(--weight-semibold);
}
.resource-body ul,
.resource-body ol {
  margin: 0 0 var(--space-lg);
  padding-left: var(--space-xl);
}
.resource-body li {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dark-70);
  margin-bottom: var(--space-xs);
  padding-left: var(--space-2xs);
}
.resource-body ul li::marker {
  color: var(--color-accent);
}
.resource-body ol li::marker {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}
.resource-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}
.resource-body a:hover {
  color: var(--color-accent-light);
}
.resource-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-warm-bg-2);
  border: 1px solid var(--color-warm-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent);
}

/* Numbered principle row (cheatsheet) */
.pe-principle {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-warm-border);
}
.pe-principle:last-of-type {
  border-bottom: none;
}
.pe-principle__number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.pe-principle > div {
  flex: 1;
  min-width: 0;
}
.pe-principle h3 {
  margin-top: 0;
  margin-bottom: var(--space-2xs);
  font-size: var(--text-lg);
}
.pe-principle p {
  margin-bottom: 0;
}

/* Callout / tip box */
.pe-callout {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-left: 3px solid var(--color-accent);
  margin: var(--space-lg) 0 var(--space-xl);
}
.pe-callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
}
.pe-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

/* Code block (dark ppv2 style) */
.pe-code-block {
  background: var(--color-deep-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0 var(--space-xl);
  overflow: hidden;
}
.pe-code-block__header {
  padding: var(--space-xs) var(--space-md);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.pe-code-block__body {
  margin: 0;
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}

/* Pitfall + advantage lists */
.pe-pitfalls,
.pe-advantages {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}
.pe-pitfalls li,
.pe-advantages li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
  border-bottom: 1px solid var(--color-warm-border);
  color: var(--color-text-dark);
  font-size: var(--text-base);
  line-height: 1.6;
}
.pe-pitfalls li:last-child,
.pe-advantages li:last-child {
  border-bottom: none;
}
.pe-pitfalls li::before {
  content: '✗';
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  color: var(--color-warning);
  font-weight: var(--weight-bold);
}
.pe-advantages li::before {
  content: '✓';
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

/* ART step (lettered markers) */
.art-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-warm-border);
}
.art-step:last-of-type {
  border-bottom: none;
}
.art-step__marker {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(124,58,237,0.25);
}
.art-step > div {
  flex: 1;
  min-width: 0;
}
.art-step h3 {
  margin-top: 0;
  margin-bottom: var(--space-2xs);
  font-size: var(--text-lg);
}
.art-step p {
  margin-bottom: 0;
}

/* Navigation (prev/next) at bottom */
.resource-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-warm-border);
}
.resource-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-lg);
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  font-family: var(--font-body);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.resource-nav__item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.resource-nav__item--next {
  text-align: right;
}
.resource-nav__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dark-50);
}
.resource-nav__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
}

/* --- Overview sidebar link --- */
.sidebar__link--overview {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: var(--weight-medium);
}
.sidebar__overview-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ================================================================
   LANDING PAGE — Hero + Cards + Right Sidebar
   ================================================================ */

/* --- Hero Band --- */
.landing-hero {
  position: relative;
  background: var(--color-warm-bg);
  padding: var(--space-4xl) var(--space-3xl) var(--space-3xl);
  margin: calc(-1 * var(--space-2xl)) calc(-1 * var(--space-3xl)) 0;
  text-align: center;
  overflow: hidden;
}

/* Ambient gradient orbs (soft on light bg) */
.landing-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.landing-hero__orb--purple {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
}
.landing-hero__orb--teal {
  width: 340px;
  height: 340px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
}

/* Dot grid overlay */
.landing-hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Staggered reveal animation */
.landing-hero__reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.landing-hero__reveal--1 { animation-delay: 0.1s; }
.landing-hero__reveal--2 { animation-delay: 0.25s; }
.landing-hero__reveal--3 { animation-delay: 0.4s; }
.landing-hero__reveal--4 { animation-delay: 0.55s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.landing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-5xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}
.landing-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-dark-70);
  max-width: 540px;
  margin: 0 auto var(--space-lg);
}
.landing-hero__note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(124,58,237,0.06);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124,58,237,0.12);
}

/* --- Section intro --- */
.landing-section-intro {
  text-align: center;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-dark-50);
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

/* --- Landing Page Cards Grid --- */
.landing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: var(--space-xl);
  padding: 0 var(--space-md);
  margin-bottom: var(--space-3xl);
}

.landing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: #fff;
  border: 1px solid var(--color-warm-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s;
}

/* Gradient top accent */
.landing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.landing-card:hover::before {
  opacity: 1;
}

.landing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 0 24px rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}

.landing-card--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Card icon */
.landing-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-card:hover .landing-card__icon-wrap {
  transform: scale(1.1);
}
.landing-card__icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.landing-card__icon-wrap--cheatsheet {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
}
.landing-card__icon-wrap--guide {
  background: rgba(124,58,237,0.08);
  color: var(--color-accent);
}
.landing-card__icon-wrap--coming {
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-warning);
}

.landing-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
  width: fit-content;
}
.landing-card__badge--cheatsheet {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
}
.landing-card__badge--guide {
  background: rgba(124,58,237,0.08);
  color: var(--color-accent);
}
.landing-card__badge--coming {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}
.landing-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.landing-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.landing-card__desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-dark-70);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.landing-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-dark-50);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-warm-border);
}

.landing-card__cta {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  transition: color var(--duration-fast), gap var(--duration-fast);
}
.landing-card:hover .landing-card__cta {
  color: var(--color-accent-light);
}

/* --- Landing Right Sidebar (motivational copy) --- */
.landing-sidebar {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2xl) var(--space-lg) var(--space-2xl) var(--space-md);
  background: var(--color-warm-bg);
  border-left: 1px solid var(--color-warm-border);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.08) transparent;
}
.landing-sidebar::-webkit-scrollbar { width: 3px; }
.landing-sidebar::-webkit-scrollbar-track { background: transparent; }
.landing-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }

.landing-sidebar__section {
  margin-bottom: var(--space-xl);
}
.landing-sidebar__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-2xs);
}
.landing-sidebar__text {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-dark-50);
  margin: 0;
}
.landing-sidebar__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast);
}
.landing-sidebar__link:hover {
  color: var(--color-accent-light);
}

.landing-sidebar__divider {
  height: 1px;
  background: var(--color-warm-border);
  margin: var(--space-lg) 0;
}

/* --- Landing responsive --- */
@media (max-width: 1439px) {
  .landing-sidebar {
    display: none;
  }
}

@media (max-width: 1023px) {
  .landing-cards {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
  /* At <=1023 .resources-main padding drops from space-3xl (64px) to
     space-md (16px), so the landing-hero negative margins must track
     that shrink or the hero bleeds past the viewport. */
  .landing-hero {
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-md)) 0;
  }
}

@media (max-width: 767px) {
  .landing-hero__title {
    font-size: clamp(1.6rem, 6vw, var(--text-4xl));
  }
  .landing-cards {
    grid-template-columns: 1fr;
  }
}

/* Reading progress bar — gradient accent ppv2 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(167,139,250,0.5), 0 0 20px rgba(34,211,238,0.3);
  transition: width 80ms linear;
}

/* Mobile sidebar toggle */
.resources-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-base) var(--ease-spring);
}
.resources-sidebar-toggle:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}
.resources-sidebar-toggle:active {
  transform: scale(0.92);
}
.resources-sidebar-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile overlay */
.resources-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 30, 0.6);
  z-index: 950;
  opacity: 0;
  transition: opacity var(--duration-base);
}
.resources-sidebar-overlay--visible {
  opacity: 1;
}

/* --- Gradient line — brand signature from ppv2 --- */
.gradient-line {
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 8px rgba(167,139,250,0.5), 0 0 20px rgba(34,211,238,0.3);
}

/* --- Reveal system from ppv2 --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive --- */

/* Wide screens */
@media (min-width: 1440px) {
  .resources-layout {
    grid-template-columns: 280px 1fr 260px;
  }
  /* TOC sidebar shows its own download pill at this width, so hide
     the duplicate hero button on desktop. The TOC variant mirrors the
     active/disabled state of the hero button via JS. */
  .resource-hero__actions .resource-download-btn {
    display: none;
  }
}

/* Hide TOC on narrower screens, fall back to 2-col */
@media (max-width: 1439px) {
  .resources-layout {
    grid-template-columns: 280px 1fr;
  }
  .resources-toc {
    display: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .resources-layout {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }
  .resources-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out);
    padding-top: var(--space-xl);
    box-shadow: none;
    height: 100vh;
    overflow-y: auto;
  }
  .resources-sidebar__inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .resources-sidebar--open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0,0,0,0.4);
  }
  .resources-sidebar-toggle {
    display: flex;
  }
  .resources-sidebar-overlay--visible {
    display: block;
    opacity: 1;
  }
  .resources-main {
    padding: var(--space-lg) var(--space-md);
  }
  .cheat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resource-nav {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cheat-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   Prompting Techniques — quick-reference card grid
   ============================================================= */
.pt-techniques {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0 var(--space-xl);
}
.pt-card {
  background: #ffffff;
  border: 1px solid var(--color-warm-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}
.pt-card__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-dark);
}
.pt-card__trigger {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-dark);
}
.pt-card__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-2xs);
  vertical-align: 1px;
}
.pt-card__does {
  margin: 0 0 var(--space-md);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-dark-70);
}
.pt-card__example {
  margin-top: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-warm-bg-2);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
}
.pt-card__example-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark-50);
  margin-bottom: var(--space-2xs);
}
.pt-card__example-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-dark);
}
@media (max-width: 900px) {
  .pt-techniques {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .resource-article h1 {
    font-size: clamp(1.5rem, 5vw, var(--text-3xl));
  }
  .resource-article h2 {
    font-size: var(--text-2xl);
  }
  .resource-article__meta {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }
  .resources-main {
    padding: var(--space-lg) var(--space-sm);
  }
  .resource-article ul,
  .resource-article ol,
  .resource-body ul,
  .resource-body ol {
    padding-left: var(--space-md);
  }
  .pe-pitfalls li,
  .pe-advantages li {
    padding-left: var(--space-lg);
  }
  .pe-pitfalls li::before,
  .pe-advantages li::before {
    left: var(--space-2xs);
  }
}
