/* ============================================================
   MEGAWATT IQ — ARTICLE LAYER  ·  "Cashmere Terminal"
   Long-form reading styles for /resources/ articles.
   Extends megawatt.css — never duplicates its tokens or base.
   Load AFTER megawatt.css:
     <link rel="stylesheet" href="/assets/megawatt.css">
     <link rel="stylesheet" href="/assets/article.css">
   ============================================================ */

/* ---- A1. ARTICLE LAYOUT --------------------------------------- */
/* Readable column: 68–72ch centered, generous mobile padding      */
.art-wrap {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 24px;
}

/* Article header section */
.art-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}

/* Article body section */
.art-body {
  padding: 48px 0 80px;
}

/* ---- A2. ARTICLE HEADER --------------------------------------- */
/* Kicker / section label above the title */
.art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.art-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* H1 — article title */
.art-head h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 20px;
}
.art-head h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* Standfirst — slightly larger, muted, under H1 */
.art-standfirst {
  font-size: 1.15rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 58ch;
}

/* Metadata row: date + label */
.art-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.art-meta .art-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.art-meta .art-label {
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.art-meta .art-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hairline-2);
  flex: none;
}

/* ---- A3. BODY TYPOGRAPHY -------------------------------------- */
/* Comfortable long-form reading rhythm                            */
.art-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

/* Spacing between block elements */
.art-body > * + * {
  margin-top: 1.4em;
}
.art-body > h2 + *,
.art-body > h3 + * {
  margin-top: .7em;
}

/* H2 — item headlines */
.art-body h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--hairline);
}
/* First H2 — no top border (flows from standfirst) */
.art-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* H3 — sub-sections */
.art-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 1.8em;
}

/* Body paragraph */
.art-body p {
  margin: 0;
}

/* Body links — visibly styled, distinct from surrounding text */
.art-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(140, 106, 51, .4);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.art-body a:hover {
  color: var(--accent-press);
  text-decoration-color: var(--accent-press);
}

/* ---- A4. DILIGENCE LENS CALLOUT ------------------------------- */
/* Signature element: left accent border, tinted card background   */
.art-body .dl {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px 14px 20px;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 1.2em;
}
.art-body .dl strong {
  color: var(--accent-press);
  font-weight: 700;
}

/* ---- A5. LISTS ------------------------------------------------ */
.art-body ul,
.art-body ol {
  padding-left: 1.5em;
}
.art-body ul {
  list-style: none;
  padding-left: 0;
}
.art-body ul li {
  padding-left: 1.4em;
  position: relative;
}
.art-body ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.art-body ol li {
  padding-left: .3em;
  color: var(--ink);
}
.art-body li + li {
  margin-top: .45em;
}

/* ---- A6. BLOCKQUOTE ------------------------------------------- */
.art-body blockquote {
  border-left: 3px solid var(--hairline-2);
  margin-left: 0;
  padding: 10px 0 10px 22px;
  color: var(--ink-2);
  font-style: italic;
}
.art-body blockquote p {
  margin: 0;
}

/* ---- A7. TABLES ----------------------------------------------- */
/* Compact data tables — announced capacity, deal comparables      */
.art-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.45;
  margin-top: 1.4em;
}
.art-body th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-weight: 500;
  padding: 9px 12px;
  border-bottom: 2px solid var(--hairline-2);
  text-align: left;
}
.art-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink);
}
.art-body tr:last-child td {
  border-bottom: none;
}
.art-body tbody tr:hover td {
  background: var(--accent-soft);
}
.art-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.4em;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}
.art-tbl-wrap table {
  margin-top: 0;
  min-width: 520px;
}

/* ---- A8. ARTICLE CTA BLOCK ------------------------------------ */
/* Footer CTA — one sentence + button, same .btn system            */
.art-cta {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--ink);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.art-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 140% at 50% 0, rgba(255,255,255,.1), transparent 60%);
  pointer-events: none;
}
.art-cta p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 38ch;
  margin: 0;
  position: relative;
  z-index: 1;
}
.art-cta p strong {
  color: #fff;
}
.art-cta .btn-primary {
  background: var(--card);
  color: var(--ink);
  white-space: nowrap;
  flex: none;
  position: relative;
  z-index: 1;
}
.art-cta .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-press);
}

/* ---- A9. RESOURCES INDEX — article list ----------------------- */
/* Simple dated card list on /resources/index.html                 */
.res-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--hairline);
}
.res-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
  border-radius: 4px;
}
.res-item:hover {
  background: var(--accent-soft);
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
}
.res-item .res-date {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  white-space: nowrap;
}
.res-item .res-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.res-item .res-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---- A10. RESPONSIVE ------------------------------------------ */
@media (max-width: 768px) {
  .art-wrap { padding: 0 20px; }
  .art-head { padding: 48px 0 32px; }
  .art-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .art-body h2 { margin-top: 2em; }
  .res-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .res-item .res-date { grid-column: 1; grid-row: 2; }
  .res-item .res-title { grid-column: 1 / 3; grid-row: 1; }
  .res-item .res-tag { grid-column: 2; grid-row: 2; }
}

@media (max-width: 480px) {
  .art-wrap { padding: 0 16px; }
  .art-head { padding: 36px 0 24px; }
  .art-body { font-size: 1rem; }
  .art-cta { padding: 22px 18px; }
  .art-cta p { font-size: .95rem; }
}
