/**
 * The Money Game - Single Article Webflow Stylesheet
 * Scoped strictly to .tmg-article to prevent any leakage to other templates.
 */

/* Container and Section Resets for Single Story */
.tmg-article {
  display: block;
  width: 100%;
}

.tmg-article .container-default {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.tmg-article .inner-container {
  width: 100%;
}

/* Hero Section */
.tmg-article .section.hero.v16 {
  padding-top: clamp(28px, 4.5vw, 64px);
  padding-bottom: 0;
}

.tmg-article .blog-hero-column-left {
  max-width: 980px;
}

.tmg-article .mg-bottom-24px {
  margin-bottom: 24px;
}

.tmg-article .blog---tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.tmg-article .badge-secondary.small.light {
  border: 1px solid var(--cat-color, var(--accent));
  color: var(--cat-color, var(--accent));
  background-color: transparent;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
  padding: 6px 12px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tmg-article .badge-secondary.small.light:hover {
  background-color: var(--cat-color, var(--accent));
  color: #fff;
}

.tmg-article .flex-horizontal {
  display: flex;
  align-items: center;
}

.tmg-article .flex-wrap {
  flex-wrap: wrap;
}

.tmg-article .rows-10px {
  gap: 12px;
}

.tmg-article .text-100 {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.tmg-article .divider-dot {
  background-color: var(--line);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  min-width: 4px;
  min-height: 4px;
}

/* Article Title */
.tmg-article .display-1 {
  color: var(--text);
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 32px;
  max-width: 1040px;
}

/* Full-width Hero Image (Container width) */
.tmg-article .blog-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 580px;
  min-height: 240px;
  background-color: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: clamp(36px, 5vw, 68px);
}

.tmg-article .blog-image img.blog-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two-column section: Body + Sidebar */
.tmg-article .section:not(.hero):not(.related-articles-section) {
  padding-top: 0;
  padding-bottom: clamp(48px, 6vw, 84px);
}

.tmg-article .blog-post-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.tmg-article .blog-post-v2-col-left {
  min-width: 0;
  max-width: 760px;
}

.tmg-article .blog-post-v2-col-left .rich-text {
  font-size: 17px;
  line-height: 1.75;
}

.tmg-article .blog-post-v2-col-left .rich-text p {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text);
}

.tmg-article .blog-post-v2-col-left .rich-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 40px;
  margin-bottom: 18px;
  color: var(--text);
}

.tmg-article .blog-post-v2-col-left .rich-text h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.tmg-article .blog-post-v2-col-left .rich-text ul,
.tmg-article .blog-post-v2-col-left .rich-text ol {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 28px;
  color: var(--text);
}

.tmg-article .blog-post-v2-col-left .rich-text li {
  margin-bottom: 8px;
}

.tmg-article .blog-post-v2-col-left .rich-text blockquote {
  border-left: 3px solid var(--ink);
  margin: 32px 0;
  padding: 8px 0 8px 24px;
  font-style: italic;
  color: var(--muted);
}

/* Sidebar */
.tmg-article .blog-post-v2-col-right {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 36px);
  width: 100%;
}

.tmg-article .sidebar-sticky-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

/* Share This Article */
.tmg-article .share-this-article h3.display-4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: var(--text);
}

.tmg-article .social-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tmg-article .social-icon-square {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0;
}

.tmg-article .social-icon-square:hover {
  background-color: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tmg-article .social-icon-square svg {
  display: block;
}

/* Divider */
.tmg-article .divider {
  height: 1px;
  background-color: var(--line);
  border: none;
  margin: 32px 0;
  width: 100%;
}

/* Subscribe Card (Sidebar) */
.tmg-article .subscribe-card h3.display-4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px 0;
  color: var(--text);
}

.tmg-article .input-button-to-bottom-form-block {
  width: 100%;
}

.tmg-article .input-button-to-bottom-form-block .inline-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.tmg-article .input-button-to-bottom-form-block input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.tmg-article .input-button-to-bottom-form-block input[type="email"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.tmg-article .input-button-to-bottom-form-block button[type="submit"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  background-color: var(--ink);
  color: #fffdf8;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.tmg-article .input-button-to-bottom-form-block button[type="submit"]:hover {
  opacity: 0.88;
}

.tmg-article .input-button-to-bottom-form-block .form-note {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--accent);
}

.tmg-article .input-button-to-bottom-form-block .form-note.error {
  color: #a02f2f;
}

/* Related Articles Band (.bg-neutral-200) */
.tmg-article .related-articles-section.bg-neutral-200 {
  background-color: #f2f0e5;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 88px);
  margin-top: clamp(32px, 5vw, 64px);
  width: 100%;
}

.tmg-article .title-and-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.tmg-article .heading-h2-size {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.tmg-article .buttons-row .button.secondary,
.tmg-article .buttons-row .btn-secondary {
  border: 1px solid var(--ink);
  background-color: transparent;
  color: var(--ink);
  border-radius: 3px;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tmg-article .buttons-row .button.secondary:hover,
.tmg-article .buttons-row .btn-secondary:hover {
  background-color: var(--ink);
  color: #fffdf8;
}

/* 3-Column Related Cards Grid */
.tmg-article .grid-3-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.tmg-article .article-v1-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tmg-article .article-link.article-v1 {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tmg-article .blog-card-image-wrapper.article-v1-image {
  background-color: var(--panel);
  border-radius: 3px;
  aspect-ratio: 1.35;
  width: 100%;
  overflow: hidden;
  display: block;
}

.tmg-article .blog-card-image-wrapper.article-v1-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tmg-article .article-link.article-v1:hover .blog-card-image-wrapper.article-v1-image img {
  transform: scale(1.03);
}

.tmg-article .article-v1-content {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tmg-article .details-wrapper._10px {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tmg-article .related-card-category {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tmg-article .meta-reading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.tmg-article .clock-icon {
  display: inline-block;
  vertical-align: middle;
  stroke: var(--muted);
}

.tmg-article .article-title.display-4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.tmg-article .article-link.article-v1:hover .article-title.display-4 {
  color: var(--accent);
}

/* Tablet & Mobile Breakpoints */
@media screen and (max-width: 991px) {
  .tmg-article .blog-post-v2-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tmg-article .blog-post-v2-col-left {
    max-width: 100%;
  }

  .tmg-article .blog-post-v2-col-right {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 48px;
    width: 100%;
    max-width: 100%;
  }

  .tmg-article .sidebar-sticky-wrap {
    position: static;
  }

  .tmg-article .grid-3-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media screen and (max-width: 767px) {
  .tmg-article .title-and-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tmg-article .buttons-row {
    width: 100%;
  }

  .tmg-article .buttons-row .button.secondary,
  .tmg-article .buttons-row .btn-secondary {
    width: 100%;
  }

  .tmg-article .blog-image {
    aspect-ratio: 16 / 10;
    margin-bottom: 32px;
  }
}
