/* ===========================================================================
   Konnect Dots :: blog (list at /blog, article at /blog/<slug>)

   Everything is scoped under .blog-page, so nothing here can reach the header, footer or any other page.
   Brand colours: blue #1E5BAA, orange #F28C28 (the same as the rest of the site).
   =========================================================================== */

.blog-page {
	--blog-ink: #1f2937;
	--blog-soft: #4b5563;
	--blog-line: #e5e7eb;
	--blog-blue: #1E5BAA;
	--blog-orange: #F28C28;
	background: #fff;
	color: var(--blog-ink);
	padding: 30px 16px 70px;
	font-size: 17px;
	line-height: 1.75;
}

.blog-wrap { max-width: 1120px; margin: 0 auto; }
.blog-page *, .blog-page *::before, .blog-page *::after { box-sizing: border-box; }

/* ---- breadcrumb ---- */
.blog-crumbs { font-size: 13.5px; color: #6b7280; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.4; }
.blog-crumbs a { color: var(--blog-blue); text-decoration: none; }
.blog-crumbs a:hover { text-decoration: underline; }
.blog-crumbs span[aria-hidden] { color: #9ca3af; }

/* ===================== LIST ===================== */

.blog-head { margin: 0 0 30px; max-width: 720px; }
.blog-head__title { margin: 0 0 10px; font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.blog-head__sub { margin: 0; font-size: 18px; color: var(--blog-soft); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--blog-line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .12); transform: translateY(-3px); }
.blog-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #f3f4f6; }
.blog-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__cat { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blog-orange); }
.blog-card__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; color: #0f172a; }
.blog-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--blog-soft); }
.blog-card__meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: #6b7280; }

/* ===================== ARTICLE ===================== */

.blog-article-head { max-width: 860px; margin: 0 auto 26px; text-align: left; }
.blog-chip { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #fff4e5; color: #b35f00; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.blog-title { margin: 0 0 14px; font-size: 40px; line-height: 1.16; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.blog-meta { margin: 0; font-size: 14.5px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.blog-hero { max-width: 980px; margin: 0 auto 36px; }
.blog-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 18px; background: #f3f4f6; }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 54px; max-width: 1060px; margin: 0 auto; align-items: start; }
.blog-body { min-width: 0; }

/* the text */
.blog-body > p, .blog-body li { font-size: 17.5px; }
.blog-body > p { margin: 0 0 20px; }
.blog-body .blog-lead { font-size: 19.5px; line-height: 1.7; color: #111827; }
.blog-body h2 { margin: 46px 0 14px; font-size: 29px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #0f172a; scroll-margin-top: 90px; }
.blog-body h3 { margin: 28px 0 8px; font-size: 20px; line-height: 1.35; font-weight: 800; color: #111827; }
.blog-body a { color: var(--blog-blue); text-decoration: underline; text-underline-offset: 3px; }
.blog-body ul, .blog-body ol { margin: 0 0 22px; padding-left: 24px; }
.blog-body li { margin: 0 0 8px; padding-left: 4px; }
.blog-body strong { color: #111827; }

/* a picture with its caption */
.blog-fig { margin: 8px 0 28px; }
.blog-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 14px; background: #f3f4f6; }
.blog-fig figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: #6b7280; text-align: center; }

/* "Quick answer" at the top of a post */
.blog-quick { margin: 0 0 30px; padding: 20px 24px; border-radius: 14px; background: #eef5ff; border: 1px solid #d3e4fb; }
.blog-quick__title { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blog-blue); }
.blog-quick ul { margin: 0; padding-left: 20px; }
.blog-quick li { margin: 0 0 6px; font-size: 16.5px; }
.blog-quick li:last-child { margin-bottom: 0; }

/* "What you'll need" / "Budget tip" / "Common mistake" */
.blog-need { margin: 0 0 22px; padding: 16px 20px; border-radius: 12px; background: #f8fafc; border-left: 4px solid var(--blog-blue); }
.blog-need h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--blog-blue); }
.blog-need p, .blog-need ul { margin: 0; }
.blog-tip, .blog-mistake { margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; font-size: 16.5px; line-height: 1.65; }
.blog-tip { background: #effaf2; border-left: 4px solid #2f9e5b; }
.blog-mistake { background: #fff3f1; border-left: 4px solid #d6483a; }
.blog-tip strong, .blog-mistake strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.blog-tip strong { color: #1d7a43; }
.blog-mistake strong { color: #b3392d; }

/* a game / idea number */
.blog-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-right: 10px; border-radius: 50%; background: var(--blog-orange); color: #fff; font-size: 18px; font-weight: 800; vertical-align: 2px; }

/* pros and cons, do and don't: two columns */
.blog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 26px; }
.blog-two > div { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--blog-line); }
.blog-two h3 { margin: 0 0 10px; font-size: 18px; }
.blog-two ul { margin: 0; padding-left: 20px; }
.blog-two li { font-size: 16px; margin-bottom: 7px; }
.blog-two .is-do, .blog-two .is-pro { background: #f3fbf5; border-color: #cfeadb; }
.blog-two .is-dont, .blog-two .is-con { background: #fff6f4; border-color: #f4d3cd; }
.blog-two .is-do h3, .blog-two .is-pro h3 { color: #1d7a43; }
.blog-two .is-dont h3, .blog-two .is-con h3 { color: #b3392d; }

/* a small comparison table */
.blog-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 16px; line-height: 1.5; }
.blog-table th, .blog-table td { padding: 12px 14px; border: 1px solid var(--blog-line); text-align: left; vertical-align: top; }
.blog-table th { background: #f3f4f6; font-weight: 800; color: #111827; }
.blog-table td:first-child { font-weight: 700; color: #111827; background: #fafafa; white-space: nowrap; }

/* a timeline as a list */
.blog-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: bs; }
.blog-steps li { position: relative; margin: 0 0 12px; padding: 12px 16px 12px 58px; border: 1px solid var(--blog-line); border-radius: 12px; counter-increment: bs; font-size: 16.5px; line-height: 1.55; }
.blog-steps li::before { content: counter(bs); position: absolute; left: 14px; top: 11px; width: 30px; height: 30px; border-radius: 50%; background: var(--blog-blue); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.blog-steps strong { color: var(--blog-blue); }

/* the end of the post: call to action */
.blog-cta { margin: 44px 0 10px; padding: 30px 30px; border-radius: 18px; background: linear-gradient(135deg, #1E5BAA, #2f7bd6); color: #fff; }
.blog-cta h2 { margin: 0 0 8px; font-size: 25px; color: #fff; scroll-margin-top: 90px; }
.blog-cta p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.6; color: #e8f1fd; }
.blog-cta a { display: inline-block; padding: 12px 24px; border-radius: 999px; background: #F2C230; color: #1a1a1a; font-weight: 800; text-decoration: none; }
.blog-cta a:hover { background: #ffd24d; }

.blog-note { margin: 22px 0 0; font-size: 13.5px; color: #6b7280; line-height: 1.5; }

/* sidebar */
.blog-side { position: sticky; top: 90px; font-size: 15px; line-height: 1.5; }
.blog-toc { padding: 18px 20px; border: 1px solid var(--blog-line); border-radius: 14px; background: #fafafa; }
.blog-toc__title { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6b7280; }
.blog-toc ol { margin: 0; padding: 0; list-style: none; }
.blog-toc li { margin: 0; }
.blog-toc a { display: block; padding: 6px 0; color: #374151; text-decoration: none; border-bottom: 1px solid #eef0f3; }
.blog-toc li:last-child a { border-bottom: 0; }
.blog-toc a:hover { color: var(--blog-blue); }
.blog-share { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-share a, .blog-share button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--blog-line); background: #fff; color: #374151; font: 600 13.5px/1 inherit; cursor: pointer; text-decoration: none; }
.blog-share a:hover, .blog-share button:hover { border-color: var(--blog-blue); color: var(--blog-blue); }

/* more to read */
.blog-more { max-width: 1060px; margin: 64px auto 0; padding-top: 34px; border-top: 1px solid var(--blog-line); }
.blog-more__title { margin: 0 0 20px; font-size: 24px; font-weight: 800; color: #0f172a; }
.blog-more .blog-grid { grid-template-columns: repeat(2, 1fr); }

/* ===================== SMALL SCREENS ===================== */
@media (max-width: 991px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
	.blog-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.blog-side { position: static; order: -1; margin-bottom: 26px; }
	.blog-title { font-size: 34px; }
}

@media (max-width: 640px) {
	.blog-page { padding-top: 22px; font-size: 16.5px; }
	.blog-grid, .blog-more .blog-grid { grid-template-columns: 1fr; }
	.blog-head__title { font-size: 31px; }
	.blog-title { font-size: 28px; }
	.blog-hero img, .blog-fig img { border-radius: 12px; }
	.blog-body > p, .blog-body li { font-size: 16.5px; }
	.blog-body .blog-lead { font-size: 18px; }
	.blog-body h2 { font-size: 24px; margin-top: 38px; }
	.blog-num { width: 32px; height: 32px; font-size: 16px; }
	.blog-two { grid-template-columns: 1fr; }
	.blog-cta { padding: 24px 20px; }
	.blog-table { font-size: 14.5px; }
	.blog-table th, .blog-table td { padding: 9px 10px; }
	.blog-table td:first-child { white-space: normal; }
	.blog-steps li { padding-left: 54px; }
}

@media print {
	.blog-side, .blog-share, .blog-cta, .blog-more { display: none !important; }
	.blog-layout { display: block; }
}
