/* Route-owned styles extracted from the former shared stylesheet. */
.article-page-shell {
  --article-reading-rail-top: var(--site-fixed-header-clearance, calc(72px + env(safe-area-inset-top, 0px)));
  overflow: visible;
}

.article-hero-copy {
  width: min(850px, 100%);
  padding-top: 92px;
}

.article-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
}

.article-meta {
  color: #6d5d41;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-header {
  padding-bottom: 72px;
}

.article-hero-copy h1 {
  max-width: 980px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--amber);
}

.article-reading-rail {
  position: sticky;
  top: var(--article-reading-rail-top);
  z-index: 45;
  border-bottom: 1px solid rgba(23, 21, 18, 0.14);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 12px 34px rgba(23, 21, 18, 0.1);
  backdrop-filter: blur(18px);
}

.article-reading-rail__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px) auto;
  gap: 14px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 36px);
}

.article-reading-rail__back,
.article-reading-rail__cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  color: #171512;
  font-size: 0.78rem;
  font-weight: 900;
}

.article-reading-rail__back {
  background: rgba(23, 21, 18, 0.05);
}

.article-reading-rail__cta {
  background: rgba(183, 255, 82, 0.48);
}

.article-reading-rail__back:hover,
.article-reading-rail__back:focus-visible,
.article-reading-rail__cta:hover,
.article-reading-rail__cta:focus-visible {
  outline: 2px solid rgba(79, 215, 197, 0.42);
}

.article-reading-rail__title {
  min-width: 0;
  overflow: hidden;
  color: #171512;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-reading-rail__meter {
  --reading-progress: 0;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 18, 0.12);
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.08);
}

.article-reading-rail__meter span {
  display: block;
  width: calc(var(--reading-progress) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3c7b29, #4fd7c5);
  transition: width 120ms linear;
}

.article-section {
  padding-top: 76px;
}

.article-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.article-shell h2 {
  margin-top: 54px;
  font-size: 2rem;
  line-height: 1.12;
}

.article-shell p,
.article-pattern-list,
.article-checklist {
  color: #3f392f;
  font-size: 1.05rem;
  line-height: 1.76;
}

.article-lede {
  font-size: 1.22rem;
  line-height: 1.72;
}

.article-shell code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-shell pre code {
  white-space: pre-wrap;
}

.article-callout {
  margin: 34px 0 10px;
  border-left: 4px solid var(--coral);
  padding: 18px 20px;
  background: rgba(255, 250, 240, 0.8);
}

.article-callout strong {
  color: #171512;
}

.article-callout p {
  margin: 6px 0 0;
}

.article-video-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: center;
  margin: 34px 0 42px;
  border: 1px solid rgba(244, 239, 228, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(79, 215, 197, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(255, 189, 84, 0.12), transparent 40%),
    #101a1f;
  color: var(--paper-strong);
}

.article-video-copy {
  min-width: 0;
}

.article-video-copy .eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
}

.article-video-copy h2 {
  margin: 0;
  color: var(--paper-strong);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.article-video-copy p:not(.eyebrow) {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.article-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(244, 239, 228, 0.14);
  border-radius: 8px;
  background: #081013;
  box-shadow: 0 24px 70px rgba(17, 16, 13, 0.2);
}

.hyperframes-source-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: start;
  margin: 10px 0 36px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(240, 106, 77, 0.12), transparent 48%),
    rgba(255, 250, 240, 0.78);
}

.hyperframes-source-panel .eyebrow {
  margin: 0 0 10px;
  color: #9b3f2f;
}

.hyperframes-source-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}

.hyperframes-source-panel p {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.62;
}

.hyperframes-source-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hyperframes-source-grid div {
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.72);
}

.hyperframes-source-grid dt {
  color: #9b3f2f;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hyperframes-source-grid dd {
  margin: 7px 0 0;
  color: #3f392f;
  font-size: 0.96rem;
  font-weight: 760;
  line-height: 1.45;
}

.hyperframes-source-grid code {
  overflow-wrap: anywhere;
}

.article-visual-frame {
  margin: 34px 0;
}

.article-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 8px;
  background: #11100d;
  box-shadow: 0 24px 70px rgba(23, 21, 18, 0.16);
}

.article-visual-frame figcaption {
  margin-top: 12px;
  color: #5c513f;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}

.article-search-recipe {
  margin: 32px 0 10px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: #171512;
  color: var(--paper);
}

.article-search-recipe span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-search-recipe code {
  display: block;
  overflow-x: auto;
  border-radius: 6px;
  padding: 14px;
  background: rgba(244, 239, 228, 0.08);
  color: var(--paper-strong);
  font-size: 0.94rem;
  line-height: 1.58;
}

.article-search-recipe p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.article-pattern-list,
.article-checklist {
  padding-left: 24px;
}

.article-pattern-list li,
.article-checklist li {
  min-width: 0;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.article-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}

.article-rule-grid section {
  min-height: 224px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.72);
}

.article-rule-grid span {
  color: #9b3f2f;
  font-size: 0.78rem;
  font-weight: 900;
}

.article-rule-grid h3 {
  margin-top: 32px;
}

.article-rule-grid p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.62;
}

.article-checklist-strong li::marker {
  color: #9b3f2f;
}

.article-comparison-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 30px 0 8px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  background: rgba(23, 21, 18, 0.16);
}

.article-comparison-table [role="row"] {
  display: grid;
  grid-template-columns: 0.86fr 1fr 1fr;
  gap: 1px;
}

.article-comparison-table span {
  padding: 16px;
  background: rgba(255, 250, 240, 0.76);
  color: #3f392f;
  font-size: 0.96rem;
  line-height: 1.55;
}

.article-comparison-table [role="columnheader"] {
  background: #171512;
  color: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.codex-workbench-figure {
  margin-top: 32px;
}

.source-tape {
  margin: 28px 0 8px;
}

.audit-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.audit-source-strip a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  color: #171512;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(79, 215, 197, 0.14);
}

.audit-source-strip a:hover,
.audit-source-strip a:focus-visible {
  outline: 2px solid rgba(79, 215, 197, 0.44);
}

.tool-choice-table strong {
  color: #171512;
}

.codex-top-five li {
  border-left: 3px solid rgba(42, 157, 143, 0.44);
  padding-left: 12px;
}

.operator-review-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 10px;
}

.operator-review-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.12), transparent 42%),
    rgba(255, 250, 240, 0.78);
}

.operator-review-card span {
  color: #9b3f2f;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.operator-review-card h3 {
  margin: 0;
  color: #171512;
  font-size: 1.12rem;
  line-height: 1.2;
}

.operator-review-card p {
  margin: 0;
  color: #3f392f;
  font-size: 0.96rem;
  line-height: 1.58;
}

.operator-review-card a {
  align-self: end;
  color: #126a60;
  font-size: 0.88rem;
  font-weight: 850;
}

.codex-dashboard {
  display: grid;
  gap: 18px;
  margin: 34px 0 12px;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(79, 215, 197, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(255, 189, 84, 0.14), transparent 38%),
    rgba(255, 250, 240, 0.9);
}

.codex-dashboard__header span,
.codex-goal-card span {
  color: #126a60;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.codex-dashboard__header h2 {
  margin: 10px 0 8px;
}

.codex-dashboard__header p {
  max-width: 760px;
  margin: 0;
  font-size: 0.98rem;
}

.codex-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.codex-goal-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.codex-goal-card strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.codex-goal-card p,
.codex-goal-card em {
  margin: 0;
  color: #5c513f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.codex-goal-card em {
  color: #8a4f18;
  font-style: normal;
  font-weight: 850;
}

.article-community {
  display: grid;
  gap: 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(23, 21, 18, 0.16);
  border-bottom: 1px solid rgba(23, 21, 18, 0.16);
  padding: 30px 0;
}

.article-community__copy {
  display: grid;
  gap: 8px;
}

.article-community__copy .eyebrow {
  margin: 0;
  color: #126a60;
}

.article-community__copy h2 {
  margin: 0;
  color: #171512;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.article-community__copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #5c513f;
  font-size: 0.98rem;
  line-height: 1.62;
}

.article-community__share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.article-community__share-link,
.article-community__copy-button,
.article-community__response-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 21, 18, 0.16);
  border-radius: 6px;
  padding: 0 13px;
  color: #171512;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.article-community__share-link {
  background: rgba(79, 215, 197, 0.16);
}

.article-community__share-link[data-article-share-network='facebook'] {
  background: rgba(24, 119, 242, 0.14);
}

.article-community__share-link[data-article-share-network='x'] {
  background: rgba(23, 21, 18, 0.08);
}

.article-community__share-link[data-article-share-network='linkedin'] {
  background: rgba(70, 120, 201, 0.14);
}

.article-community__share-link[data-article-share-network='hacker-news'] {
  background: rgba(255, 189, 84, 0.2);
}

.article-community__share-link[data-article-share-network='email'] {
  background: rgba(183, 255, 82, 0.22);
}

.article-community__copy-button {
  cursor: pointer;
  background: #171512;
  color: var(--paper-strong);
}

.article-community__copy-button[data-copy-state='done'] {
  border-color: rgba(18, 106, 96, 0.48);
  background: #126a60;
}

.article-community__share-link:hover,
.article-community__share-link:focus-visible,
.article-community__copy-button:hover,
.article-community__copy-button:focus-visible,
.article-community__response-link:hover,
.article-community__response-link:focus-visible {
  outline: 2px solid rgba(79, 215, 197, 0.44);
  outline-offset: 2px;
}

.article-community__copy-status {
  min-width: 72px;
  color: #126a60;
  font-size: 0.82rem;
  font-weight: 850;
}

.article-community__comments {
  min-height: 72px;
}

.article-community__giscus {
  margin-top: 18px;
}

.article-community__comments-note {
  border-left: 4px solid var(--cyan);
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(79, 215, 197, 0.12), transparent 52%),
    rgba(255, 250, 240, 0.78);
}

.article-community__comments-note span {
  color: #9b3f2f;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.article-community__comments-note p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #3f392f;
  font-size: 0.96rem;
  line-height: 1.58;
}

.article-community__comments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.article-community__response-link {
  width: fit-content;
  background: rgba(240, 106, 77, 0.12);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 21, 18, 0.16);
}

@media (max-width: 860px) {
  .article-video-panel,
  .hyperframes-source-panel,
  .article-rule-grid,
  .article-comparison-table [role="row"],
  .operator-review-board,
  .codex-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .article-reading-rail__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .article-reading-rail__meter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .article-page-shell {
    --article-reading-rail-top: calc(
      var(--site-fixed-header-clearance, calc(78px + env(safe-area-inset-top, 0px))) + 4px
    );
  }
}

@media (max-width: 560px) {
  .article-reading-rail {
    display: none;
  }

  .codex-workbench-figure,
  .codex-dashboard {
    margin-inline: -2px;
  }
}

@media (max-width: 420px) {
  .article-hero-copy {
    padding-top: 64px;
  }

  .audit-source-strip {
    display: grid;
  }

  .audit-source-strip a {
    width: 100%;
  }

  .article-shell h2 {
    font-size: 1.7rem;
  }

  .article-footer {
    display: grid;
  }

  .article-community__share {
    display: grid;
  }

  .article-community__share-link,
  .article-community__copy-button,
  .article-community__response-link {
    width: 100%;
  }

  .article-community__copy-status {
    min-width: 0;
  }
}
