/* Dylan4Vets article uplift layer
   Loaded after per-post inline styles for focused visual overrides. */

.article-page,
.article-page * {
  max-width: 100%;
}

.article-page {
  --article-line: rgba(148, 163, 184, 0.2);
  --article-line-strong: rgba(226, 232, 240, 0.34);
  --article-surface: rgba(15, 23, 42, 0.78);
  --article-surface-strong: rgba(15, 23, 42, 0.96);
  --article-muted-surface: rgba(2, 6, 23, 0.42);
  --article-shadow: 0 18px 44px rgba(2, 6, 23, 0.3);
  padding-top: 10px;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.14), transparent 260px),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.04) 0 1px, transparent 1px 58px);
}

.light-mode .article-page {
  --article-line: rgba(15, 23, 42, 0.1);
  --article-line-strong: rgba(15, 23, 42, 0.18);
  --article-surface: rgba(255, 255, 255, 0.9);
  --article-surface-strong: rgba(255, 255, 255, 0.98);
  --article-muted-surface: rgba(248, 250, 252, 0.9);
  --article-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 260px),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 58px);
}

.article-page .article-header {
  margin: 0 0 10px;
  padding: 2px 0 0;
}

.article-page .greeting,
.article-page .article-pill-label,
.article-page .widget-badge,
.article-page .hero-snapshot-label,
.article-page .summary-card .label,
.article-page .fact-tile span:first-child {
  letter-spacing: 0;
}

.article-page .greeting {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 8px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.light-mode .article-page .greeting {
  color: #92400e;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(180, 83, 9, 0.2);
}

.article-page .article-header h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.9rem, 9.2vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-page .article-header p:not(.greeting),
.article-page .article-meta {
  max-width: 42ch;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.48;
}

.article-page .article-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.article-page .article-meta .divider {
  display: none;
}

.article-page > .widget-hero {
  min-height: 330px;
  width: calc(100% + 28px);
  max-width: none;
  margin: 0 -14px 16px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  border-color: rgba(226, 232, 240, 0.14);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.84)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62) 58%, rgba(2, 6, 23, 0.28)),
    url("/assets/fly-by.jpg") center / cover no-repeat;
  box-shadow: var(--article-shadow);
}

.article-page > .widget-hero::before {
  inset: 0;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(37, 99, 235, 0.24), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 40px);
  opacity: 0.62;
  mix-blend-mode: screen;
}

.article-page > .widget-hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.article-page .widget-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 16px;
}

.article-page .widget-content h2 {
  max-width: 14ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 7.6vw, 2.18rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-page .widget-content p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: #e5e7eb;
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-page .widget-action {
  margin-top: 14px;
  color: #fde68a;
}

.article-page .widget-bg-icon {
  display: none;
}

.article-page .scroll-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  overflow: visible;
}

.article-page .scroll-chips .chip {
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 9px 8px;
  border-radius: 8px;
  border-color: var(--article-line);
  background: var(--article-surface);
  box-shadow: none;
  font-size: 0.76rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.article-page .scroll-chips .chip:hover {
  border-color: var(--article-line-strong);
}

.article-page .article-section {
  margin-bottom: 14px;
}

.article-page .article-card,
.article-page .mini-grid-item,
.article-page .hero-snapshot-card,
.article-page .fact-tile,
.article-page .foo-step,
.article-page .article-callout,
.article-page .article-table-wrap {
  border-radius: 8px;
}

.article-page .article-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--article-line);
  background:
    linear-gradient(180deg, var(--article-surface-strong), var(--article-surface));
  box-shadow: var(--article-shadow);
}

.article-page .article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #fbbf24, #f87171);
  opacity: 0.82;
  pointer-events: none;
}

.article-page .article-card h2,
.article-page .article-card h3,
.article-page .article-card h4,
.article-page .mini-grid-item strong,
.article-page .hero-snapshot-card strong,
.article-page .fact-tile strong,
.article-page .foo-step strong {
  letter-spacing: 0;
  text-wrap: balance;
}

.article-page .article-card h2 {
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  line-height: 1.12;
}

.article-page .article-card p,
.article-page .article-card li {
  line-height: 1.58;
}

.article-page .article-pill-label,
.article-page .widget-badge {
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.article-page .mini-grid,
.article-page .hero-snapshot-grid,
.article-page .fact-strip,
.article-page .foo-grid {
  gap: 9px;
}

.article-page .mini-grid-item,
.article-page .hero-snapshot-card,
.article-page .fact-tile,
.article-page .foo-step {
  min-width: 0;
  border: 1px solid var(--article-line);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), transparent 46%),
    var(--article-muted-surface);
  box-shadow: none;
}

.article-page .timeline {
  gap: 12px;
}

.article-page .timeline-step {
  grid-template-columns: 32px minmax(0, 1fr);
}

.article-page .timeline-marker,
.article-page .foo-step-number {
  border-radius: 8px;
  box-shadow: none;
}

.article-page .article-btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.article-page .article-btn {
  min-width: 0;
  min-height: 42px;
  border-radius: 8px;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
  letter-spacing: 0;
}

.article-page .article-table-wrap {
  overflow-x: auto;
  border-color: var(--article-line);
}

.article-page .source-list,
.article-page .sources-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.article-page .source-list a,
.article-page .sources-list a {
  overflow-wrap: anywhere;
}

.read-progress {
  height: 3px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.read-progress-bar {
  height: 3px;
  border-radius: 0 999px 999px 0;
}

@media (max-width: 639px) {
  .article-page .widget-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .article-page .widget-action {
    display: none;
  }
}

@media (min-width: 640px) {
  .article-page {
    padding-top: 16px;
  }

  .article-page .article-header h1 {
    font-size: clamp(2.35rem, 6vw, 4.2rem);
  }

  .article-page > .widget-hero {
    width: auto;
    max-width: 100%;
    min-height: 430px;
    margin-inline: 0;
    border-left: 1px solid rgba(226, 232, 240, 0.14);
    border-right: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 8px;
  }

  .article-page .widget-content {
    justify-content: flex-end;
    padding: 24px;
  }

  .article-page .widget-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
  }

  .article-page .scroll-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-page .article-btn-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .article-page {
    width: min(100%, 1240px);
    max-width: calc(100% - 48px);
    margin-inline: auto;
    padding-left: clamp(24px, 3vw, 40px);
    padding-right: clamp(24px, 3vw, 40px);
  }

  .article-page .article-header {
    margin-bottom: 18px;
  }

  .article-page .article-header h1 {
    max-width: 20ch;
    font-size: clamp(3rem, 5.4vw, 5.2rem);
  }

  .article-page .article-header p:not(.greeting),
  .article-page .article-meta {
    max-width: 62ch;
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .article-page > .widget-hero {
    min-height: clamp(430px, 36vw, 560px);
  }

  .article-page .widget-content {
    padding: clamp(28px, 4vw, 48px);
  }

  .article-page .widget-content h2 {
    max-width: 18ch;
    font-size: clamp(2.7rem, 4.8vw, 4.6rem);
  }

  .article-page .widget-content p {
    max-width: 48ch;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .article-page .article-section {
    margin-bottom: 18px;
  }

  .article-page .article-card {
    padding: clamp(22px, 2.4vw, 32px);
  }

  .article-page .article-card h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  }

  .article-page .article-card h3 {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  }

  .article-page .article-card p,
  .article-page .article-card li {
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .article-page .mini-grid,
  .article-page .hero-snapshot-grid,
  .article-page .fact-strip,
  .article-page .foo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-page .scroll-chips {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1200px) {
  .article-page {
    width: min(100%, 1320px);
    max-width: calc(100% - 72px);
  }

  .article-page .scroll-chips {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  .article-page .scroll-chips,
  .article-page .mini-grid,
  .article-page .hero-snapshot-grid,
  .article-page .fact-strip,
  .article-page .foo-grid {
    grid-template-columns: 1fr;
  }
}
