/* HOW TO: FINANCE — Contributor Article (Johnnie / Isabella)
   Bloomberg-terminal chrome + editorial body. Uses tokens from styles.css. */

/* ========== PROGRESS BAR ========== */
.art-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.art-progress > div {
  height: 100%;
  background: var(--forest);
  transition: width 0.08s linear;
}

/* ========== PAGE SCAFFOLD ========== */
.art { background: var(--paper); color: var(--ink); }
.art[data-lane="business"] { background: var(--fog); }

/* ========== HERO ========== */
.art-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 40px 40px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.art-crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mute); font-weight: 600;
  margin-bottom: 24px;
}
.art-crumbs a { color: var(--forest); }
.art-crumbs a:hover { color: var(--forest-2); text-decoration: underline; }
.art-crumbs__sep { color: var(--line); }

.art-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--forest-ink); color: var(--mint);
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 28px;
}
.art-kicker::before {
  content: "●"; color: var(--mint); font-size: 8px;
}

.art-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.art-title em {
  font-family: var(--ff-editorial);
  font-style: italic; font-weight: 400;
  color: var(--forest);
}

.art-sub {
  font-family: var(--ff-editorial);
  font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 60ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* ========== BYLINE ========== */
.art-by {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--forest-ink);
  background: var(--paper);
}
.art-by__av {
  width: 38px; height: 38px;
  background: var(--forest);
  color: var(--mint);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  flex: none;
}
.art-by__who { display: flex; flex-direction: column; gap: 2px; }
.art-by__name {
  font-family: var(--ff-body);
  font-size: 14px; font-weight: 600; color: var(--forest-ink);
}
.art-by__name a {
  color: var(--forest);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.art-by__name a:hover { border-color: var(--forest); }
.art-by__meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
}
.art-by__sep { color: var(--line); }

/* ========== COVER ========== */
.art-cover {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 0;
}
.art-cover__inner {
  position: relative;
  aspect-ratio: 16 / 8;
  max-height: 520px;
  background: linear-gradient(135deg, var(--forest-ink) 0%, var(--forest) 60%, var(--forest-2) 100%);
  border: 1px solid var(--forest-ink);
  overflow: hidden;
}
.art-cover__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(153, 237, 195, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(153, 237, 195, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.art-cover__tag {
  position: absolute; top: 24px; left: 24px;
  padding: 6px 12px;
  background: var(--mint); color: var(--forest-ink);
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.18em; font-weight: 700;
}
.art-cover__mark {
  position: absolute; bottom: 24px; right: 28px;
  font-family: var(--ff-editorial);
  font-style: italic; font-size: 72px;
  color: var(--mint); opacity: 0.5; line-height: 1;
}
.art-cover__cap {
  margin: 14px 0 0;
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}

/* ========== BODY ========== */
.art-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  font-family: var(--ff-body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.art-p {
  margin: 0 0 24px;
  text-wrap: pretty;
}
.art-p strong { color: var(--forest-ink); font-weight: 700; }
.art-p em { font-family: var(--ff-editorial); font-style: italic; }

.art-body > .art-p:first-of-type::first-letter {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 76px;
  line-height: 0.85;
  float: left;
  padding: 10px 14px 0 0;
  color: var(--forest);
  font-weight: 400;
}

.art-h2 {
  font-family: var(--ff-display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--forest-ink);
  margin: 56px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.art-h2::before {
  content: "§";
  position: absolute;
  top: 24px; left: -28px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--forest);
  opacity: 0.5;
}
.art-h2 em {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

/* ========== PULL QUOTE ========== */
.art-pull {
  margin: 56px -20px;
  padding: 4px 36px;
  border-left: 3px solid var(--forest);
  position: relative;
}
.art-pull__mark {
  position: absolute;
  top: -20px; left: 24px;
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--mint);
  opacity: 0.6;
}
.art-pull p {
  font-family: var(--ff-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--forest-ink);
  margin: 0;
  text-wrap: balance;
  position: relative;
}
.art-pull__attr {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
  margin-top: 16px;
}

/* ========== SIDEBAR ========== */
.art-side {
  margin: 48px -20px;
  padding: 28px 32px;
  background: var(--fog-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
}
.art-side__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 12px;
}
.art-side__h {
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--forest-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.art-side p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.art-side p:last-child { margin-bottom: 0; }

/* ========== NATIVE CTA ========== */
.art-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 40px -20px;
  padding: 28px 36px;
  background: var(--forest-ink);
  color: var(--mint);
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: background 0.2s;
}
.art-cta:hover { background: var(--forest); }
.art-cta__k {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pistachio); font-weight: 700;
  margin-bottom: 6px;
}
.art-cta__h {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.art-cta__sub {
  font-size: 13px;
  color: var(--pistachio);
  font-weight: 400;
}
.art-cta__arr {
  width: 44px; height: 44px;
  background: var(--mint);
  color: var(--forest-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-size: 18px; font-weight: 700;
  flex: none;
}

/* ========== CHECKLIST ========== */
.art-check {
  margin: 40px -20px;
  padding: 28px 32px;
  background: var(--paper);
  border: 1px solid var(--forest-ink);
}
.art-check__tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 10px;
}
.art-check__h {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-ink);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.art-check ol {
  list-style: none;
  padding: 0; margin: 0;
}
.art-check li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
}
.art-check li:first-child { border-top: 0; }
.art-check__n {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.08em;
}

/* ========== NUMBERS BOX ========== */
.art-nums {
  margin: 48px -20px;
  padding: 24px 28px;
  background: var(--forest-ink);
  color: var(--pistachio);
  border: 1px solid var(--forest);
}
.art-nums__tag {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mint); font-weight: 700;
  margin-bottom: 14px;
}
.art-nums__h {
  font-family: var(--ff-display);
  font-size: 18px;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 600;
}
.art-nums__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.art-nums__cell {
  padding: 12px 14px;
  background: rgba(153, 237, 195, 0.06);
  border: 1px solid var(--forest-2);
}
.art-nums__k {
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pistachio); font-weight: 600;
  margin-bottom: 6px;
}
.art-nums__v {
  font-family: var(--ff-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.art-nums__d {
  font-size: 11px;
  color: var(--pistachio);
  line-height: 1.3;
  opacity: 0.8;
}

/* ========== WARNING ========== */
.art-warn {
  margin: 32px -20px;
  padding: 20px 24px;
  background: var(--fog);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.art-warn > span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  padding-top: 3px;
}
.art-warn p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ========== DISCLAIMER ========== */
.art-disc {
  margin: 48px -20px 24px;
  padding: 18px 22px;
  background: var(--fog-2);
  border: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.art-disc strong {
  color: var(--forest);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ========== SIGNOFF ========== */
.art-sign {
  margin: 12px -20px 0;
  padding: 20px 24px;
  background: var(--forest-ink);
  color: var(--mint);
  font-family: var(--ff-editorial);
  font-style: italic;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ========== ABOUT AUTHOR ========== */
.art-about {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: start;
}
.art-about__av {
  width: 96px; height: 96px;
  background: var(--forest);
  color: var(--mint);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 40px; font-weight: 700;
  flex: none;
}
.art-about__head {
  margin-bottom: 10px;
}
.art-about__tag {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); font-weight: 600;
  display: block; margin-bottom: 6px;
}
.art-about h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  color: var(--forest-ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.art-about p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.art-about__link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--forest);
  color: var(--mint);
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.16em; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.art-about__link:hover { background: var(--forest-ink); }

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
  .art-hero { padding: 44px 22px 32px; }
  .art-body { padding: 44px 22px 32px; font-size: 17px; }
  .art-body > .art-p:first-of-type::first-letter { font-size: 58px; }
  .art-cover { padding: 24px 22px 0; }
  .art-h2 { font-size: 26px; margin: 44px 0 16px; }
  .art-h2::before { display: none; }
  .art-pull { margin: 40px 0; padding: 4px 20px; }
  .art-pull p { font-size: 22px; }
  .art-pull__mark { left: 12px; font-size: 72px; top: -16px; }
  .art-side, .art-cta, .art-check, .art-nums, .art-warn, .art-disc, .art-sign { margin-left: 0; margin-right: 0; }
  .art-nums__grid { grid-template-columns: 1fr; gap: 10px; }
  .art-cta { grid-template-columns: 1fr; gap: 16px; }
  .art-cta__arr { justify-self: start; }
  .art-about { grid-template-columns: 1fr; gap: 16px; padding: 32px 22px; }
  .art-about__av { width: 64px; height: 64px; font-size: 28px; }
}
