/* TelegramMT4 — individual Gold/XAUUSD article redesign
   This layer deliberately does not rewrite article title or body content.
   It styles the database output and adds the surrounding reader experience. */

:root {
  --article-gold: #e6b858;
  --article-gold-light: #f7e6a7;
  --article-gold-deep: #9a6814;
  --article-ink: #102238;
  --article-copy: #40566f;
  --article-copy-soft: #667b92;
  --article-paper: #f7fbff;
  --article-paper-2: #eef5fb;
  --article-paper-line: rgba(16, 34, 56, .12);
  --article-header-offset: calc(var(--header-height) + 22px);
}

body.blog-article-gold {
  background:
    radial-gradient(circle at 9% 5%, rgba(46, 167, 255, .16), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(230, 184, 88, .11), transparent 27rem),
    var(--color-bg);
}

.blog-article-gold .site-header {
  background: linear-gradient(180deg, rgba(4, 10, 19, .68), rgba(4, 10, 19, 0));
}

.blog-article-gold .site-header.is-scrolled,
.blog-article-gold .site-header:focus-within {
  background: rgba(4, 10, 19, .91);
}

/* Reading progress */
.article-reading-progress {
  position: fixed;
  z-index: 1250;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(148, 169, 194, .08);
}

.article-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-brand), var(--color-cyan) 58%, var(--article-gold));
  box-shadow: 0 0 18px rgba(102, 227, 255, .45);
  will-change: transform;
}

/* Hero */
.gold-article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(3.25rem, 7vw, 6rem)) 0 clamp(5rem, 8vw, 7.5rem);
  border-bottom: 1px solid rgba(148, 169, 194, .1);
}

.gold-article-hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 19, .64));
  pointer-events: none;
}

.gold-article-atmosphere {
  position: absolute;
  z-index: -4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gold-article-atmosphere::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(148, 169, 194, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 169, 194, .065) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .8) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .8) 55%, transparent 100%);
  transform: perspective(760px) rotateX(61deg) translateY(-17%);
  transform-origin: 50% 0;
}

.gold-article-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 38%, rgba(46, 167, 255, .23), transparent 26rem),
    radial-gradient(circle at 86% 35%, rgba(230, 184, 88, .18), transparent 25rem),
    radial-gradient(circle at 58% 12%, rgba(65, 211, 158, .06), transparent 20rem);
}

.gold-article-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: .7;
}

.gold-article-orb--blue {
  width: 23rem;
  height: 23rem;
  left: -7rem;
  top: 17%;
  background: rgba(46, 167, 255, .09);
}

.gold-article-orb--gold {
  width: 20rem;
  height: 20rem;
  right: -3rem;
  top: 8%;
  background: rgba(230, 184, 88, .1);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-muted);
  font-size: .78rem;
}

.article-breadcrumbs a {
  transition: color var(--transition);
}

.article-breadcrumbs a:hover,
.article-breadcrumbs a:focus-visible {
  color: var(--color-cyan);
}

.article-breadcrumbs span[aria-hidden="true"] {
  color: rgba(148, 169, 194, .5);
}

.gold-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(500px, 1.02fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.8rem);
}

.gold-hero-copy {
  min-width: 0;
  max-width: 720px;
}

.gold-article-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  padding: .52rem .78rem;
  border: 1px solid rgba(230, 184, 88, .28);
  border-radius: var(--radius-pill);
  color: var(--article-gold-light);
  background: rgba(230, 184, 88, .08);
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gold-article-kicker img {
  width: 1.05rem;
  height: 1.05rem;
}

.gold-hero-copy h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(3rem, 4.7vw, 4.65rem);
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.gold-hero-summary {
  max-width: 63ch;
  margin: 1.45rem 0 0;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.gold-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  margin-top: 1.45rem;
  color: var(--color-muted);
  font-size: .78rem;
}

.gold-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.gold-article-meta img {
  width: 1rem;
  height: 1rem;
}

.gold-article-meta .reviewed {
  color: var(--color-text-soft);
}

.gold-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.8rem;
}

.gold-hero-actions .button img {
  width: 1rem;
  height: 1rem;
}

.button--gold {
  color: #261a05;
  border-color: rgba(247, 230, 167, .4);
  background: linear-gradient(135deg, #f7e6a7 0%, #e6b858 62%, #c38c2d 100%);
  box-shadow: 0 18px 48px rgba(230, 184, 88, .2);
}

.button--gold:hover {
  box-shadow: 0 22px 65px rgba(230, 184, 88, .3);
}

.gold-hero-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--color-muted-2);
  font-size: .74rem;
}

.gold-hero-note img {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .08rem;
}

/* Animated article visual */
.gold-market-window {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(148, 169, 194, .22);
  border-radius: 1.65rem;
  background:
    linear-gradient(145deg, rgba(18, 38, 62, .96), rgba(7, 19, 33, .98)),
    var(--color-surface);
  box-shadow: 0 46px 130px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.gold-market-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(102, 227, 255, .08), transparent 25%, transparent 70%, rgba(230, 184, 88, .07)),
    radial-gradient(circle at 83% 14%, rgba(230, 184, 88, .13), transparent 15rem);
  pointer-events: none;
}

.gold-window-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0 .95rem 0 1rem;
  border-bottom: 1px solid var(--color-line);
  background: rgba(4, 10, 19, .42);
}

.gold-window-title {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  color: var(--color-text-soft);
  font-size: .78rem;
  font-weight: 730;
}

.gold-window-title img {
  width: 2rem;
  height: 2rem;
}

.gold-window-title span {
  display: grid;
  line-height: 1.25;
}

.gold-window-title small {
  color: var(--color-muted);
  font-size: .62rem;
  font-weight: 600;
}

.gold-window-controls {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.gold-live-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .55rem;
  border: 1px solid rgba(65, 211, 158, .17);
  border-radius: var(--radius-pill);
  color: var(--color-success);
  background: rgba(65, 211, 158, .07);
  font-size: .64rem;
  font-weight: 760;
}

.gold-live-pill::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(65, 211, 158, .08);
}

.gold-market-stage {
  position: relative;
  z-index: 2;
  min-height: 404px;
  padding: 1rem;
}

.gold-ticker-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(230, 184, 88, .16);
  border-radius: .9rem;
  background: rgba(7, 17, 31, .72);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}

.gold-symbol {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.gold-symbol-icon {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(230, 184, 88, .22);
  border-radius: .7rem;
  color: var(--article-gold-light);
  background: rgba(230, 184, 88, .09);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .03em;
}

.gold-symbol strong,
.gold-price strong {
  display: block;
  font-family: var(--font-mono);
}

.gold-symbol strong {
  font-size: .78rem;
}

.gold-symbol small {
  display: block;
  color: var(--color-muted);
  font-size: .58rem;
}

.gold-spread-line {
  height: 1px;
  min-width: 30px;
  background: linear-gradient(90deg, transparent, rgba(230, 184, 88, .38), transparent);
}

.gold-price {
  text-align: right;
}

.gold-price strong {
  color: var(--article-gold-light);
  font-size: .83rem;
}

.gold-price small {
  color: var(--color-success);
  font-size: .58rem;
}

.gold-chart-plane {
  position: absolute;
  z-index: 0;
  inset: 5.55rem .85rem auto;
  height: 154px;
  overflow: hidden;
  border: 1px solid rgba(148, 169, 194, .1);
  border-radius: .95rem;
  background:
    linear-gradient(rgba(148, 169, 194, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 169, 194, .055) 1px, transparent 1px),
    rgba(4, 10, 19, .36);
  background-size: 26px 26px;
}

.gold-chart-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, .92), transparent 16%, transparent 86%, rgba(7, 17, 31, .78));
  pointer-events: none;
}

.gold-chart-svg {
  position: absolute;
  inset: 12px 0 0;
  width: 100%;
  height: 134px;
}

.gold-chart-area {
  opacity: .22;
}

.gold-chart-path {
  fill: none;
  stroke: url(#goldChartStroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(230, 184, 88, .35));
}

.gold-candles {
  position: absolute;
  inset: 18px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: .66;
}

.gold-candle {
  position: relative;
  width: 5px;
  height: var(--candle-h, 32px);
  border-radius: 2px;
  background: var(--candle-color, var(--color-success));
  transform: translateY(var(--candle-y, 0));
  box-shadow: 0 0 12px color-mix(in srgb, var(--candle-color, var(--color-success)) 30%, transparent);
}

.gold-candle::before,
.gold-candle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 11px;
  background: var(--candle-color, var(--color-success));
  transform: translateX(-50%);
}

.gold-candle::before { bottom: 100%; }
.gold-candle::after { top: 100%; }

.gold-workflow {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, .92fr) 48px minmax(0, 1fr);
  align-items: end;
  gap: .25rem;
  min-height: 314px;
  padding-top: 9.7rem;
}

.gold-flow-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: .95rem;
  background: rgba(7, 17, 31, .9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.gold-flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(102, 227, 255, .045), transparent 42%, rgba(230, 184, 88, .035));
}

.gold-flow-card__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .58rem .65rem;
  border-bottom: 1px solid rgba(148, 169, 194, .1);
}

.gold-flow-card__head img {
  width: 1.65rem;
  height: 1.65rem;
  padding: .3rem;
  border-radius: .55rem;
  background: rgba(46, 167, 255, .1);
}

.gold-flow-card--order .gold-flow-card__head img {
  background: rgba(230, 184, 88, .09);
}

.gold-flow-card__head span {
  min-width: 0;
}

.gold-flow-card__head strong {
  display: block;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: .66rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gold-flow-card__head small {
  display: block;
  color: var(--color-muted-2);
  font-size: .51rem;
}

.gold-card-state {
  margin-left: auto;
  padding: .22rem .4rem;
  border-radius: var(--radius-pill);
  color: var(--color-cyan);
  background: rgba(46, 167, 255, .09);
  font-size: .49rem;
  font-weight: 780;
}

.gold-card-state--gold {
  color: var(--article-gold-light);
  background: rgba(230, 184, 88, .1);
}

.gold-signal-body,
.gold-parser-body,
.gold-order-body {
  position: relative;
  display: grid;
  gap: .4rem;
  padding: .62rem;
}

.gold-signal-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 780;
}

.gold-buy-badge {
  padding: .2rem .4rem;
  border-radius: .4rem;
  color: #ceffed;
  background: rgba(65, 211, 158, .12);
  font-family: var(--font-sans);
  font-size: .48rem;
  letter-spacing: .05em;
}

.gold-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  color: var(--color-muted);
  font-size: .52rem;
}

.gold-data-row strong {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: .53rem;
}

.gold-parser-field {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: .4rem;
  padding: .28rem .36rem;
  border: 1px solid rgba(148, 169, 194, .09);
  border-radius: .45rem;
  background: rgba(15, 32, 53, .5);
  color: var(--color-muted);
  font-size: .49rem;
}

.gold-parser-field i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 3px rgba(102, 227, 255, .06);
}

.gold-parser-field strong {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: .49rem;
}

.gold-order-status {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .4rem;
  border: 1px solid rgba(65, 211, 158, .12);
  border-radius: .5rem;
  color: var(--color-success);
  background: rgba(65, 211, 158, .055);
  font-size: .49rem;
  font-weight: 760;
}

.gold-order-status::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #061b13;
  background: var(--color-success);
  font-size: .58rem;
  font-weight: 900;
}

.gold-flow-route {
  position: relative;
  align-self: center;
  height: 2px;
  margin-top: 9rem;
  background: linear-gradient(90deg, transparent, rgba(102, 227, 255, .65), transparent);
}

.gold-flow-route--gold {
  background: linear-gradient(90deg, transparent, rgba(230, 184, 88, .7), transparent);
}

.gold-flow-route i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 5px rgba(102, 227, 255, .08), 0 0 16px rgba(102, 227, 255, .65);
  transform: translate(-50%, -50%);
}

.gold-flow-route--gold i {
  background: var(--article-gold);
  box-shadow: 0 0 0 5px rgba(230, 184, 88, .08), 0 0 16px rgba(230, 184, 88, .6);
}

.gold-window-status {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: .75rem 1rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  background: rgba(4, 10, 19, .22);
  font-size: .65rem;
}

.gold-window-status span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.gold-window-status .status-ready {
  color: var(--color-success);
}

.gold-window-status .status-ready::before {
  content: "";
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(65, 211, 158, .08);
}

/* Article reading area */
.article-reading-section {
  position: relative;
  padding: clamp(3.25rem, 6vw, 5.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  background:
    linear-gradient(180deg, rgba(4, 10, 19, .74), rgba(7, 17, 31, .98) 24rem),
    var(--color-bg);
}

.article-reading-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(92vw, 1150px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(102, 227, 255, .24), rgba(230, 184, 88, .18), transparent);
}

.article-mobile-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.article-mobile-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .65rem .8rem;
  border: 1px solid var(--color-line);
  border-radius: .75rem;
  color: var(--color-text-soft);
  background: rgba(15, 32, 53, .72);
  font-size: .74rem;
  font-weight: 740;
  cursor: pointer;
}

.article-mobile-toolbar img {
  width: 1rem;
  height: 1rem;
}

.article-reader-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px) 235px;
  justify-content: center;
  align-items: start;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.reader-card {
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: rgba(11, 24, 41, .74);
  box-shadow: 0 20px 65px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.article-toc-panel {
  position: sticky;
  top: var(--article-header-offset);
  overflow: hidden;
}

.article-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--color-line);
}

.article-toc-head strong {
  font-size: .76rem;
}

.article-toc-head span {
  color: var(--color-muted-2);
  font-size: .61rem;
}

.article-toc-links {
  max-height: calc(100vh - var(--article-header-offset) - 145px);
  overflow-y: auto;
  padding: .6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 227, 255, .2) transparent;
}

.article-toc-links:empty::before {
  content: "Headings will appear here";
  display: block;
  padding: .55rem;
  color: var(--color-muted-2);
  font-size: .68rem;
}

.article-toc-links a {
  position: relative;
  display: block;
  padding: .5rem .55rem .5rem .75rem;
  border-radius: .55rem;
  color: var(--color-muted);
  font-size: .69rem;
  line-height: 1.4;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.article-toc-links a::before {
  content: "";
  position: absolute;
  left: .18rem;
  top: .75rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(148, 169, 194, .42);
}

.article-toc-links a[data-level="3"] {
  padding-left: 1.25rem;
  font-size: .64rem;
}

.article-toc-links a[data-level="3"]::before {
  left: .7rem;
}

.article-toc-links a:hover,
.article-toc-links a:focus-visible {
  color: var(--color-text-soft);
  background: rgba(46, 167, 255, .055);
}

.article-toc-links a.is-active {
  color: var(--color-cyan);
  background: rgba(46, 167, 255, .08);
  transform: translateX(2px);
}

.article-toc-links a.is-active::before {
  background: var(--color-cyan);
  box-shadow: 0 0 0 4px rgba(102, 227, 255, .08);
}

.article-toc-progress {
  padding: .7rem .9rem .8rem;
  border-top: 1px solid var(--color-line);
}

.article-toc-progress div {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .45rem;
  color: var(--color-muted-2);
  font-size: .59rem;
}

.article-toc-progress strong {
  color: var(--color-text-soft);
  font-size: .59rem;
}

.article-toc-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(148, 169, 194, .1);
}

.article-toc-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-brand), var(--article-gold));
}

.article-paper {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 1.35rem;
  background: var(--article-paper);
  color: var(--article-ink);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .28);
}

.article-paper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-cyan) 55%, var(--article-gold));
}

.article-paper-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 1rem clamp(1.15rem, 4vw, 2.3rem);
  border-bottom: 1px solid var(--article-paper-line);
  background: rgba(238, 245, 251, .72);
}

.article-paper-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #526a83;
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.article-paper-label img {
  width: 1.05rem;
  height: 1.05rem;
}

.article-paper-tools {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.article-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-width: 38px;
  min-height: 38px;
  padding: .55rem .62rem;
  border: 1px solid var(--article-paper-line);
  border-radius: .65rem;
  color: #526a83;
  background: rgba(255, 255, 255, .7);
  font-size: .66rem;
  font-weight: 730;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.article-tool-button:hover,
.article-tool-button:focus-visible {
  color: #0d7fc4;
  border-color: rgba(46, 167, 255, .28);
  background: #fff;
  transform: translateY(-1px);
}

.article-tool-button img {
  width: .98rem;
  height: .98rem;
}

.article-prose {
  min-width: 0;
  padding: clamp(1.55rem, 4.5vw, 3.15rem);
  color: var(--article-copy);
  font-size: clamp(1rem, 1.1vw, 1.075rem);
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose > *:last-child {
  margin-bottom: 0;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4,
.article-prose h5,
.article-prose h6 {
  position: relative;
  color: var(--article-ink);
  font-weight: 820;
  line-height: 1.22;
  letter-spacing: -.025em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-height) + 2.2rem);
}

.article-prose h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.05rem, 4vw, 3rem);
}

.article-prose h2 {
  margin: 3.2rem 0 1rem;
  padding-top: .15rem;
  font-size: clamp(1.72rem, 3vw, 2.25rem);
}

.article-prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.72rem;
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-brand), var(--article-gold));
}

.article-prose h3 {
  margin: 2.35rem 0 .8rem;
  font-size: clamp(1.35rem, 2vw, 1.62rem);
}

.article-prose h4 {
  margin: 1.9rem 0 .65rem;
  font-size: 1.17rem;
}

.article-prose p {
  margin: 1.05rem 0;
}

.article-prose > p:first-of-type {
  color: #314a64;
  font-size: 1.12em;
  line-height: 1.8;
}

.article-prose strong,
.article-prose b {
  color: #223b55;
  font-weight: 790;
}

.article-prose em,
.article-prose i {
  color: #536b83;
}

.article-prose a {
  color: #087fc8;
  font-weight: 680;
  text-decoration: underline;
  text-decoration-color: rgba(8, 127, 200, .3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.article-prose a:hover,
.article-prose a:focus-visible {
  color: #075f98;
  text-decoration-color: currentColor;
}

.article-prose ul,
.article-prose ol {
  display: grid;
  gap: .58rem;
  margin: 1.2rem 0 1.4rem;
  padding-left: 1.35rem;
}

.article-prose li {
  padding-left: .15rem;
}

.article-prose li::marker {
  color: #0a94df;
  font-weight: 800;
}

.article-prose ul li::marker {
  color: var(--article-gold-deep);
}

.article-prose blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.2rem 1.25rem 1.2rem 1.35rem;
  border: 1px solid rgba(46, 167, 255, .16);
  border-left: 4px solid var(--color-brand);
  border-radius: 0 .9rem .9rem 0;
  color: #2c4963;
  background: linear-gradient(135deg, rgba(46, 167, 255, .065), rgba(230, 184, 88, .04));
}

.article-prose blockquote p:first-child {
  margin-top: 0;
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-prose pre {
  overflow-x: auto;
  margin: 1.6rem 0;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(102, 227, 255, .16);
  border-radius: 1rem;
  color: #dff7ff;
  background:
    linear-gradient(135deg, rgba(46, 167, 255, .075), rgba(230, 184, 88, .035)),
    #0a1929;
  box-shadow: 0 18px 45px rgba(16, 34, 56, .14);
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.article-prose code {
  padding: .15rem .34rem;
  border: 1px solid rgba(16, 34, 56, .1);
  border-radius: .35rem;
  color: #153852;
  background: #e8f1f8;
  font-family: var(--font-mono);
  font-size: .88em;
}

.article-prose pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.article-prose hr {
  height: 1px;
  margin: 2.6rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 34, 56, .18), transparent);
}

.article-prose img,
.article-prose video,
.article-prose iframe {
  max-width: 100%;
  height: auto;
  margin: 1.6rem auto;
  border: 1px solid var(--article-paper-line);
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(16, 34, 56, .12);
}

.article-prose figure {
  margin: 1.8rem 0;
}

.article-prose figure img {
  margin-bottom: .7rem;
}

.article-prose figcaption {
  color: var(--article-copy-soft);
  font-size: .76rem;
  line-height: 1.55;
  text-align: center;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--article-paper-line);
  border-radius: .9rem;
  box-shadow: 0 16px 40px rgba(16, 34, 56, .07);
}

.article-prose table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: #fff;
}

.article-prose th,
.article-prose td {
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--article-paper-line);
  color: var(--article-copy);
  font-size: .87rem;
  text-align: left;
  vertical-align: top;
}

.article-prose th {
  color: var(--article-ink);
  background: var(--article-paper-2);
  font-weight: 780;
}

.article-prose tr:last-child td {
  border-bottom: 0;
}

.article-prose details {
  margin: .85rem 0;
  border: 1px solid var(--article-paper-line);
  border-radius: .8rem;
  background: #fff;
}

.article-prose summary {
  padding: .9rem 1rem;
  color: var(--article-ink);
  font-weight: 760;
  cursor: pointer;
}

.article-prose details > :not(summary) {
  margin-inline: 1rem;
}

.article-prose details > :last-child {
  margin-bottom: 1rem;
}

/* Common DB/WYSIWYG classes */
.article-prose .wp-block-group,
.article-prose .content-block,
.article-prose .article-section {
  min-width: 0;
}

.article-prose .aligncenter {
  margin-inline: auto;
  text-align: center;
}

.article-prose .text-center {
  text-align: center;
}

.article-prose .callout,
.article-prose .info-box,
.article-prose .note,
.article-prose .key-takeaway {
  margin: 1.55rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(46, 167, 255, .17);
  border-radius: .85rem;
  color: #294761;
  background: linear-gradient(135deg, rgba(46, 167, 255, .065), rgba(65, 211, 158, .04));
}

.article-prose .warning,
.article-prose .risk-warning,
.article-prose .disclaimer {
  margin: 1.55rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(154, 104, 20, .22);
  border-radius: .85rem;
  color: #634b1f;
  background: rgba(230, 184, 88, .1);
}

.article-paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.15rem, 4vw, 2.3rem) 1.25rem;
  border-top: 1px solid var(--article-paper-line);
  background: rgba(238, 245, 251, .68);
}

.article-paper-footer p {
  margin: 0;
  color: #647990;
  font-size: .7rem;
}

.article-paper-footer-actions {
  display: flex;
  gap: .4rem;
}

/* Right rail */
.article-reader-rail {
  position: sticky;
  top: var(--article-header-offset);
  display: grid;
  gap: .85rem;
}

.reader-tools-card {
  padding: .9rem;
}

.reader-tools-card h2,
.reader-cta-card h2,
.reader-risk-card h2 {
  margin: 0;
  font-size: .83rem;
  line-height: 1.35;
}

.reader-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-top: .75rem;
}

.reader-tool {
  display: grid;
  place-items: center;
  gap: .35rem;
  min-height: 64px;
  padding: .45rem .25rem;
  border: 1px solid var(--color-line);
  border-radius: .7rem;
  color: var(--color-muted);
  background: rgba(7, 17, 31, .42);
  font-size: .57rem;
  font-weight: 690;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.reader-tool:hover,
.reader-tool:focus-visible {
  color: var(--color-cyan);
  border-color: rgba(102, 227, 255, .2);
  background: rgba(46, 167, 255, .06);
  transform: translateY(-1px);
}

.reader-tool img {
  width: 1.12rem;
  height: 1.12rem;
}

.reader-cta-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-color: rgba(230, 184, 88, .22);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 184, 88, .13), transparent 10rem),
    linear-gradient(145deg, rgba(20, 41, 67, .9), rgba(7, 17, 31, .88));
}

.reader-cta-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(230, 184, 88, .1);
  border-radius: 50%;
}

.reader-cta-card .reader-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .65rem;
  color: var(--article-gold-light);
  font-size: .58rem;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reader-cta-card .reader-cta-kicker img {
  width: .9rem;
  height: .9rem;
}

.reader-cta-card p,
.reader-risk-card p {
  margin: .55rem 0 .85rem;
  color: var(--color-muted);
  font-size: .68rem;
  line-height: 1.55;
}

.reader-cta-mini-flow {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr;
  align-items: center;
  gap: .14rem;
  margin: .85rem 0;
}

.reader-cta-mini-flow span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: .25rem;
  border: 1px solid rgba(148, 169, 194, .12);
  border-radius: .5rem;
  color: var(--color-text-soft);
  background: rgba(7, 17, 31, .65);
  font-size: .47rem;
  font-weight: 740;
  text-align: center;
}

.reader-cta-mini-flow i {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

.reader-cta-mini-flow i:last-of-type {
  background: linear-gradient(90deg, transparent, var(--article-gold), transparent);
}

.reader-cta-card .button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  font-size: .75rem;
}

.reader-risk-card {
  padding: .9rem;
}

.reader-risk-card h2 {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.reader-risk-card h2 img {
  width: 1.05rem;
  height: 1.05rem;
}

.reader-risk-card a {
  color: var(--color-cyan);
  font-size: .64rem;
  font-weight: 730;
}

.article-copy-status {
  position: fixed;
  z-index: 1400;
  right: 1rem;
  bottom: 1rem;
  max-width: min(320px, calc(100vw - 2rem));
  padding: .75rem .9rem;
  border: 1px solid rgba(65, 211, 158, .22);
  border-radius: .8rem;
  color: #ceffec;
  background: rgba(7, 28, 22, .96);
  box-shadow: var(--shadow-md);
  font-size: .72rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.article-copy-status.is-visible {
  opacity: 1;
  transform: none;
}

/* Context strip below article */
.gold-context-section {
  position: relative;
  padding: clamp(4.2rem, 8vw, 7rem) 0;
  border-block: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 20% 30%, rgba(46, 167, 255, .09), transparent 25rem),
    radial-gradient(circle at 82% 70%, rgba(230, 184, 88, .075), transparent 22rem),
    rgba(4, 10, 19, .45);
}

.gold-context-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.gold-context-heading h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.gold-context-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--color-muted);
}

.gold-context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gold-context-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid var(--color-line);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(20, 41, 67, .76), rgba(7, 17, 31, .78));
  box-shadow: 0 20px 65px rgba(0, 0, 0, .13);
}

.gold-context-card::before {
  content: attr(data-step);
  position: absolute;
  right: .9rem;
  top: .55rem;
  color: rgba(148, 169, 194, .08);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.gold-context-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(102, 227, 255, .16);
  border-radius: .8rem;
  background: rgba(46, 167, 255, .08);
}

.gold-context-card:nth-child(3) .gold-context-icon {
  border-color: rgba(230, 184, 88, .2);
  background: rgba(230, 184, 88, .08);
}

.gold-context-icon img {
  width: 1.45rem;
  height: 1.45rem;
}

.gold-context-card h3 {
  margin: 0;
  font-size: 1rem;
}

.gold-context-card p {
  margin: .55rem 0 0;
  color: var(--color-muted);
  font-size: .78rem;
}

.gold-context-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  color: var(--color-success);
  font-size: .62rem;
  font-weight: 740;
}

.gold-context-status::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(65, 211, 158, .07);
}

/* Related reading */
.gold-related-section {
  padding: clamp(4.4rem, 8vw, 7rem) 0;
}

.gold-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.gold-related-heading h2 {
  margin: .35rem 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.gold-related-heading p {
  max-width: 46ch;
  margin: 0;
  color: var(--color-muted);
  font-size: .84rem;
}

.gold-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gold-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 1.1rem;
  background: rgba(11, 24, 41, .68);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.gold-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 227, 255, .22);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
}

.gold-related-art {
  position: relative;
  height: 125px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(135deg, rgba(46, 167, 255, .14), rgba(230, 184, 88, .07), rgba(7, 17, 31, .82));
}

.gold-related-art::before,
.gold-related-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.gold-related-art::before {
  width: 115px;
  height: 115px;
  right: -22px;
  top: -36px;
  border: 1px solid rgba(102, 227, 255, .14);
}

.gold-related-art::after {
  width: 56px;
  height: 56px;
  left: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(230, 184, 88, .18);
  background: rgba(7, 17, 31, .72) url('/assets/icons/book.svg') center/27px no-repeat;
}

.gold-related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.05rem;
}

.gold-related-category {
  color: var(--color-cyan);
  font-size: .65rem;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gold-related-card h3 {
  margin: .55rem 0 .5rem;
  font-size: 1rem;
  line-height: 1.35;
}

.gold-related-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: .76rem;
}

.gold-related-card a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .95rem;
  color: var(--article-gold-light);
  font-size: .72rem;
  font-weight: 760;
}

/* Final CTA variant */
.gold-article-final .final-cta-shell {
  border-color: rgba(230, 184, 88, .2);
  background:
    radial-gradient(circle at 90% 20%, rgba(230, 184, 88, .1), transparent 20rem),
    linear-gradient(135deg, rgba(20, 41, 67, .92), rgba(8, 21, 36, .96));
}

.gold-article-final .final-cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(102, 227, 255, .04), transparent 42%, rgba(230, 184, 88, .04));
  pointer-events: none;
}

.gold-article-final .final-cta-shell > * {
  position: relative;
}

/* Mobile TOC overlay */
.article-toc-backdrop {
  display: none;
}

@media print {
  .site-header,
  .article-reading-progress,
  .gold-market-window,
  .gold-hero-actions,
  .gold-hero-note,
  .article-toc-panel,
  .article-reader-rail,
  .article-mobile-toolbar,
  .gold-context-section,
  .gold-related-section,
  .gold-article-final,
  .site-footer,
  .article-paper-toolbar,
  .article-paper-footer {
    display: none !important;
  }

  body.blog-article-gold,
  .article-reading-section {
    color: #111;
    background: #fff !important;
  }

  .gold-article-hero {
    padding: 1.5rem 0 1rem;
    border: 0;
  }

  .gold-article-atmosphere,
  .article-breadcrumbs,
  .gold-article-kicker,
  .gold-hero-summary {
    display: none !important;
  }

  .gold-hero-grid,
  .article-reader-grid {
    display: block;
  }

  .gold-hero-copy h1 {
    max-width: none;
    color: #111;
    font-size: 30pt;
  }

  .gold-article-meta {
    color: #555;
  }

  .article-reading-section {
    padding: 0;
  }

  .article-paper {
    border: 0;
    box-shadow: none;
  }

  .article-prose {
    padding: 0;
    color: #222;
    font-size: 11pt;
  }

  .article-prose a {
    color: #111;
  }
}

.article-toc-close {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: .55rem;
  color: var(--color-text-soft);
  background: rgba(15, 32, 53, .7);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 960px) {
  .article-toc-head {
    grid-template-columns: 1fr auto;
  }

  .article-toc-head span {
    display: none;
  }

  .article-toc-close {
    display: inline-grid;
    place-items: center;
  }
}

/* Keep compact workflow labels legible at article-hero scale. */
.gold-card-state {
  display: none;
}

.gold-flow-card__head > span:not(.gold-card-state) {
  flex: 1 1 auto;
  min-width: 0;
}

.gold-flow-card__head strong {
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
}
