/* 3way blog. Design system of the landing (3way.social): cool light base, deep ink,
   violet action colour, violet-to-pink gradient for one phrase per headline. */

/* Fonts: latin subsets from Google Fonts, served from the theme (OFL) */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-italic.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/sora.woff2) format("woff2"); }

:root {
	--bg: #f6f6fb;
	--surface: #ececf5;
	--card: #ffffff;
	--ink: #12101f;
	--muted: #625f73;
	--border: #dfdeea;
	--brand: #6d4aff;
	--brand-hover: #5d3cf0;
	--brand-2: #e255c8;
	--brand-soft: #f1edff;
	--gradient: linear-gradient(100deg, #6d4aff 0%, #e255c8 100%);
	--gradient-fill: linear-gradient(135deg, #5a36f0 0%, #8a3fe6 50%, #c13aa6 100%);
	--shadow-card: 0 1px 2px rgba(18, 16, 31, 0.04), 0 16px 40px -24px rgba(18, 16, 31, 0.18);
	--shadow-elevated: 0 2px 6px rgba(18, 16, 31, 0.05), 0 30px 60px -30px rgba(18, 16, 31, 0.3);
	--shadow-glow: 0 10px 30px -12px rgba(109, 74, 255, 0.45);
	--radius: 14px;
	--radius-lg: 24px;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: Sora, "DM Sans", system-ui, sans-serif;
	--container: 1240px;
	--header-space: 104px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.025em; color: var(--ink); margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(109, 74, 255, 0.2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.tw-icon { flex-shrink: 0; display: block; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tw-skip:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100; top: 12px; left: 12px;
	padding: 10px 16px; background: var(--card); border-radius: 10px; box-shadow: var(--shadow-card);
}
.tw-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .tw-container { padding: 0 16px; } }
.tw-main { padding-top: var(--header-space); min-height: 60vh; }
.tw-gradient-text {
	background: var(--gradient);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons, chips ---------- */
.tw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
	font: 600 15px/1 var(--font-body); white-space: nowrap;
	transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.tw-btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-glow); }
.tw-btn--primary:hover { background: var(--brand-hover); }
.tw-btn--dark { background: var(--ink); color: #fff; }
.tw-btn--dark:hover { background: #2a2740; }
.tw-btn--ghost { background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); font-weight: 500; }
.tw-btn--light { background: #fff; color: var(--ink); }
.tw-btn--light:hover { background: var(--brand-soft); }
.tw-btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); font-weight: 500; }
.tw-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.tw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-chip {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
	background: var(--brand-soft); color: #5a36f0; font-size: 13px; font-weight: 600;
	transition: background-color .2s;
}
.tw-chip:hover { background: #e4dcff; }

.tw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--muted); font-size: 14px; }
.tw-meta > * + *::before { content: "·"; margin: 0 8px; color: #b3b0c2; }
.tw-meta--lg { font-size: 15px; }

.tw-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 14px; font-weight: 600; }
.tw-eyebrow__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.tw-eyebrow__dot::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(109, 74, 255, 0.3);
	animation: tw-pulse 2.4s ease-in-out infinite;
}
@keyframes tw-pulse { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tw-eyebrow__dot::after { animation: none; } }

/* ---------- header ---------- */
.tw-logo { display: inline-flex; align-items: center; gap: 8px; font: 600 20px/1 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.tw-logo img { width: 28px; height: 28px; }
.tw-logo__tld { color: var(--brand); }

.tw-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 20px 0; }
.admin-bar .tw-header { top: 32px; }
.tw-header__bar {
	position: relative; max-width: 1280px; height: 64px; margin: 0 auto;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
	padding: 0 10px 0 20px; border-radius: 18px;
	background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
	transition: background-color .3s, box-shadow .3s;
}
.tw-header.is-scrolled .tw-header__bar, .tw-header.is-open .tw-header__bar {
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 16px 40px -24px rgba(109, 74, 255, 0.45);
}
.tw-nav { display: flex; align-items: center; gap: 4px; }
.tw-nav__link {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 0; border-radius: 12px;
	background: transparent; color: rgba(18, 16, 31, 0.6); font-size: 15px; font-weight: 500; white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.tw-nav__link:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.tw-nav__link.is-active { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 16, 31, 0.06); }
/* Features dropdown: same layout as the landing's FeaturesMenu, centred on the whole bar */
.tw-nav__drop { position: static; }
.tw-nav__drop .tw-icon { width: 16px; height: 16px; transition: transform .2s; }
.tw-nav__menu {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 12px;
	opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.tw-nav__drop:hover .tw-nav__menu, .tw-nav__drop:focus-within .tw-nav__menu { opacity: 1; visibility: visible; }
.tw-nav__drop:hover > .tw-nav__link, .tw-nav__drop:focus-within > .tw-nav__link { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 16, 31, 0.06); }
.tw-nav__drop:hover .tw-icon, .tw-nav__drop:focus-within .tw-icon { transform: rotate(180deg); }
.tw-nav__panel {
	display: grid; grid-template-columns: 1fr 250px; gap: 8px; width: 820px;
	border-radius: 24px; background: #fff;
	box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.tw-nav__features { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px 0 12px 12px; align-content: start; }
.tw-nav__feature { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; transition: background-color .2s; }
.tw-nav__feature:hover { background: var(--bg); }
.tw-nav__feature-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.tw-nav__feature-desc { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.tw-nav__side { display: flex; flex-direction: column; gap: 20px; margin: 12px 12px 12px 0; padding: 20px; border-radius: 16px; background: var(--bg); }
.tw-nav__label { margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tw-nav__side-link { display: block; padding: 4px 0; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .2s; }
.tw-nav__side-link:hover { color: var(--brand); }
.tw-nav__side-link.is-quiet { font-weight: 400; color: var(--muted); }
.tw-nav__side-link.is-quiet:hover { color: var(--ink); }

/* Tinted chip with a Streamline Freehand icon (masked, so it takes the text colour) */
.tw-chip-icon { display: inline-flex; flex-shrink: 0; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.tw-freehand {
	display: inline-block; width: 22px; height: 22px; background-color: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.tw-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.tw-header__actions .tw-icon { width: 16px; height: 16px; }
.tw-header__toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center; justify-self: end;
	border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.7);
}
.tw-mobile {
	max-width: 1280px; margin: 8px auto 0; padding: 16px; border-radius: 20px;
	background: #fff; box-shadow: var(--shadow-elevated);
	display: grid; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.tw-mobile[hidden] { display: none; }
.tw-mobile a:not(.tw-btn) { padding: 10px 8px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.tw-mobile a[aria-current] { color: var(--brand); }
.tw-mobile .tw-mobile__feature { display: flex; align-items: center; gap: 12px; padding: 6px 8px; }
.tw-mobile__note { color: var(--muted); font-weight: 400; }
.tw-mobile hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; }
.tw-mobile__label { margin: 4px 8px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tw-mobile__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }

@media (max-width: 1023px) {
	.tw-header { padding: 12px 12px 0; }
	.tw-header__bar { grid-template-columns: 1fr auto; padding-right: 10px; }
	.tw-nav, .tw-header__actions { display: none; }
	.tw-header__toggle { display: inline-flex; }
}
@media (max-width: 782px) { .admin-bar .tw-header { top: 46px; } }

/* ---------- archive ---------- */
.tw-hero { padding: 48px 0 32px; text-align: center; }
.tw-hero .tw-container { display: flex; flex-direction: column; align-items: center; }
.tw-hero__title { margin-top: 16px; max-width: 820px; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 600; }
.tw-hero__intro { margin-top: 18px; max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.tw-hero--404 { padding: 72px 0 96px; }
.tw-hero--404 .tw-btn { margin-top: 24px; }

.tw-search {
	display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin-top: 28px;
	padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--card);
	box-shadow: var(--shadow-card), 0 0 0 1px rgba(18, 16, 31, 0.06);
}
.tw-search > .tw-icon { color: var(--muted); }
.tw-search input {
	flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none;
	font: 400 16px var(--font-body); color: var(--ink);
}
.tw-search input::placeholder { color: #8f8ca0; }
.tw-search input::-webkit-search-cancel-button { display: none; }
.tw-search:focus-within { box-shadow: var(--shadow-card), 0 0 0 2px var(--brand); }

.tw-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; max-width: 900px; }
.tw-pill {
	display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--border);
	color: var(--muted); font-size: 14px; font-weight: 500; transition: all .2s;
}
.tw-pill:hover { background: var(--card); color: var(--ink); }
.tw-pill.is-active { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 640px) {
	.tw-hero { padding: 32px 0 24px; }
	.tw-hero__intro { font-size: 16px; }
	.tw-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: calc(100% + 32px); margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.tw-pills::-webkit-scrollbar { display: none; }
	.tw-pill { flex-shrink: 0; }
}

.tw-archive { padding-bottom: 80px; }
.tw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tw-grid { grid-template-columns: 1fr; gap: 16px; } }

.tw-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border-radius: 20px; background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px rgba(18, 16, 31, 0.04);
	transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1);
}
.tw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(109, 74, 255, 0.12); }
.tw-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.tw-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.tw-card:hover .tw-card__media img { transform: scale(1.03); }
.tw-card__placeholder { display: block; width: 100%; height: 100%; background: var(--gradient-fill); opacity: .85; }
.tw-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.tw-card__title { font-size: 19px; line-height: 1.3; font-weight: 600; }
.tw-card__title a::after { content: ""; position: absolute; inset: 0; }
.tw-card__title a:hover { color: var(--brand); }
.tw-card .tw-chips { position: relative; z-index: 1; }
.tw-card .tw-meta { margin-top: auto; padding-top: 4px; font-size: 13px; }

.tw-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.tw-card--lead .tw-card__media { aspect-ratio: auto; min-height: 340px; }
.tw-card--lead .tw-card__body { justify-content: center; gap: 16px; padding: 40px 44px; }
.tw-card--lead .tw-card__title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.18; }
.tw-card__excerpt { color: var(--muted); font-size: 16px; line-height: 1.6; }
.tw-card--lead .tw-meta { margin-top: 4px; font-size: 14px; }
@media (max-width: 900px) {
	.tw-card--lead { grid-template-columns: 1fr; }
	.tw-card--lead .tw-card__media { aspect-ratio: 16 / 9; min-height: 0; }
	.tw-card--lead .tw-card__body { padding: 22px; }
}

.tw-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 48px; }
.tw-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px rgba(18, 16, 31, 0.06);
	font-size: 15px; font-weight: 500; color: var(--muted);
}
.tw-pagination a.page-numbers:hover { color: var(--ink); box-shadow: 0 0 0 1px rgba(109, 74, 255, 0.35); }
.tw-pagination .current { background: var(--ink); color: #fff; box-shadow: none; }
.tw-pagination .dots { background: transparent; box-shadow: none; min-width: 24px; padding: 0; }

.tw-empty { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; border-radius: var(--radius-lg); background: var(--card); text-align: center; color: var(--muted); }
.tw-empty__title { font: 600 22px var(--font-display); color: var(--ink); }
.tw-empty .tw-btn { margin-top: 10px; }

/* ---------- article ---------- */
.tw-article__header { max-width: 1088px; padding-top: 32px; padding-bottom: 8px; }
.tw-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--muted); font-size: 14px; font-weight: 500; }
.tw-back:hover { color: var(--brand); }
.tw-article__title { margin-top: 16px; max-width: 900px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; font-weight: 600; }
.tw-article__header .tw-meta { margin-top: 18px; }
.tw-article__cover { margin: 32px 0 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.tw-article__cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; }

.tw-article__layout { max-width: 1088px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.tw-article__main { min-width: 0; }
.tw-sticky { position: sticky; top: 104px; display: grid; gap: 20px; }
.admin-bar .tw-sticky { top: 136px; }
@media (max-width: 1023px) {
	.tw-article__layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
	.tw-article__aside { display: none; }
}

.tw-toc { padding: 18px 18px 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px rgba(18, 16, 31, 0.05); }
.tw-toc[hidden] { display: none; }
.tw-toc__title { margin-bottom: 8px; font: 600 13px var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tw-toc ol { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.tw-toc a {
	display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border);
	color: var(--muted); font-size: 14px; line-height: 1.4; transition: color .2s, border-color .2s;
}
.tw-toc a:hover { color: var(--ink); }
.tw-toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 500; }

.tw-cta { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: var(--gradient-fill); color: #fff; }
.tw-cta::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%); pointer-events: none;
}
.tw-cta__eyebrow { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.tw-cta__title { margin-top: 8px; font: 600 20px/1.25 var(--font-display); letter-spacing: -0.02em; }
.tw-cta__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.tw-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tw-cta--side .tw-btn { width: 100%; }
.tw-cta--wide { margin-top: 48px; padding: 36px 40px; }
.tw-cta--wide .tw-cta__title { max-width: 560px; font-size: clamp(22px, 2.4vw, 28px); }
.tw-cta--wide .tw-cta__text { max-width: 560px; font-size: 16px; }
@media (max-width: 640px) { .tw-cta--wide { padding: 26px 22px; } .tw-cta--wide .tw-btn { width: 100%; } }

.tw-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.tw-share > span { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.tw-share a, .tw-share button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px;
	border: 0; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px rgba(18, 16, 31, 0.07);
	color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, box-shadow .2s;
}
.tw-share a:hover, .tw-share button:hover { color: var(--brand); box-shadow: 0 0 0 1px rgba(109, 74, 255, 0.35); }

.tw-related { padding-bottom: 88px; }
.tw-section-title { margin-bottom: 24px; font-size: 28px; font-weight: 600; }

/* ---------- prose (post and page bodies) ---------- */
.tw-prose { font-size: 18px; line-height: 1.75; color: #2a2838; overflow-wrap: break-word; }
.tw-prose > * + * { margin-top: 1.15em; }
.tw-prose > :first-child { margin-top: 0; }
.tw-prose h2 { margin-top: 2em; font-size: 30px; line-height: 1.22; font-weight: 600; }
.tw-prose h3 { margin-top: 1.7em; font-size: 23px; line-height: 1.3; font-weight: 600; }
.tw-prose h4, .tw-prose h5, .tw-prose h6 { margin-top: 1.5em; font-size: 19px; line-height: 1.4; font-weight: 600; }
.tw-prose h2 + *, .tw-prose h3 + *, .tw-prose h4 + * { margin-top: .6em; }
.tw-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(109, 74, 255, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.tw-prose a:hover { text-decoration-color: var(--brand); }
.tw-prose strong, .tw-prose b { color: var(--ink); font-weight: 650; }
.tw-prose ul, .tw-prose ol { padding-left: 1.4em; }
.tw-prose li + li { margin-top: .45em; }
.tw-prose li::marker { color: var(--brand); }
.tw-prose ol > li::marker { font-weight: 600; }
.tw-prose blockquote {
	margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 3px solid var(--brand);
	border-radius: 0 16px 16px 0; background: var(--brand-soft); color: var(--ink); font-size: 18px;
}
.tw-prose blockquote p + p { margin-top: .6em; }
.tw-prose img { border-radius: 16px; }
.tw-prose figure { margin-left: 0; margin-right: 0; }
.tw-prose figcaption, .tw-prose .wp-caption-text { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.tw-prose .wp-caption { max-width: 100%; }
.tw-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.tw-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.tw-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
@media (max-width: 640px) { .tw-prose .alignleft, .tw-prose .alignright { float: none; margin: 1em 0; } }
.tw-prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.tw-prose code { padding: .15em .4em; border-radius: 6px; background: var(--surface); font-size: .88em; }
.tw-prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #eceaf7; font-size: 15px; line-height: 1.6; }
.tw-prose pre code { padding: 0; background: none; color: inherit; }
.tw-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.tw-prose table th, .tw-prose table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tw-prose table th, .tw-prose table thead td { background: var(--surface); font-weight: 600; color: var(--ink); }
.tw-prose table tr:first-child th:first-child { border-top-left-radius: 12px; }
.tw-prose iframe { width: 100%; border: 0; border-radius: 16px; }
.tw-prose .post-modified-info { color: var(--muted); font-size: 14px; }
.tw-prose .post-modified-info a { color: inherit; }
@media (max-width: 640px) {
	.tw-prose { font-size: 17px; }
	.tw-prose h2 { font-size: 25px; }
	.tw-prose h3 { font-size: 21px; }
}

.tw-article--page .tw-article__header { max-width: 860px; text-align: left; }
.tw-prose--page { max-width: 812px; margin: 32px auto 0; padding: 40px 44px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.tw-article--page { padding-bottom: 80px; }
@media (max-width: 640px) { .tw-prose--page { padding: 24px 20px; margin-top: 20px; } }

/* Contact Form 7 */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
	font: 400 16px var(--font-body); color: var(--ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.15); }
.wpcf7 input[type="submit"] {
	height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--brand); color: #fff;
	font: 600 15px var(--font-body); box-shadow: var(--shadow-glow); cursor: pointer;
}

/* ---------- footer ---------- */
.tw-footer { padding: 0 16px 16px; }
.tw-footer__card { max-width: 100%; border-radius: 32px; background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
.tw-footer__grid {
	display: grid; grid-template-columns: 1.2fr 2.4fr; gap: 48px;
	max-width: 1280px; margin: 0 auto; padding: 72px 40px 48px;
}
.tw-footer__brand p { margin-top: 20px; max-width: 300px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.tw-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.tw-footer__stack { display: grid; gap: 32px; align-content: start; }
.tw-footer__title { margin-bottom: 16px; font: 600 14px var(--font-display); color: var(--ink); }
.tw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tw-footer__col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.tw-footer__col a:hover { color: var(--brand); }
.tw-footer__legal {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	max-width: 1280px; margin: 0 auto; padding: 24px 40px 32px; border-top: 1px solid var(--border);
	box-sizing: border-box; width: calc(100% - 80px);
	padding-left: 0; padding-right: 0;
}
.tw-footer__fine { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; color: var(--muted); font-size: 14px; }
.tw-footer__fine a:hover { color: var(--ink); }
.tw-footer__social { display: flex; gap: 6px; margin-right: -10px; }
.tw-footer__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; color: var(--muted); transition: all .2s; }
.tw-footer__social a:hover { background: var(--bg); color: var(--brand); }
.tw-footer__social .tw-icon { width: 16px; height: 16px; }
@media (max-width: 1023px) {
	.tw-footer__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 32px; }
	.tw-footer__legal { width: calc(100% - 48px); }
}
@media (max-width: 640px) {
	.tw-footer { padding: 0 12px 12px; }
	.tw-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.tw-footer__cols > .tw-footer__col:last-child { grid-column: 1 / -1; }
	.tw-footer__cols > .tw-footer__col:last-child ul { grid-template-columns: 1fr 1fr; }
	.tw-footer__legal { flex-direction: column-reverse; align-items: flex-start; }
	.tw-footer__social { margin: 0 0 0 -10px; }
}

/* Responsive Accordion plugin (FAQ page): take the theme's fonts and colours */
.tw-prose .wpsm_panel, .tw-prose .wpsm_panel * { font-family: var(--font-body) !important; }
.tw-prose .wpsm_panel { border-radius: 14px !important; overflow: hidden; }
.tw-prose .wpsm_panel-title a { font-family: var(--font-display) !important; letter-spacing: -0.01em; }
.tw-footer__col button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.tw-footer__col button:hover { color: var(--brand); }

/* Lead (manual excerpt) under the article title */
.tw-article__lead { margin-top: 16px; max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.tw-hero__page { color: var(--muted); font-weight: 500; }

/* Tool posts: the embedded tool (wrapped in an h2 by the editor) sits in a card right under the header */
.tw-prose h2:has(> iframe), .tw-prose h3:has(> iframe) { margin: 0; font-size: 0; line-height: 0; }
.tw-prose iframe.wrapifai-iframe {
	display: block; width: 100%; padding: 8px 0 !important; border-radius: 20px !important;
	background: #fff !important; box-shadow: var(--shadow-card), 0 0 0 1px rgba(18, 16, 31, 0.06);
}
.tw-article--tool .tw-prose > :first-child { margin-bottom: 2.2em; }
