/*
 * Blueprint To Progress — Business Strategy Article
 * Page-specific component layer.
 *
 * Load order:
 * 1) Global BTP stylesheet
 * 2) This page-specific stylesheet
 *
 * The standard article dimensions and typography below intentionally
 * mirror the BTP Article Page Standard; they are not alternate values.
 */

:root {
  --btp-article-max-width: 1180px;
  --btp-article-mobile-gutter: 16px;
  --btp-article-tablet-gutter: 46px;
  --btp-biz-blue: #2563eb;
  --btp-biz-light-blue: #eaf3ff;
  --btp-biz-border: #d7dce2;
  --btp-biz-heading: #111827;
  --btp-biz-text: #334155;
  --btp-biz-surface: #ffffff;
  --btp-biz-muted: #64748b;
}

/* BTP article container — exact standard dimensions */
.btp-article .article-container {
  width: 100%;
  max-width: var(--btp-article-max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .btp-article .article-container {
    width: calc(100% - 92px);
    max-width: var(--btp-article-max-width);
  }
}

@media (max-width: 767px) {
  .btp-article .article-container {
    width: calc(100% - 32px);
  }
}

/* Standard article typography — locked to the BTP Article Page Standard */
.btp-article.article {
  font-family: var(--btp-body-font, inherit);
  color: var(--btp-biz-text);
}

.btp-article.article h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 28px;
  color: var(--btp-biz-heading);
}

.btp-article.article h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin: 56px 0 12px;
  color: var(--btp-biz-heading);
}

.btp-article.article h3 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 32px 0 4px;
  color: var(--btp-biz-heading);
}

.btp-article.article p,
.btp-article.article li {
  font-size: 18px;
  line-height: 1.55;
}

.btp-article.article p {
  margin: 0 0 24px;
}

.btp-article.article li {
  margin-bottom: 4px;
}

.btp-article.article ul,
.btp-article.article ol {
  padding-left: 32px;
  margin: 0 0 24px;
}

.btp-article.article strong {
  font-weight: 700;
}

.btp-article.article a {
  text-decoration: none;
}

.btp-article.article a:hover {
  text-decoration: underline;
}

/* Requested category treatment: ~40px breathing space above the pill */
.btp-article .article-category {
  display: inline-block;
  margin-top: 40px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--btp-biz-light-blue);
  color: var(--btp-biz-blue);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

/* Lead */
.btp-article.article .lead {
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 30px;
}

/* Article figures */
.btp-article .article-figure {
  width: 100%;
  margin: 0 0 30px;
}

.btp-article .article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.btp-article .article-figure figcaption {
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  margin-top: 10px;
  color: var(--btp-biz-muted);
}

/* In This Guide */
.btp-article .article-toc {
  padding: 24px 28px;
  margin: 0 0 10px;
  border: 1px solid var(--btp-biz-border);
  border-radius: 14px;
  background: var(--btp-biz-surface);
  box-sizing: border-box;
}

/* Component isolation: keep the TOC heading independent from the article H2 spacing/type scale.
   The higher-specificity selector prevents responsive article-H2 rules from leaking into this component. */
.btp-article.article .article-toc h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
}

.btp-article .article-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 4px;
}

.btp-article .article-toc-list a {
  font-size: 17px;
  line-height: 1.6;
  color: var(--btp-biz-blue);
}

/* Comparison table */
.btp-article .table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 28px 0 30px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 8px;
  scrollbar-width: thin;
}

.btp-article .btp-comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

.btp-article .btp-comparison-table th {
  padding: 13px 16px;
  background: var(--btp-biz-blue);
  color: #fff;
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.btp-article .btp-comparison-table td {
  padding: 14px 16px;
  border: 1px solid #dfe5ec;
  color: var(--btp-biz-text);
  font-size: 17px;
  line-height: 1.5;
  vertical-align: top;
}

.btp-article .btp-comparison-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

/* Six-question framework */
.btp-article .strategy-question-framework {
  margin: 28px 0 30px;
  padding: 22px;
  border: 1px solid var(--btp-biz-border);
  border-radius: 14px;
  background: #fff;
}

.btp-article .strategy-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.btp-article .strategy-question-grid > div {
  min-height: 126px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
  box-sizing: border-box;
}

.btp-article .strategy-question-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--btp-biz-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.btp-article .strategy-question-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--btp-biz-heading);
  font-size: 17px;
  line-height: 1.3;
}

.btp-article .strategy-question-grid small {
  display: block;
  color: var(--btp-biz-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Execution mini-framework */
.btp-article .mini-framework {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--btp-biz-blue);
  border-radius: 10px;
  background: var(--btp-biz-light-blue);
}

.btp-article .mini-framework span {
  flex: 0 0 auto;
  color: var(--btp-biz-blue);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.btp-article .mini-framework strong {
  color: var(--btp-biz-heading);
  font-size: 18px;
  line-height: 1.45;
}

/* Horizontal internal linking */
.btp-article .horizontal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.btp-article .horizontal-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: var(--btp-biz-blue);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

/* CTA */
.btp-article .cta-section {
  margin: 56px 0 20px;
  padding: 30px 32px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: var(--btp-biz-light-blue);
  text-align: center;
}

/* Component isolation: prevent responsive article-H2 top margins from creating excess space inside the CTA. */
.btp-article.article .cta-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.btp-article .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--btp-biz-blue);
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.btp-article .cta-button:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .btp-article.article h1 {
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.8px;
  }

  .btp-article.article h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 48px;
    margin-bottom: 10px;
  }

  .btp-article.article h3 {
    font-size: 27px;
    margin-top: 28px;
  }

  .btp-article.article p,
  .btp-article.article li {
    font-size: 17px;
    line-height: 1.6;
  }

  .btp-article .strategy-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .btp-article.article h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.7px;
  }

  .btp-article.article h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin-top: 44px;
    margin-bottom: 10px;
  }

  .btp-article.article h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-top: 28px;
  }

  .btp-article.article p,
  .btp-article.article li {
    font-size: 17px;
    line-height: 1.6;
  }

  .btp-article.article .lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .btp-article.article ul,
  .btp-article.article ol {
    padding-left: 28px;
  }

  .btp-article .article-toc {
    padding: 24px 20px;
  }

  .btp-article .article-toc-list {
    grid-template-columns: 1fr;
  }

  .btp-article .article-toc-list a {
    font-size: 16px;
  }

  .btp-article .strategy-question-framework {
    padding: 16px;
  }

  .btp-article .strategy-question-grid {
    grid-template-columns: 1fr;
  }

  .btp-article .strategy-question-grid > div {
    min-height: 0;
  }

  .btp-article .mini-framework {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .btp-article .mini-framework strong {
    font-size: 17px;
  }

  /* Preserve the resource-pill treatment on mobile while allowing natural wrapping. */
  .btp-article.article .horizontal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btp-article.article .horizontal-links a {
    width: auto;
    box-sizing: border-box;
  }

  .btp-article .cta-section {
    padding: 26px 20px;
  }
}

/* Accessibility */
.btp-article .table-scroll:focus-visible,
.btp-article a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}
