/* ==========================================================================
   TeamW2S Elastic — theme styles
   Section markup keeps the design's exact inline values; this file holds the
   tokens, global rules, interactive states, hover effects and motion.
   ========================================================================== */

/* Tokens (mirrored in theme.json) ---------------------------------------- */
:root {
	--eyebrow-font: 'Space Grotesk', sans-serif;
	--base: #FFFFFF;
	--base-2: #FFFCF5;
	--surface: #FFFFFF;
	--surface-2: #FBFAF7;
	--ink: #0E0F1A;
	--ink-2: #575969;
	--ink-3: #6E7081;
	--brand: #202656;
	--accent: #F0AC0E;
	--accent-soft: #FFF3D6;
	--line: #ECEAE4;
	--line-2: #DCD9D1;
	--btn: #0E0F1A;
	--on-btn: #FFFFFF;
	--panel: #121212;
	--panel-line: #2A2A2A;
	--panel-ink: #F5F3EE;
	--panel-ink-2: #A3A19C;
	--highlight: #FFD21F;
	--tint-mix: 80%;
	--paper: #FFFFFF;
	--dot: 14, 15, 26;
	--shadow: 0 30px 60px -34px rgba(14, 15, 26, .28);
	--card-shadow: 0 1px 2px rgba(14, 15, 26, .04), 0 10px 24px -18px rgba(14, 15, 26, .22);
	--polaroid-shadow: 0 1px 2px rgba(14, 15, 26, .06), 0 18px 30px -22px rgba(14, 15, 26, .35);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: 'DM Sans', 'Noto Sans Arabic', 'Noto Sans Tamil', 'Noto Sans Sinhala', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans TC', system-ui, sans-serif;
	--mono: 'DM Mono', ui-monospace, monospace;
	--hand: 'Caveat', cursive;
	color-scheme: light;
}

:root[data-theme="dark"] {
	/* Matte graphite dark: a soft #161616 base instead of pure black, surfaces lifted a
	   step at a time, off-white headings, muted grey body text, quiet borders. */
	--base: #161616;
	--base-2: #1A1A1A;
	--surface: #1E1E1E;
	--surface-2: #232323;
	--ink: #EAEAEA;
	--ink-2: #939393;
	--ink-3: #6E6E6E;
	--brand: #C9CCF5;
	--accent: #E3A417;
	--accent-soft: #221B0D;
	--line: #2C2C2C;
	--line-2: #383838;
	--btn: #EAEAEA;
	--on-btn: #161616;
	--panel: #1A1A1A;
	--panel-line: #2C2C2C;
	--panel-ink: #EAEAEA;
	--panel-ink-2: #939393;
	--highlight: #C99A1C;
	--dot: 234, 234, 234;
	--tint-mix: 9%;
	--paper: #202020;
	--shadow: 0 0 0 1px #2C2C2C, 0 40px 80px -48px rgba(0, 0, 0, .7);
	--card-shadow: 0 0 0 1px rgba(255, 255, 255, .02);
	--polaroid-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 30px -22px rgba(0, 0, 0, .6);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--base);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background .3s, color .3s;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font); }

:root[lang|="ar"] h1, :root[lang|="ar"] h2, :root[lang|="ar"] h3,
:root[lang|="ta"] h1, :root[lang|="ta"] h2, :root[lang|="ta"] h3,
:root[lang|="si"] h1, :root[lang|="si"] h2, :root[lang|="si"] h3 { letter-spacing: 0 !important; line-height: 1.2 !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.tw2s-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.tw2s-skip:focus { top: 12px; color: var(--on-btn); }
.tw2s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Anchored sections clear the sticky header. */
.tw2s-anchor, [id] { scroll-margin-top: 72px; }

/* Mobile helpers from the design (≤760px) */
@media (max-width: 760px) {
	[data-m-full] { grid-column: 1 / -1 !important; }
	[data-m-static] { position: static !important; }
	[data-m-pad] { padding-top: 64px !important; padding-bottom: 64px !important; }
	[data-m-hide] { display: none !important; }
}
@media (max-width: 640px) {
	/* Every 1280px content container drops its 24px side gutter to 16px. */
	[style*="max-width:1280px"], [style*="max-width:1100px"], [style*="max-width:860px"], .tw2s-page-content { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Motion ----------------------------------------------------------------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob8 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes marker { from { background-size: 0% .09em; } to { background-size: 100% .09em; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes bar40 { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes type { 0%, 100% { width: 30%; } 50% { width: 88%; } }
@keyframes type2 { 0%, 100% { width: 20%; } 50% { width: 78%; } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes funnel { 0%, 100% { transform: scaleX(.82); } 50% { transform: scaleX(1); } }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-90px, 40px); } 66% { transform: translate(-30px, 110px); } }
@keyframes prog { 0% { width: 0; } 70%, 100% { width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes grow { 0%, 100% { height: 34%; } 50% { height: 62%; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Hover states (inline styles in the markup need !important to be overridden) */
.hv-btn:hover { opacity: .9; color: var(--on-btn) !important; }
.hv-outline:hover { border-color: var(--ink) !important; color: var(--ink) !important; }
.hv-outline-soft:hover { border-color: var(--ink-3) !important; color: var(--ink) !important; }
.hv-border:hover { border-color: var(--line-2) !important; color: var(--ink); }
.hv-border-soft:hover { border-color: var(--line-2) !important; color: var(--ink) !important; }
.hv-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-lift-b:hover { transform: translateY(-4px); border-color: var(--line-2) !important; box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-shadow:hover { box-shadow: var(--shadow); color: var(--ink) !important; }
.hv-shadow-b:hover { box-shadow: var(--shadow); border-color: var(--line-2) !important; color: var(--ink) !important; }
.hv-card:hover { border-color: var(--line-2) !important; box-shadow: var(--card-shadow); color: var(--ink) !important; }
.hv-ink:hover { color: var(--ink) !important; }
.hv-underline:hover { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 4px; }
.hv-toc:hover, .hv-toc.is-current { color: var(--ink) !important; border-color: var(--accent) !important; }
.hv-accent-border:hover { border-color: var(--accent) !important; color: var(--panel-ink) !important; }
.hv-gradient:hover { color: var(--ink) !important; background: linear-gradient(90deg, transparent, var(--base-2), transparent); }
.hv-social:hover { color: var(--ink) !important; border-color: var(--line-2) !important; }
.tw2s-stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Header ----------------------------------------------------------------- */
.tw2s-header__bar {
	max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px;
	display: flex; align-items: center; gap: 16px;
}
.tw2s-header__logo { display: flex; align-items: center; flex: 1 1 0; min-width: max-content; }
.tw2s-header__logo img { height: 34px; width: auto; display: block; }
.tw2s-logo-dark { display: none !important; }
:root[data-theme="dark"] .tw2s-logo-light { display: none !important; }
:root[data-theme="dark"] .tw2s-logo-dark { display: block !important; }

.tw2s-nav {
	display: flex; align-items: center; justify-content: center; gap: 2px;
	flex: 0 1 auto; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.tw2s-nav__link {
	padding: 7px 11px; border-radius: 7px; color: var(--ink-2);
	display: flex; align-items: center; gap: 5px; background: transparent;
}
.tw2s-nav__link:hover, .tw2s-nav__link.is-open { color: var(--ink); }
.tw2s-nav__link.is-active { color: var(--ink); background: var(--base-2); }
.tw2s-header__tools { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: max-content; }
.tw2s-show-1240, .tw2s-show-640, .tw2s-show-460 { display: flex !important; }
.tw2s-burger { display: none; }

.tw2s-mega {
	position: absolute; top: 64px; left: 0; right: 0;
	display: flex; justify-content: center; padding: 0 24px; pointer-events: none;
}
.tw2s-mega__inner { pointer-events: auto; width: 100%; max-width: 1232px; display: flex; }
.tw2s-mega__panel {
	margin: 0 auto; width: min(560px, 100%);
	background: var(--surface); border: 1px solid var(--line); border-top: 0;
	border-radius: 0 0 18px 18px; box-shadow: var(--shadow); padding: 10px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
	animation: rise .25s both;
}
.tw2s-mega__item { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 12px; color: var(--ink); }
.tw2s-mega__item:hover, .tw2s-mega__item:focus-visible { background: var(--base-2); color: var(--ink); }

.tw2s-sheet {
	position: absolute; top: 64px; left: 0; right: 0;
	background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
	padding: 12px 20px 24px; display: flex; flex-direction: column;
	max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow: auto;
}

@media (max-width: 1239px) { .tw2s-show-1240 { display: none !important; } }
@media (max-width: 1079px) {
	.tw2s-nav, .tw2s-mega { display: none !important; }
	.tw2s-burger { display: block; }
}
@media (min-width: 1080px) { .tw2s-sheet { display: none !important; } }
@media (max-width: 639px) {
	.tw2s-show-640 { display: none !important; }
	.tw2s-header__bar { padding: 0 16px; gap: 10px; }
}
@media (max-width: 459px) { .tw2s-show-460 { display: none !important; } }

/* Theme toggles: state comes straight from html[data-theme] */
.tw2s-theme-toggle button {
	border: 0; border-radius: 999px; cursor: pointer; font: inherit;
	background: transparent; color: var(--ink-3);
}
:root:not([data-theme="dark"]) .tw2s-theme-toggle [data-set-theme="light"],
:root[data-theme="dark"] .tw2s-theme-toggle [data-set-theme="dark"] { background: var(--ink); color: var(--base); }

/* Hero ------------------------------------------------------------------- */
.tw2s-hero__canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-composite: intersect;
}
.tw2s-float { display: none; }
@media (min-width: 1200px) { .tw2s-float { display: block; position: absolute; inset: 0; pointer-events: none; } }
.tw2s-float__card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; width: 228px;
	display: flex; flex-direction: column; gap: 12px; box-shadow: var(--card-shadow); text-align: start;
}
.tw2s-marker {
	white-space: nowrap;
	background-image: linear-gradient(var(--highlight), var(--highlight));
	background-repeat: no-repeat; background-position: 0 94%; background-size: 100% .09em;
	animation: marker 1s .6s cubic-bezier(.6, 0, .2, 1) both; padding-bottom: .04em;
}
@media (max-width: 460px) { .tw2s-marker { white-space: normal; } }
/* CJK has no spaces to wrap on: let highlights wrap, keep the underline per line, give glyphs air. */
:is(:lang(ja), :lang(zh), :lang(ko)) .tw2s-marker { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:is(:lang(ja), :lang(zh), :lang(ko)) h1.wp-block-heading { font-size: clamp(34px, 4.8vw, 64px) !important; line-height: 1.16 !important; letter-spacing: -0.02em !important; max-inline-size: 11em; margin-inline: auto; }
:lang(ko) h1.wp-block-heading { word-break: keep-all; }
:is(:lang(ja), :lang(zh), :lang(ko)) h2.wp-block-heading { line-height: 1.18 !important; letter-spacing: -0.02em !important; }
.tw2s-marquee-mask {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tw2s-marquee:hover { animation-play-state: paused; }
.tw2s-client-logo { filter: grayscale(1); }
:root[data-theme="dark"] .tw2s-client-logo { filter: grayscale(1) invert(1) brightness(1.4); }

/* Story illustration swaps tone in dark mode */
.tw2s-og { background: var(--base-2); }
:root[data-theme="dark"] .tw2s-og { background: var(--surface); }
:root[data-theme="dark"] .tw2s-og__img { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.95); }

/* Elastic Team Gantt */
.tw2s-phase {
	padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
	white-space: nowrap; overflow: hidden; transition: background .4s, color .4s;
	background: color-mix(in srgb, var(--panel-ink) 7%, transparent); color: var(--panel-ink-2);
}
.tw2s-phase.is-on { background: #F0AC0E; color: #121212; }
.tw2s-panel-btn {
	height: 34px; border-radius: 9px; border: 1px solid var(--panel-line);
	background: transparent; color: var(--panel-ink); cursor: pointer; font: inherit;
}
.tw2s-panel-btn:hover { border-color: var(--accent); }

/* Kanban */
.tw2s-kcard {
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px;
	display: flex; flex-direction: column; gap: 10px; box-shadow: var(--card-shadow); animation: rise .5s both;
}

/* Toolbox tabs + tilted columns */
.tw2s-tab {
	font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: 0; cursor: pointer;
	background: transparent; color: var(--ink-3); box-shadow: none;
}
.tw2s-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(14, 15, 26, .3); }
.tw2s-stack-view {
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
@media (max-width: 760px) { .tw2s-stack-view { height: 380px !important; } }

/* Team Builder chips */
.tw2s-chip {
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; height: 40px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
	display: flex; align-items: center; gap: 8px; transition: all .2s;
}
.tw2s-chip:hover { border-color: var(--ink-3); }
.tw2s-chip.is-on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
@media (max-width: 860px) { .tw2s-builder__side { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }

/* Filter pills (Work, Articles, Case studies) */
.tw2s-pill {
	font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; height: 38px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
	display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
}
.tw2s-pill--sm { font-size: 14px; height: 36px; padding: 0 14px; }
.tw2s-pill:hover { color: var(--ink); border-color: var(--line-2); }
.tw2s-pill.is-on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-tag {
	font: inherit; font-size: 13px; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 8px;
	border: 1px solid var(--line); background: transparent; color: var(--ink-2);
}
.tw2s-tag:hover { color: var(--ink); }
.tw2s-tag.is-on { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

/* Checkbox chips (Growth Partnership form) */
.tw2s-check-chip { position: relative; display: inline-flex; }
.tw2s-check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tw2s-check-chip > span {
	height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
	background: var(--base); color: var(--ink); font-size: 13.5px; cursor: pointer;
	display: inline-flex; align-items: center; gap: 4px; user-select: none;
}
.tw2s-check-chip__mark::before { content: "+"; }
.tw2s-check-chip input:checked + span { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-check-chip input:checked + span .tw2s-check-chip__mark::before { content: "✓"; }
.tw2s-check-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* FAQ */
.tw2s-faq[open] .tw2s-faq__icon { background: var(--base-2); }
.tw2s-faq summary:hover span:first-child { color: var(--ink); }

/* Company polaroids */
.tw2s-polaroid {
	margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
	padding: 10px 10px 18px; box-shadow: var(--polaroid-shadow);
	transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease);
	display: flex; flex-direction: column; gap: 14px;
}
.tw2s-polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.tw2s-polaroid__img {
	width: 112%; max-width: none; margin: 0 -6%; display: block;
	transform-origin: 50% 100%; transition: transform .5s var(--ease);
}
.tw2s-polaroid:hover .tw2s-polaroid__img { transform: scale(1.05) rotate(-1.5deg); }

/* Industries core cards stack their visual on narrow screens */
@media (max-width: 900px) { .tw2s-core-visual { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .tw2s-apply__form { border-inline-start: 0 !important; border-top: 1px solid var(--line); } }

/* Editor content --------------------------------------------------------- */
.tw2s-prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.tw2s-prose > * + * { margin-top: 1.1em; }
.tw2s-prose > :first-child { margin-top: 0; }
.tw2s-prose h2, .tw2s-prose h3, .tw2s-prose h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.15; margin: 1.8em 0 .5em; }
.tw2s-prose h2 { font-size: 28px; }
.tw2s-prose h3 { font-size: 22px; }
.tw2s-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tw2s-prose a:hover { color: var(--brand); }
.tw2s-prose ul, .tw2s-prose ol { padding-inline-start: 1.2em; }
.tw2s-prose li + li { margin-top: .4em; }
.tw2s-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-inline-start: 3px solid var(--accent); font-size: 21px; line-height: 1.45; color: var(--ink); }
.tw2s-prose img, .tw2s-prose figure img { border-radius: 16px; }
.tw2s-prose figure { margin: 1.6em 0; }
.tw2s-prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.tw2s-prose code { font-family: var(--mono); font-size: .9em; background: var(--base-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tw2s-prose pre { background: var(--panel); color: var(--panel-ink); padding: 18px; border-radius: 14px; overflow: auto; }
.tw2s-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tw2s-prose th, .tw2s-prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: start; }
.tw2s-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.tw2s-prose--article { font-size: 18px; line-height: 1.75; }
.tw2s-prose--article h2 { margin-top: 40px; margin-bottom: 16px; font-size: 28px; font-weight: 700; }
.tw2s-prose--article > h2:first-child { margin-top: 0; }
.tw2s-prose--article p + p { margin-top: 16px; }
.tw2s-h2-num { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-inline-end: 10px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }

.alignwide { max-width: 1280px; }
.wp-block-button__link { text-decoration: none; }

/* Pagination */
.tw2s-pagination .nav-links, .tw2s-pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.tw2s-pagination .page-numbers, .tw2s-pagination a, .tw2s-pagination > span {
	height: 38px; min-width: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
	display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: var(--surface); font-size: 14px;
}
.tw2s-pagination .page-numbers.current { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.tw2s-pagination h2 { display: none; }

/* Third-party form embeds pick up the design language */
.tw2s-form-embed input[type="text"], .tw2s-form-embed input[type="email"], .tw2s-form-embed input[type="url"],
.tw2s-form-embed input[type="tel"], .tw2s-form-embed select, .tw2s-form-embed textarea {
	width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px;
	background: var(--base); color: var(--ink); font-size: 15px;
}
.tw2s-form-embed input[type="submit"], .tw2s-form-embed button[type="submit"] {
	height: 50px; border: 0; border-radius: 999px; padding: 0 24px; background: var(--btn); color: var(--on-btn); font-weight: 600; cursor: pointer;
}
.tw2s-form-embed label { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Comments */
.tw2s-comments .comment-body { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface); }
.tw2s-comments .children { list-style: none; padding-inline-start: 24px; }
.tw2s-comments input:not([type="submit"]):not([type="checkbox"]), .tw2s-comments textarea {
	width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: var(--base); color: var(--ink);
}
.tw2s-comments input[type="submit"] { height: 46px; border: 0; border-radius: 999px; padding: 0 22px; background: var(--btn); color: var(--on-btn); font-weight: 600; cursor: pointer; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--ink-3); }
.sticky, .bypostauthor { outline: 0; }

/* Elastic Team Gantt on narrow screens: the role column stays pinned while the
   timeline glides after the yellow "today" line (theme.js). Width is kept. */
@media (max-width: 820px) {
	.tw2s-gantt { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
	.tw2s-gantt { padding-left: 0 !important; }
	.tw2s-gantt__grid { grid-template-columns: 150px minmax(0, 1fr) !important; }
	.tw2s-gantt__label { position: sticky; left: 0; z-index: 2; padding-left: 14px; background: color-mix(in srgb, var(--panel-ink) 3%, var(--panel)); box-shadow: 12px 0 14px -12px rgba(0, 0, 0, .35); }
	.tw2s-gantt__controls { padding-left: 14px; }
	.tw2s-gantt__role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.tw2s-gantt__controls { grid-column: 1 / -1; position: sticky; left: 0; width: var(--gantt-vw, 100%); box-sizing: border-box; }
	.tw2s-gantt__spacer { display: none; }
}

/* Sprint board on narrow screens: keeps its full size and glides to the card that moved. */
.tw2s-kanban-wrap { scrollbar-width: thin; }
@media (max-width: 820px) {
	.tw2s-kanban-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
}

/* Why Elastic: table on desktop; stacked cards with tabs on tablet and mobile (no sideways swiping). */
.tw2s-cmp { display: none; }
@media (max-width: 1024px) {
	.tw2s-cmp-table { display: none; }
	.tw2s-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
}
.tw2s-cmp__card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tw2s-cmp__head h3 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.tw2s-cmp__head p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tw2s-cmp__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--base-2); border: 1px solid var(--line); border-radius: 12px; }
.tw2s-cmp__tabs button { font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; min-height: 42px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tw2s-cmp__tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 15, 26, .08), inset 0 0 0 1px var(--line); }
.tw2s-cmp__tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tw2s-cmp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tw2s-cmp__list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); animation: rise .35s both; }
.tw2s-cmp__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tw2s-cmp__list li:nth-child(2) { animation-delay: .04s; }
.tw2s-cmp__list li:nth-child(3) { animation-delay: .08s; }
.tw2s-cmp__list li:nth-child(4) { animation-delay: .12s; }
.tw2s-cmp__list li:nth-child(5) { animation-delay: .16s; }
.tw2s-cmp__list li:nth-child(n+6) { animation-delay: .2s; }
.tw2s-cmp__ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(115% 121% at 80% 10%, var(--surface) 0%, var(--base-2) 100%); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.tw2s-cmp__card--us { background: var(--panel); border-color: color-mix(in srgb, var(--accent) 45%, var(--panel-line)); color: var(--panel-ink); }
.tw2s-cmp__card--us .tw2s-cmp__head h3 { color: var(--panel-ink); }
.tw2s-cmp__card--us .tw2s-cmp__head p { color: var(--panel-ink-2); }
.tw2s-cmp__card--us .tw2s-cmp__list li { color: var(--panel-ink); border-color: var(--panel-line); }
.tw2s-cmp__card--us .tw2s-cmp__ico { background: color-mix(in srgb, var(--panel-ink) 6%, transparent); border-color: var(--panel-line); color: var(--accent); }
.tw2s-cmp__crew { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; color: var(--panel-ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--panel-line); padding: 0 0 16px; }
@media (max-width: 380px) { .tw2s-cmp__tabs button { font-size: 12.5px; } .tw2s-cmp__card { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .tw2s-cmp__list li { animation: none; } }

/* Footer: "Get an AI summary" (zyner.io style) */
.tw2s-ai { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.tw2s-ai__label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tw2s-ai__label svg { color: var(--ink-2); flex-shrink: 0; }
.tw2s-ai__list { display: inline-flex; gap: 6px; }
.tw2s-ai__btn { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #0E0F1A; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(14, 15, 26, .08); transition: transform .2s, box-shadow .2s; }
.tw2s-ai__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(14, 15, 26, .6); color: #0E0F1A; }
.tw2s-ai__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Secondary buttons: white outline pill in light mode, solid light pill in dark mode. */
.tw2s-btn-secondary { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-2); transition: border-color .2s, opacity .2s; }
.tw2s-btn-secondary:hover { border-color: var(--ink); color: var(--ink) !important; }
[data-theme="dark"] .tw2s-btn-secondary { background: var(--btn) !important; color: var(--on-btn) !important; border-color: var(--btn); }
[data-theme="dark"] .tw2s-btn-secondary:hover { opacity: .9; color: var(--on-btn) !important; }

/* Dark mode: no bright blocks on black ---------------------------------------- */
:root[data-theme="dark"] .tw2s-paper { background: var(--paper) !important; border-color: #222 !important; box-shadow: 0 0 0 1px #1D1D1D !important; }
:root[data-theme="dark"] .tw2s-paper [style*="#0E0F1A"], :root[data-theme="dark"] .tw2s-paper[style*="color:#0E0F1A"] { color: #E6E6E6 !important; }
:root[data-theme="dark"] .tw2s-paper [style*="#EEE"], :root[data-theme="dark"] .tw2s-paper [style*="#E5E3DD"] { border-color: #222 !important; background-color: #262626 !important; }
:root[data-theme="dark"] .tw2s-paper img:not(.tw2s-feat) { filter: grayscale(1) invert(1) brightness(1.6); opacity: .85; }
:root[data-theme="dark"] [data-row-bar] { filter: brightness(.72) saturate(.8); }
:root[data-theme="dark"] .tw2s-pastel { background: color-mix(in srgb, var(--bgc) 16%, #111) !important; }
:root[data-theme="dark"] .tw2s-cmp-us { background: #161616 !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .tw2s-kcard, :root[data-theme="dark"] .tw2s-float__card { background: var(--surface-2); }
/* Featured images with a dark twin: show the matching one. */
.tw2s-feat--dark { display: none !important; }
:root[data-theme="dark"] .tw2s-feat--light { display: none !important; }
:root[data-theme="dark"] .tw2s-feat--dark { display: block !important; }
/* A light image with no dark twin: take the glare off. */
:root[data-theme="dark"] img.tw2s-feat:not(.tw2s-feat--dark) { filter: brightness(.86) saturate(.9); }
/* Crew illustrations carry their own pastel paper: soften it on black. */
:root[data-theme="dark"] .tw2s-polaroid__img { filter: brightness(.8) saturate(.85); }
