/* article-styles/howto.css — split from public-article.css (2026-07-20).
 * Loaded per-article via a server-rendered <link> when
 * src/lib/blog/article-style-chunks.ts resolves the "howto" chunk.
 * Served raw from /public (no build step) — this file IS the source of
 * truth. Cascade: loads AFTER public-core.css + public-article.css in
 * document order. Source order preserves the original monolith order —
 * do not re-sort. New rules for this collection belong here. */


/* How To money article scope (.howto-money) — practical method blocks,
   responsive tables, and budget-template cards inside the standard reader. */
.howto-money {
  --htg-ink: #1f2924;
  --htg-body: #3f4d45;
  --htg-muted: #6f7c73;
  --htg-paper: #fffefa;
  --htg-soft: #eef5ee;
  --htg-line: #dde5dc;
  --htg-green: #376f54;
  --htg-blue: #3c6381;
  --htg-gold: #9a741d;
  --htg-red: #b45544;
  color: var(--htg-body);
}
.howto-money .htg-body { max-width: 760px; }
.howto-money .htg-body p {
  color: var(--htg-body);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.74;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.howto-money .htg-body strong { color: var(--htg-ink); font-weight: 650; }
.howto-money .htg-body a {
  color: var(--htg-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--htg-green) 35%, transparent);
}
.howto-money .htg-body a:hover { border-bottom-color: var(--htg-green); }
.howto-money .htg-lead {
  color: var(--htg-ink) !important;
  font-size: 22px !important;
  line-height: 1.5 !important;
  margin: 0 0 30px !important;
}
.howto-money .htg-body h2 {
  position: relative;
  color: var(--htg-ink);
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 58px 0 18px;
  padding-top: 22px;
}
.howto-money .htg-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--htg-green);
}
.howto-money .htg-body h3 {
  color: var(--htg-ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 620;
  line-height: 1.2;
  margin: 38px 0 12px;
}
.howto-money .htg-body h4 {
  color: var(--htg-ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  margin: 7px 0 8px;
}
.howto-money .htg-body ul,
.howto-money .htg-body ol {
  color: var(--htg-body);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  margin: 10px 0 24px;
  padding-left: 1.35em;
}
.howto-money .htg-body li { margin: 0 0 10px; padding-left: 4px; }
.howto-money .htg-body li::marker { color: var(--htg-green); }
.howto-money .ps-article-body > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  color: inherit;
}
.howto-money .htg-note,
.howto-money .htg-method,
.howto-money .htg-action,
.howto-money .htg-protocol,
.howto-money .htg-template {
  border: 1px solid var(--htg-line);
  border-radius: 8px;
  background: var(--htg-paper);
  padding: 18px 20px;
  margin: 30px 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.howto-money .htg-note--disclaimer {
  background: #f7f0e0;
  border-color: color-mix(in srgb, var(--htg-gold) 32%, transparent);
}
.howto-money .htg-note-label,
.howto-money .htg-method-label,
.howto-money .htg-action-label,
.howto-money .htg-protocol-label,
.howto-money .htg-mini-label {
  display: block;
  color: var(--htg-green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.howto-money .htg-note--disclaimer .htg-note-label { color: #835f15; }
.howto-money .htg-note p,
.howto-money .htg-method p,
.howto-money .htg-action p,
.howto-money .htg-protocol p,
.howto-money .htg-template p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.howto-money .htg-note p:last-child,
.howto-money .htg-method p:last-child,
.howto-money .htg-action p:last-child,
.howto-money .htg-template p:last-child {
  margin-bottom: 0;
}
.howto-money .htg-method,
.howto-money .htg-action {
  border-left: 4px solid var(--htg-green);
}
.howto-money .htg-protocol {
  border-left: 4px solid var(--htg-red);
  background: #fff9f4;
}
.howto-money .htg-protocol-label { color: var(--htg-red); }
.howto-money .htg-protocol ol {
  margin-bottom: 0;
  font-size: 17px;
}
.howto-money .htg-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.howto-money .htg-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  border: 1px solid var(--htg-line);
  border-radius: 8px;
  background: var(--htg-paper);
  padding: 16px;
}
.howto-money .htg-check > span {
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--htg-green) 45%, var(--htg-line));
  border-radius: 5px;
  margin-top: 5px;
}
.howto-money .htg-check p {
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}
.howto-money .htg-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--htg-line);
  border-radius: 8px;
  background: var(--htg-paper);
  margin: 26px 0;
}
.howto-money .htg-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
}
.howto-money .htg-table--compact { min-width: 480px; }
.howto-money .htg-table th {
  text-align: left;
  background: var(--htg-soft);
  color: var(--htg-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 15px;
  border-bottom: 1px solid var(--htg-line);
}
.howto-money .htg-table td {
  color: var(--htg-body);
  line-height: 1.45;
  vertical-align: top;
  padding: 13px 15px;
  border-bottom: 1px solid var(--htg-line);
}
.howto-money .htg-table tr:last-child td { border-bottom: 0; }
.howto-money .htg-table td:first-child {
  color: var(--htg-ink);
  font-weight: 700;
}
.howto-money .htg-split,
.howto-money .htg-stress {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.howto-money .htg-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.howto-money .htg-split > div,
.howto-money .htg-stress article {
  border: 1px solid var(--htg-line);
  border-radius: 8px;
  background: var(--htg-paper);
  padding: 18px;
}
.howto-money .htg-split p,
.howto-money .htg-stress p {
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}
.howto-money .htg-stress {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.howto-money .htg-stress article span {
  color: var(--htg-blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}
.howto-money .htg-stress h3 {
  font-size: 20px;
  margin: 7px 0 8px;
}
.howto-money .htg-template {
  background: var(--htg-soft);
}
.howto-money p.htg-sources {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--htg-line);
  color: var(--htg-muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}
.howto-money p.htg-sources strong { color: var(--htg-ink); }
/* Guides that emit one <p class="htg-sources"> per reference (#12–14, #18)
   should read as a single list: only the first row carries the 48px gap and
   top separator. */
.howto-money p.htg-sources + p.htg-sources {
  margin-top: 0;
  padding-top: 6px;
  border-top: 0;
}
/* IEEE-style inline citation markers (sup.spine-cite > a → #ref-n anchors).
   The global .article-themed rule colors them with --spine-moss, which is
   undefined in the howto scope — map them onto the howto palette instead. */
.howto-money sup.spine-cite a {
  color: var(--htg-green);
  border-bottom: 0;
}
.howto-money p.htg-sources:target {
  background: var(--htg-soft);
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 760px) {
  .howto-money .htg-checkgrid,
  .howto-money .htg-split,
  .howto-money .htg-stress {
    grid-template-columns: 1fr;
  }
  .howto-money .htg-body p,
  .howto-money .htg-body ul,
  .howto-money .htg-body ol {
    font-size: 18px;
  }
  .howto-money .htg-lead {
    font-size: 20px !important;
  }
  .howto-money .htg-note,
  .howto-money .htg-method,
  .howto-money .htg-action,
  .howto-money .htg-protocol,
  .howto-money .htg-template {
    padding: 16px;
  }
}

.howto-career {
  --htg-bg: #f6fbff;
  --htg-bg-soft: #eef6fd;
  --htg-ink: #182439;
  --htg-muted: #617087;
  --htg-line: #cad9e8;
  --htg-green: #2f6f91;
  --htg-green-soft: #e9f5fb;
  --htg-gold: #9a6a16;
  --htg-gold-soft: #fff6df;
  --htg-red: #a64c3a;
  --htg-red-soft: #fff0ed;
}
