/* Guides and the blog: readable long-form pages in the site's paper-and-felt look. Mobile first.
   Every image has its size set, so nothing shifts as tiles load; tiles below the fold load lazily. */

.article,
.articles-head,
.articles-list,
.article-crumbs,
.article-related,
.articles-pages,
.articles-feed,
.articles-empty {
  width: 100%;
  max-width: 760px;
}

.article-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-crumbs a {
  color: var(--green-dark);
  font-weight: 600;
}

.article {
  color: #24302a;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article-head {
  margin-bottom: 8px;
}

.article-eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font: 700 0.8rem / 1 "Google Sans Flex", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article h1 {
  margin: 0;
  font: 850 clamp(2rem, 5vw, 3rem) / 1.08 "Google Sans Flex", sans-serif;
  letter-spacing: -0.035em;
}

.article-dek {
  margin: 14px 0 0;
  color: #3d4b45;
  font-size: 1.2rem;
  line-height: 1.5;
}

.article-byline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body h2 {
  margin: 2.2em 0 0.4em;
  font: 800 clamp(1.45rem, 3vw, 1.85rem) / 1.2 "Google Sans Flex", sans-serif;
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}

.article-body h3 {
  margin: 1.6em 0 0.3em;
  font: 750 1.2rem / 1.3 "Google Sans Flex", sans-serif;
  scroll-margin-top: 80px;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3em;
}

.article-body li + li {
  margin-top: 0.35em;
}

.article-body a:not(.cta):not(.article-embed),
.article-faq a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-cta-row .cta {
  display: inline-flex;
  width: auto;
  min-height: 56px;
  padding: 12px 26px;
  font-weight: 800;
}

.article-callout {
  margin: 1.4em 0;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: #f1ece0;
}

.article-callout p {
  margin: 0;
}

.article-callout-note {
  border-left-color: #b8871b;
}

.article-callout-label {
  margin-right: 6px;
  color: var(--green-dark);
  font: 800 0.8rem / 1 "Google Sans Flex", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-tiles,
.article-hand {
  margin: 1.5em 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #2a5a43, #1d4f37);
  color: #f3f0e8;
}

.article-tiles figcaption,
.article-hand figcaption {
  margin-top: 10px;
  color: #d6e2d8;
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.article-tile-row img {
  display: block;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  aspect-ratio: 256 / 352;
}

.article-hand-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.article-hand-group {
  display: grid;
  gap: 6px;
}

.article-hand-label {
  color: #d6e2d8;
  font-size: 0.82rem;
}

.article-hand-equation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 14px 0 6px;
  font: 850 1.35rem / 1.2 "Google Sans Flex", sans-serif;
}

/* The app's score colors: Chips blue, Mult red, the Score gold. */
.article-chips {
  color: #8cc4ff;
}

.article-mult {
  color: #ff8f7a;
}

.article-score {
  color: #f2c94c;
}

.article-body .article-hand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.article-hand-pills li {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.article-embed {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 1.4em 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}

.article-embed img {
  flex: none;
  width: 160px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  background: #102f27;
}

.article-embed-play {
  display: grid;
  flex: none;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  color: #f3f0e8;
  background: var(--green);
  font-weight: 800;
}

.article-embed > span:last-child {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

.article-embed small {
  color: var(--green);
  font: 700 0.75rem / 1 "Google Sans Flex", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-embed strong {
  font: 750 1.05rem / 1.3 "Google Sans Flex", sans-serif;
}

.article-embed span span {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-cta-row {
  margin: 1.6em 0;
}

.article-faq {
  margin-top: 2.4em;
}

.article-faq h2 {
  margin: 0 0 0.6em;
  font: 800 clamp(1.45rem, 3vw, 1.85rem) / 1.2 "Google Sans Flex", sans-serif;
}

.article-faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.article-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.article-faq details p {
  margin: 8px 0 0;
}

.article-play {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.4em;
  padding: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #2a4936, #1e3328);
}

.article-play h2 {
  margin: 0;
  font: 800 1.35rem / 1.2 "Google Sans Flex", sans-serif;
}

.article-play p {
  margin: 4px 0 0;
  color: #bec8c0;
}

.article-related h2 {
  margin: 0 0 12px;
  font: 800 1.3rem / 1.2 "Google Sans Flex", sans-serif;
}

.article-related ul,
.articles-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-related a,
.articles-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}

.article-related a:hover,
.articles-card:hover,
.article-related a:focus-visible,
.articles-card:focus-visible {
  border-color: rgba(27, 39, 34, 0.32);
}

.article-related small,
.articles-card small {
  color: var(--green);
  font: 700 0.75rem / 1 "Google Sans Flex", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.articles-card h2 {
  margin: 4px 0 0;
  font: 800 1.3rem / 1.25 "Google Sans Flex", sans-serif;
}

.article-related strong {
  font: 750 1.05rem / 1.3 "Google Sans Flex", sans-serif;
}

.article-related span,
.articles-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.articles-more {
  color: var(--green-dark);
  font-weight: 700;
}

.articles-pages {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.articles-pages a,
.articles-feed a,
.articles-empty a {
  color: var(--green-dark);
  font-weight: 700;
}

.articles-feed,
.articles-empty {
  color: var(--muted);
}

@media (max-width: 560px) {
  .article {
    font-size: 1rem;
  }

  .article-tiles,
  .article-hand {
    margin-inline: -4px;
    padding: 12px;
  }

  .article-tile-row img {
    width: 34px;
  }

  .article-embed img {
    width: 112px;
    height: 63px;
  }
}
