/*
 * The news service's pages (Bold Stack): the listing's cards, and an article's body. Loaded after
 * css/bold-stack.css, css/guide-page.css and css/plain-page.css. Class prefix nw-. news-service/lib/render.js
 * writes the cards.
 *
 * .news-body holds the article as written in the support site's editor: often an email layout, with
 * tables and inline styles. Its plain parts get the page's type, and these rules step over the inline
 * styles (hence !important) only where they would break Bold Stack.
 */

/* The listing. */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-top: 36px; }
.nw-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); background: var(--bs-surface); color: var(--bs-white); transition: border-color 0.15s; }
a.nw-card:hover { border-color: var(--bs-teal); text-decoration: none; }
.nw-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.nw-card-excerpt { font-size: 14.5px; font-weight: 500; line-height: 1.5; overflow-wrap: break-word; }
.nw-card-excerpt:empty { display: none; }

/* An article's crumb is its title, on one line. */
.gd-crumbs { flex-wrap: nowrap; }
.gd-crumbs > * { flex: 0 0 auto; }
.gd-crumbs > [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* An article. */
.nw-article { max-width: 720px; }
.nw-final { max-width: 720px; margin-top: 56px; }
.nw-grid ~ .nw-final { max-width: none; }
.news-body { font-size: 17px; font-weight: 400; line-height: 1.65; overflow-wrap: break-word; }
.news-body, .news-body * { font-family: var(--bs-font) !important; }
.news-body p { margin: 0 0 1em; }
.news-body h2 { margin: 1.5em 0 0.5em; font-size: clamp(24px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.news-body h3 { margin: 1.4em 0 0.5em; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.news-body h4, .news-body h5, .news-body h6 { margin: 1.2em 0 0.4em; font-size: 17px; font-weight: 700; line-height: 1.3; }
.news-body > :first-child { margin-top: 0; }
.news-body ul, .news-body ol { margin: 0 0 1em; padding-left: 22px; }
.news-body ul { list-style: disc; }
.news-body ol { list-style: decimal; }
.news-body li { margin-bottom: 0.4em; }
.news-body strong, .news-body b { font-weight: 700; }
.news-body em, .news-body i { font-style: italic; }
.news-body blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 2px solid var(--bs-teal); }
.news-body hr { margin: 1.6em 0; border: 0; border-top: 1px solid var(--bs-hairline); }
.news-body a { color: var(--bs-teal); text-decoration: underline; text-underline-offset: 3px; }
.news-body img { display: inline-block; max-width: 100%; height: auto; border-radius: 12px; }
.news-body table { max-width: 100%; border-collapse: collapse; }
.news-body td, .news-body th { vertical-align: top; }

/* A newsletter's fixed 600px frame becomes the column, and its side padding goes (40px, or 24px written
   with four values, which a card's padding isn't), so the text lines up with the page's heading. */
.news-body table[width="600"], .news-body table[style*="600px"] { width: 100% !important; max-width: 100% !important; }
.news-body td[style*="padding"][style*=" 40px"],
.news-body td[style*="padding"]:is([style*=" 24px 0 24px"], [style*=" 24px 8px 24px"], [style*=" 24px 12px 24px"], [style*=" 24px 16px 24px"], [style*=" 24px 24px 24px"], [style*=" 24px 32px 24px"], [style*=" 24px 40px 24px"]) { padding-left: 0 !important; padding-right: 0 !important; }

/* A newsletter's colours. A warm off-white and greys too faint on this page go white. There's no red
   anywhere (27 Oct 2026), which a few older articles use for figures and chart bars, and no gold or
   orange accents, which go teal, as does a green. The darkest frames take the page's own colour. */
.news-body [style*="#e8e4df" i], .news-body [style*="#5a5752" i], .news-body [style*="#8a8680" i], .news-body [style*="#888888" i], .news-body [style*="#3a3a3a" i],
.news-body [style*="#ff6b6b" i], .news-body [style*="#e85454" i], .news-body [style*="#e9605b" i] { color: var(--bs-white) !important; }
.news-body [style*="solid #e9605b" i] { border-color: var(--bs-white) !important; }
.news-body [style*="#b03838" i] { background-color: var(--bs-white) !important; }
.news-body [style*="#f7931a" i], .news-body [style*="#4ade80" i] { color: var(--bs-teal) !important; }
.news-body [style*="solid #f7931a" i], .news-body [style*="solid #3d2a10" i] { border-color: var(--bs-teal) !important; }
.news-body [style*="background-color:#f7931a" i], .news-body [style*="background:#f7931a" i] { color: var(--bs-slate) !important; background-color: var(--bs-teal) !important; }
.news-body [style*="#0d0d0f" i] { background-color: transparent !important; }

@media (max-width: 860px) {
  .news-body { font-size: 16px; }
  .nw-grid { margin-top: 28px; }
  .nw-final { margin-top: 44px; }
}

/* On a phone, a newsletter's row of three stat cards becomes a stack, and nothing wider than the screen
   moves the page. On the narrowest phones, a long word can break so a table still fits. */
@media (max-width: 560px) {
  .news-body { overflow-x: auto; }
  .news-body td[width="32%"], .news-body td[width="33%"], .news-body td[width="34%"] { display: block; width: 100% !important; box-sizing: border-box; margin-bottom: 8px; }
  .news-body td[width="2%"] { display: none; }
  .news-body td:is([style*="padding:24px;"], [style$="padding:24px"]) { padding: 16px !important; }
}
@media (max-width: 360px) {
  .news-body { overflow-wrap: anywhere; }
}
