/* The Customer Success Manager blog: warm editorial ledger. Mirrors thecustomersuccessmanager.com. */

:root {
	--tcsm-paper: #fbf8f3;
	--tcsm-card: #fffdf9;
	--tcsm-raised: #ffffff;
	--tcsm-sand: #f3ede4;
	--tcsm-line: #e8dfd2;
	--tcsm-line-strong: #dcd1c1;
	--tcsm-ink: #2a1f3d;
	--tcsm-ink-soft: #4a3f57;
	--tcsm-muted: #6b5f78;
	--tcsm-plum: #5b3fa8;
	--tcsm-plum-deep: #4e3596;
	--tcsm-plum-soft: #efeaf8;
	--tcsm-plum-line: #d9cfe9;
	--tcsm-ok: #15703f;
	--tcsm-warn: #9a5b0b;
	--tcsm-crit: #b4233f;
	--tcsm-radius: 16px;
	--tcsm-display: var(--wp--preset--font-family--display, Fraunces, Georgia, serif);
	--tcsm-body: var(--wp--preset--font-family--body, 'Instrument Sans', system-ui, sans-serif);
}

html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--tcsm-paper);
	color: var(--tcsm-ink);
	font-family: var(--tcsm-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
::selection { background: var(--tcsm-plum-soft); color: var(--tcsm-ink); }
:focus-visible { outline: 2px solid var(--tcsm-plum); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, .tcsm-display {
	font-family: var(--tcsm-display);
	font-optical-sizing: auto;
	font-variation-settings: "SOFT" 50;
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.tcsm-header-part, .tcsm-footer-part { margin: 0 !important; }
.tcsm-main { margin: 0 !important; }

.tcsm-container { max-width: 1152px; margin-inline: auto !important; padding-inline: 16px; }
@media (min-width: 768px) { .tcsm-container { padding-inline: 24px; } }

.tcsm-i {
	width: 16px; height: 16px; flex-shrink: 0;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.tcsm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: 12px;
	font-family: var(--tcsm-body); font-size: 15px; font-weight: 500; line-height: 1;
	text-decoration: none !important; white-space: nowrap;
	border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.tcsm-btn--sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.tcsm-btn--primary { background: var(--tcsm-plum); color: var(--tcsm-card) !important; }
.tcsm-btn--primary:hover { background: var(--tcsm-plum-deep); }
.tcsm-btn--secondary { background: var(--tcsm-card); color: var(--tcsm-ink) !important; border-color: var(--tcsm-line-strong); }
.tcsm-btn--secondary:hover { background: var(--tcsm-plum-soft); color: var(--tcsm-plum) !important; border-color: var(--tcsm-plum-line); }
.tcsm-btn--ghost { color: var(--tcsm-muted) !important; padding: 0 12px; height: 36px; font-size: 14px; }
.tcsm-btn--ghost:hover { color: var(--tcsm-ink) !important; }

/* Header */
.tcsm-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 248, 243, .88);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--tcsm-line);
}
.admin-bar .tcsm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tcsm-header { top: 0; } }
.tcsm-header__inner {
	max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tcsm-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none !important; color: var(--tcsm-ink) !important; }
.tcsm-mark { flex-shrink: 0; display: block; }
.tcsm-brand__name {
	font-family: var(--tcsm-display); font-variation-settings: "SOFT" 50;
	font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
	overflow: hidden; text-overflow: ellipsis;
}
.tcsm-nav { display: none; align-items: center; gap: 4px; }
.tcsm-nav a, .tcsm-mobile-nav a {
	color: var(--tcsm-muted); font-size: 14px; font-weight: 500; text-decoration: none;
	padding: 8px 12px; border-radius: 10px;
}
.tcsm-nav a:hover { color: var(--tcsm-ink); }
.tcsm-nav a.is-active { color: var(--tcsm-plum); background: var(--tcsm-plum-soft); }
.tcsm-header__actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.tcsm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--tcsm-line);
	background: var(--tcsm-card); color: var(--tcsm-ink); cursor: pointer; padding: 0;
}
.tcsm-icon-btn .tcsm-i { width: 18px; height: 18px; }
.tcsm-menu-btn .tcsm-i--x, .tcsm-menu-btn.is-open .tcsm-i--menu { display: none; }
.tcsm-menu-btn.is-open .tcsm-i--x { display: block; }
.tcsm-mobile-nav {
	display: flex; flex-direction: column; gap: 2px;
	padding: 8px 16px 16px; border-top: 1px solid var(--tcsm-line); background: var(--tcsm-paper);
}
.tcsm-mobile-nav[hidden] { display: none; }
.tcsm-mobile-nav a { font-size: 16px; padding: 10px 12px; }
.tcsm-mobile-nav a.is-active { color: var(--tcsm-plum); background: var(--tcsm-plum-soft); }
.tcsm-mobile-nav__strong { color: var(--tcsm-ink) !important; }
@media (max-width: 479px) {
	.tcsm-hide-xs { display: none; }
	.tcsm-brand__name { font-size: 15px; white-space: normal; line-height: 1.05; max-width: 9.5em; }
}
@media (min-width: 768px) {
	.tcsm-nav { display: flex; }
	.tcsm-menu-btn { display: none; }
	.tcsm-header__inner { padding: 0 24px; }
}

/* Hero / page heads */
.tcsm-hero { border-bottom: 1px solid var(--tcsm-line); padding: 56px 0 48px; margin: 0 !important; }
@media (min-width: 768px) { .tcsm-hero { padding: 88px 0 72px; } }
.tcsm-kicker {
	margin: 0 0 16px !important;
	font-family: var(--tcsm-body); font-size: 12px !important; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; color: var(--tcsm-plum);
}
.tcsm-kicker a { color: inherit; text-decoration: none; }
.tcsm-kicker a:hover { text-decoration: underline; }
.tcsm-hero__title {
	max-width: 15em; margin: 0 !important;
	font-size: clamp(38px, 6vw, 64px) !important; line-height: 1.04 !important; font-weight: 400 !important;
	letter-spacing: -0.02em;
}
.tcsm-hero__lead { max-width: 38em; margin: 20px 0 0 !important; font-size: 18px; line-height: 1.6; color: var(--tcsm-muted); }
.tcsm-404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }

/* Search */
.tcsm-search { margin-top: 28px !important; max-width: 520px; }
.tcsm-search .wp-block-search__inside-wrapper { gap: 8px; border: 0 !important; padding: 0 !important; }
.tcsm-search .wp-block-search__input {
	height: 44px; border: 1px solid var(--tcsm-line-strong) !important; border-radius: 12px;
	background: var(--tcsm-card); padding: 0 14px; font: inherit; font-size: 15px; color: var(--tcsm-ink);
}
.tcsm-search .wp-block-search__button {
	height: 44px; margin: 0; border-radius: 12px; background: var(--tcsm-plum); color: var(--tcsm-card);
	border: 0; padding: 0 18px; font-size: 15px; font-weight: 500;
}

/* Post grid */
.tcsm-section { padding-top: 48px; padding-bottom: 80px; margin: 0 auto !important; }
.tcsm-posts { margin: 0 !important; }
.tcsm-grid.wp-block-post-template {
	display: grid !important; gap: 20px; grid-template-columns: 1fr !important; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 700px) { .tcsm-grid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .tcsm-grid.wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 24px; } }
.tcsm-grid > li { margin: 0 !important; display: flex; }
.tcsm-card {
	display: flex; flex-direction: column; width: 100%; margin: 0 !important;
	background: var(--tcsm-card); border: 1px solid var(--tcsm-line); border-radius: var(--tcsm-radius);
	overflow: hidden; transition: border-color .15s;
}
.tcsm-card:hover { border-color: var(--tcsm-plum-line); }
.tcsm-card__media { margin: 0 !important; border-bottom: 1px solid var(--tcsm-line); }
.tcsm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tcsm-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; margin: 0 !important; }
.tcsm-card__body > * { margin: 0 !important; }
.tcsm-card__date { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tcsm-muted); }
.tcsm-card__title { font-size: 24px !important; line-height: 1.2 !important; font-weight: 400 !important; }
.tcsm-card__title a { text-decoration: none !important; color: var(--tcsm-ink) !important; }
.tcsm-card__title a:hover { color: var(--tcsm-plum) !important; }
.tcsm-card__excerpt { color: var(--tcsm-muted); font-size: 15px; line-height: 1.6; }
.tcsm-card__excerpt p { margin: 0; }
.tcsm-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tcsm-card__more {
	margin-top: auto !important; padding-top: 6px; font-size: 14px; font-weight: 500;
	color: var(--tcsm-plum) !important; text-decoration: none !important;
}
.tcsm-card__more::after { content: " \2192"; }
.tcsm-card__more:hover { text-decoration: underline !important; }
.tcsm-pagination { margin-top: 40px !important; font-size: 15px; }
.tcsm-pagination a { text-decoration: none; }
.tcsm-empty { color: var(--tcsm-muted); }

/* Single article */
.tcsm-article { max-width: 680px; margin: 0 auto !important; padding: 40px 16px 24px; }
@media (min-width: 768px) { .tcsm-article { padding-top: 64px; padding-left: 0; padding-right: 0; } }
.tcsm-article__head { margin: 0 0 32px !important; }
.tcsm-article__head > * { margin-top: 0 !important; }
.tcsm-back {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px;
	font-size: 14px; font-weight: 500; color: var(--tcsm-muted) !important; text-decoration: none !important;
}
.tcsm-back:hover { color: var(--tcsm-plum) !important; }
.tcsm-article__head .tcsm-kicker { margin-bottom: 12px !important; }
.tcsm-article__head .tcsm-kicker a { text-decoration: none; }
.tcsm-article__title {
	margin: 0 !important; font-size: clamp(36px, 5.4vw, 52px) !important; line-height: 1.06 !important;
	font-weight: 400 !important; letter-spacing: -0.02em; overflow-wrap: break-word;
}
.tcsm-meta {
	margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--tcsm-line);
	gap: 6px 18px !important; font-size: 14px; color: var(--tcsm-muted);
}
.tcsm-meta > * { margin: 0 !important; }
.tcsm-meta .wp-block-post-author-name { color: var(--tcsm-ink); font-weight: 500; }
.tcsm-article__media { margin: 0 0 36px !important; }
.tcsm-article__media img { border-radius: var(--tcsm-radius); border: 1px solid var(--tcsm-line); }

.tcsm-prose { font-size: 18px; line-height: 1.75; color: var(--tcsm-ink); overflow-wrap: break-word; }
.tcsm-prose > * { margin-top: 0 !important; margin-bottom: 1.25em !important; max-width: 100%; }
.tcsm-prose h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.2; margin-top: 2em !important; margin-bottom: .6em !important; }
.tcsm-prose h3 { font-size: 23px; line-height: 1.25; margin-top: 1.7em !important; margin-bottom: .5em !important; }
.tcsm-prose h4 { margin-top: 1.5em !important; margin-bottom: .4em !important; }
.tcsm-prose a { color: var(--tcsm-plum); text-decoration: underline; text-decoration-color: var(--tcsm-plum-line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tcsm-prose a:hover { text-decoration-color: var(--tcsm-plum); }
.tcsm-prose strong { font-weight: 600; }
.tcsm-prose ul, .tcsm-prose ol { padding-left: 1.3em; }
.tcsm-prose li { margin-bottom: .4em; }
.tcsm-prose li::marker { color: var(--tcsm-plum); }
.tcsm-prose blockquote, .tcsm-prose .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--tcsm-plum);
	font-family: var(--tcsm-display); font-size: 22px; line-height: 1.5; color: var(--tcsm-ink-soft);
}
.tcsm-prose blockquote cite { display: block; margin-top: 8px; font-family: var(--tcsm-body); font-size: 14px; font-style: normal; color: var(--tcsm-muted); }
.tcsm-prose .wp-block-pullquote { border-top: 1px solid var(--tcsm-line); border-bottom: 1px solid var(--tcsm-line); padding: 1.5em 0; }
.tcsm-prose code { font-size: .88em; background: var(--tcsm-sand); border: 1px solid var(--tcsm-line); border-radius: 6px; padding: .1em .35em; }
.tcsm-prose pre code { background: none; border: 0; padding: 0; }
.tcsm-prose img { border-radius: 12px; height: auto; }
.tcsm-prose figcaption { font-size: 14px; color: var(--tcsm-muted); text-align: center; margin-top: 8px; }
.tcsm-prose hr, .tcsm-prose .wp-block-separator { border: 0; border-top: 1px solid var(--tcsm-line); margin: 2.5em 0 !important; }
.tcsm-prose .wp-block-table, .tcsm-prose table { overflow-x: auto; display: block; }
.tcsm-prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tcsm-prose th, .tcsm-prose td { border: 1px solid var(--tcsm-line); padding: 10px 12px; text-align: left; }
.tcsm-prose thead th { background: var(--tcsm-sand); font-weight: 600; }

.tcsm-tags { margin-top: 32px !important; font-size: 14px; }
.tcsm-tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px;
	border: 1px solid var(--tcsm-line); background: var(--tcsm-card); color: var(--tcsm-ink-soft); text-decoration: none;
}
.tcsm-tags .wp-block-post-terms__separator { display: none; }

.tcsm-postnav {
	max-width: 680px; margin: 8px auto 0 !important; padding: 20px 16px 0; border-top: 1px solid var(--tcsm-line);
	gap: 16px; font-size: 15px;
}
@media (min-width: 768px) { .tcsm-postnav { padding-left: 0; padding-right: 0; } }
.tcsm-postnav a { text-decoration: none; color: var(--tcsm-plum); }
.tcsm-postnav a:hover { text-decoration: underline; }

/* CTA */
.tcsm-cta { max-width: 1152px; margin: 64px auto 80px !important; padding: 0 16px; }
.tcsm-cta__inner {
	padding: 48px 24px; text-align: center; border-radius: 24px;
	border: 1px solid var(--tcsm-line); background-color: var(--tcsm-card);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(232, 223, 210, .45) 31px, rgba(232, 223, 210, .45) 32px);
}
@media (min-width: 768px) { .tcsm-cta__inner { padding: 64px 48px; } }
.tcsm-cta__title { max-width: 16em; margin: 0 auto !important; font-size: clamp(30px, 4vw, 44px) !important; line-height: 1.1 !important; font-weight: 400 !important; }
.tcsm-cta__body { max-width: 34em; margin: 16px auto 0 !important; color: var(--tcsm-muted); font-size: 17px; }
.tcsm-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Footer */
.tcsm-footer { background: rgba(243, 237, 228, .6); border-top: 1px solid var(--tcsm-line); }
.tcsm-footer__grid {
	max-width: 1200px; margin: 0 auto; padding: 48px 16px;
	display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 640px) { .tcsm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; padding: 48px 24px; } }
.tcsm-footer__about p { max-width: 24rem; margin: 16px 0 0; font-size: 14px; line-height: 1.65; color: var(--tcsm-muted); }
.tcsm-footer__label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tcsm-ink); }
.tcsm-footer__links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tcsm-footer__links a { color: var(--tcsm-muted); text-decoration: none; }
.tcsm-footer__links a:hover { color: var(--tcsm-ink); }
.tcsm-footer__bar { border-top: 1px solid var(--tcsm-line); }
.tcsm-footer__bar-inner {
	max-width: 1200px; margin: 0 auto; padding: 20px 16px;
	display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tcsm-muted);
}
@media (min-width: 640px) { .tcsm-footer__bar-inner { flex-direction: row; justify-content: space-between; padding: 20px 24px; } }

/* No comments UI */
.wp-block-comments, .wp-block-post-comments-form, .comment-respond { display: none !important; }

/* One shared measure for header, content and footer */
.tcsm-header__inner, .tcsm-container, .tcsm-footer__grid, .tcsm-footer__bar-inner {
	box-sizing: border-box; max-width: 1200px !important; margin-inline: auto !important;
	padding-left: 16px !important; padding-right: 16px !important;
}
@media (min-width: 768px) {
	.tcsm-header__inner, .tcsm-container, .tcsm-footer__grid, .tcsm-footer__bar-inner {
		padding-left: 24px !important; padding-right: 24px !important;
	}
}
