/*
 * Toknomics — bespoke layout details.
 * Tokens live in theme.json; this file only handles what theme.json cannot:
 * responsive grids, editorial rows, focus states and small motion.
 */

:root {
	--tk-line: 1px solid var(--wp--preset--color--hairline);
	--tk-ease: var(--wp--custom--transition, 160ms ease-out);
	--tk-gutter: clamp(20px, 4.5vw, 56px);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01";
}
::selection { background: var(--wp--preset--color--pale-blue); color: var(--wp--preset--color--ink); }

/* Focus: one visible, consistent ring everywhere. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--electric);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Skip link that core injects for block themes. */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-weight: 650;
	padding: 12px 16px;
	z-index: 100000;
}

/* Main content links: underline that stays legible, thins on hover. */
.tk-prose a,
.tk-integrity a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tk-prose a:hover { text-decoration-thickness: 2px; }

/* ---------- Shared editorial primitives ---------- */

.tk-eyebrow,
.tk-kicker,
.tk-kicker a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	line-height: 1.4 !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin: 0;
}
.tk-eyebrow--accent { color: var(--wp--preset--color--ink); display: flex; align-items: center; gap: 10px; }
.tk-eyebrow--accent::before {
	content: "";
	width: 7px; height: 7px;
	background: var(--wp--preset--color--electric);
	flex: none;
}
.tk-kicker--type, .tk-kicker--type a { color: var(--wp--preset--color--electric); }
.tk-accent { color: var(--wp--preset--color--electric); }

/* Text link with a small arrow that nudges on hover. */
.tk-link-arrow,
.wp-block-read-more.tk-link-arrow { margin: 0; font-size: var(--wp--preset--font-size--ui); font-weight: 650; }
.tk-link-arrow a,
a.wp-block-read-more.tk-link-arrow {
	color: var(--wp--preset--color--electric);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
}
.tk-link-arrow a::after,
a.wp-block-read-more.tk-link-arrow::after {
	content: "→";
	transition: transform var(--tk-ease);
}
.tk-link-arrow a:hover,
a.wp-block-read-more.tk-link-arrow:hover { text-decoration: underline; text-underline-offset: 0.25em; color: var(--wp--preset--color--electric); }
.tk-link-arrow a:hover::after,
a.wp-block-read-more.tk-link-arrow:hover::after { transform: translateX(3px); }

/* Sections are separated by hairlines, never boxes. */
.tk-section {
	border-top: var(--tk-line);
	padding-top: 28px;
	padding-bottom: var(--wp--preset--spacing--70);
}
.tk-section__label { margin-bottom: var(--wp--preset--spacing--50) !important; }

/* Main element spacing: no stray gap under the header. */
.tk-main { margin-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */

.tk-header { border-bottom: var(--tk-line); }
.tk-header__inner { min-height: var(--wp--custom--header-height, 72px); gap: 12px 32px; }
.tk-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	min-height: 44px;
}
.tk-brand img { width: 32px; height: 32px; flex: none; }
.tk-brand__word {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 750;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}
.tk-brand:hover { color: var(--wp--preset--color--ink); text-decoration: none; }

.tk-header__nav { gap: 8px 28px; }
.tk-primary-nav { gap: 28px; }
.tk-primary-nav .wp-block-navigation-item__content { padding: 12px 0; display: inline-block; }
.tk-primary-nav .wp-block-navigation-item__content:hover,
.tk-primary-nav .current-menu-item > .wp-block-navigation-item__content,
.tk-primary-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.tk-subscribe-link { margin: 0; font-size: var(--wp--preset--font-size--small); font-weight: 700; }
.tk-subscribe-link a {
	text-decoration: none;
	display: inline-block;
	padding: 12px 0 12px 28px;
	border-left: var(--tk-line);
}
.tk-subscribe-link a:hover { text-decoration: underline; text-underline-offset: 6px; color: var(--wp--preset--color--electric); }

/* Header search: icon button that expands into a field (core behaviour). */
.tk-header-search { margin: 0; flex: none; min-width: 44px; }
.tk-header-search .wp-block-search__inside-wrapper { min-width: 44px; }
.tk-header-search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 0;
	padding: 10px;
	min-width: 44px;
	min-height: 44px;
	margin-left: 0;
}
.tk-header-search .wp-block-search__button:hover { color: var(--wp--preset--color--electric); background: transparent; }
.tk-header-search .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.tk-header-search .wp-block-search__input {
	border: var(--tk-line);
	border-radius: var(--wp--custom--radius, 6px);
	background: var(--wp--preset--color--white);
	font-size: 1rem;
	padding: 8px 12px;
}

/* ---------- Home: hero ---------- */

.tk-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
	align-items: center;
	gap: 32px;
	min-height: clamp(420px, 62vh, 600px);
	padding-block: clamp(56px, 9vw, 112px);
}
.tk-hero__title {
	font-size: var(--wp--preset--font-size--display) !important;
	line-height: 0.98 !important;
	letter-spacing: -0.045em !important;
	font-weight: 720 !important;
	max-width: 14.5ch;
	margin: 32px 0 28px !important;
	text-wrap: balance;
}
.tk-hero__dek {
	color: #41464b;
	max-width: 34ch;
	line-height: 1.5;
	margin: 0 0 24px !important;
	text-wrap: pretty;
}
.tk-hero__art { display: flex; justify-content: center; }
.tk-hero__art img { width: 100%; max-width: 500px; height: auto; }

/* ---------- Home: latest thinking ---------- */

.tk-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(40px, 7vw, 96px);
}
.tk-featured .wp-block-post-template,
.tk-latest__list .wp-block-post-template,
.tk-related__list .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.tk-featured .wp-block-post > * + * { margin-top: 20px; }
.tk-featured__title {
	font-size: var(--wp--preset--font-size--large) !important;
	line-height: 1.06 !important;
	letter-spacing: -0.035em !important;
	max-width: 16ch;
	text-wrap: balance;
}
.tk-featured__dek { color: var(--wp--preset--color--secondary); max-width: 36ch; line-height: 1.5; }
.tk-featured__dek p { margin: 0; }

.tk-latest__list { border-left: var(--tk-line); padding-left: clamp(32px, 4vw, 48px); }
.tk-latest__list:not(:has(.wp-block-post)) { display: none; }
.tk-rows > .wp-block-post {
	padding-block: 22px;
	border-bottom: var(--tk-line);
}
.tk-latest__list .tk-rows > .wp-block-post:first-child { padding-top: 0; }
.tk-rows > .wp-block-post:last-child { border-bottom: 0; }
.tk-row__title { margin: 0 !important; line-height: 1.2 !important; }
.tk-row__title a:hover { color: var(--wp--preset--color--electric); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.tk-row__dek { color: var(--wp--preset--color--secondary); margin-top: 8px !important; line-height: 1.5; }
.tk-row__dek p { margin: 0; }
.tk-featured__title a:hover { color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 2px; }
.tk-empty { color: var(--wp--preset--color--secondary); }

/* ---------- Home: research areas ---------- */

.tk-topic-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 32px;
}
.tk-topic-list li { border-top: var(--tk-line); margin: 0; }
.tk-topic-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 22px 0 26px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--ui);
}
.tk-topic-list a::after { content: "→"; color: var(--wp--preset--color--electric); transition: transform var(--tk-ease); }
.tk-topic-list a:hover { color: var(--wp--preset--color--electric); }
.tk-topic-list a:hover::after { transform: translateX(3px); }

/* ---------- Newsletter invitation ---------- */

.tk-newsletter-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px 64px;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px);
	margin-top: 0 !important;
	margin-bottom: var(--wp--preset--spacing--70) !important;
}
.tk-newsletter-cta__title { margin: 0 0 12px !important; }
.tk-newsletter-cta p { margin: 0; max-width: 52ch; }

/* ---------- Footer ---------- */

.tk-footer { border-top: var(--tk-line); }
.tk-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: start;
	gap: 24px 48px;
	padding-block: 44px 56px;
}
.tk-footer__inner > * { margin: 0 !important; }
.tk-footer__word {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 6px !important;
}
.tk-footer__brand p { margin: 0; }
.tk-footer-nav { gap: 4px 24px; font-size: var(--wp--preset--font-size--small); }
.tk-footer-nav .wp-block-navigation-item__content { padding: 10px 0; display: inline-block; }
.tk-footer-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 5px; }
.tk-footer__note { padding-top: 12px; }

/* ---------- Article ---------- */

.tk-article { padding-top: clamp(48px, 8vw, 104px); }
.tk-article__head { margin-bottom: clamp(40px, 6vw, 64px); }
.tk-eyebrow-row { gap: 6px 16px; margin-bottom: 24px; }
.tk-eyebrow-row:not(:has(a, span:not(:empty))) { display: none; }
.tk-article__title {
	margin-top: 0 !important;
	margin-bottom: 24px !important;
	text-wrap: balance;
	font-weight: 750 !important;
}
.tk-dek {
	color: #41464b;
	line-height: 1.5;
	margin-top: 0 !important;
	margin-bottom: 28px !important;
}
.tk-dek p { margin: 0; }
.tk-meta {
	gap: 4px 0;
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--secondary);
	border-top: var(--tk-line);
	padding-top: 16px;
}
.tk-meta > * { margin: 0 !important; font-size: var(--wp--preset--font-size--meta) !important; color: var(--wp--preset--color--secondary); }
.tk-meta > * + *::before { content: "·"; margin: 0 10px; }

/* Long-form prose: 18px / 1.65, 700px measure from theme.json contentSize. */
.tk-prose > * + * { margin-block-start: 1.25em; }
.tk-prose p { text-wrap: pretty; hanging-punctuation: first; }
.tk-prose h2 {
	font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem) !important;
	margin-block-start: 2.2em !important;
	margin-block-end: 0.5em !important;
}
.tk-prose h3 { margin-block-start: 1.8em !important; margin-block-end: 0.4em !important; }
.tk-prose h2 + *, .tk-prose h3 + * { margin-block-start: 0 !important; }
.tk-prose ul, .tk-prose ol { padding-left: 1.25em; }
.tk-prose li + li { margin-top: 0.4em; }
.tk-prose figure, .tk-prose .wp-block-table { overflow-x: auto; }
.tk-prose table { border-collapse: collapse; width: 100%; }
.tk-prose th, .tk-prose td { border-bottom: var(--tk-line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.tk-prose img { height: auto; }
.tk-prose sup a { text-decoration: none; font-weight: 650; }

.tk-article__foot { margin-top: 48px; }
.tk-topics-line { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--secondary); }

.tk-related { margin-top: clamp(64px, 9vw, 112px); }
.tk-related:not(:has(.wp-block-post)) { display: none; }
.tk-rows--three {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 32px;
}
.tk-rows--three > .wp-block-post { border-bottom: 0; border-top: var(--tk-line); padding-top: 20px; }
.tk-rows--three .tk-kicker { margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.tk-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr); }
	.tk-hero__art img { max-width: 320px; opacity: 0.55; }
	.tk-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	/* Phones: row 1 = brand + Subscribe, row 2 = primary links + search. */
	.tk-header__inner { padding-top: 8px; row-gap: 0 !important; column-gap: 0 !important; }
	.tk-header__nav { display: contents !important; }
	.tk-brand { order: 1; border-bottom: var(--tk-line); align-self: stretch; }
	.tk-subscribe-link { order: 2; flex: 1 1 auto; text-align: right; border-bottom: var(--tk-line); margin: 0 !important; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
	.tk-subscribe-link a { border-left: 0; padding: 12px 0; }
	.tk-primary-nav { order: 3; flex: 1 1 auto; gap: 20px; margin: 0 !important; }
	.tk-header-search { order: 4; margin: 0 !important; align-self: stretch; display: flex; align-items: center; }
	.tk-primary-nav { align-self: stretch; }
	.tk-header-search .wp-block-search__button { margin-right: -10px; }
	.tk-header-search:not(.wp-block-search__searchfield-hidden) { order: 5; flex: 1 1 100% !important; padding-bottom: 10px; }
	.tk-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { width: 100% !important; }
	.tk-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { width: auto !important; flex: 1 1 auto; }
	.tk-eyebrow--accent { letter-spacing: 0.1em !important; }
	.tk-rows > .wp-block-post { padding-block: 18px; }

	.tk-hero { display: block; min-height: 0; padding-block: 56px 64px; }
	.tk-hero__art { display: none; }
	.tk-hero__title { max-width: none; margin-top: 24px !important; }

	.tk-latest__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tk-latest__list { border-left: 0; padding-left: 0; border-top: var(--tk-line); padding-top: 24px; }
	.tk-latest__list .tk-rows > .wp-block-post:first-child { padding-top: 0; }

	.tk-topic-list { grid-template-columns: minmax(0, 1fr); }
	.tk-topic-list a { padding: 16px 0 18px; }

	.tk-newsletter-cta { grid-template-columns: minmax(0, 1fr); }

	.tk-footer__inner { grid-template-columns: minmax(0, 1fr); }

	.tk-rows--three { grid-template-columns: minmax(0, 1fr); }
	.tk-rows--three > .wp-block-post { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.tk-header, .tk-footer, .tk-related, .tk-newsletter-cta { display: none !important; }
	.tk-prose a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ---------- Research integrity (plugin block) ---------- */

.tk-integrity {
	margin-top: 56px !important;
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 20px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}
.tk-integrity .tk-eyebrow { margin-bottom: 16px; color: var(--wp--preset--color--ink); }
.tk-integrity dl { margin: 0; }
.tk-integrity__row {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 4px 24px;
	padding: 12px 0;
	border-bottom: var(--tk-line);
}
.tk-integrity dt { color: var(--wp--preset--color--secondary); font-weight: 600; }
.tk-integrity dd { margin: 0; }
.tk-integrity__sources { margin: 0; padding-left: 1.2em; }
.tk-integrity__policy { margin: 14px 0 0; font-size: var(--wp--preset--font-size--meta); }
@media (max-width: 767px) { .tk-integrity__row { grid-template-columns: minmax(0, 1fr); } }

/* Concept status: calm label, never styled like a peer-review badge. */
.tk-status {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 10px;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 999px;
	color: var(--wp--preset--color--secondary);
	margin: 0;
}
.tk-status--under-investigation { border-color: var(--wp--preset--color--electric); color: var(--wp--preset--color--electric); }
.tk-status--evidence-backed { background: var(--wp--preset--color--pale-blue); border-color: var(--wp--preset--color--pale-blue); color: var(--wp--preset--color--ink); }

.tk-editor-note { font-size: 13px; color: var(--wp--preset--color--secondary); border: 1px dashed var(--wp--preset--color--hairline); padding: 12px; }

/* ---------- Generic page ---------- */

.tk-page { padding-top: clamp(48px, 8vw, 104px); padding-bottom: var(--wp--preset--spacing--70); }
.tk-page__title { margin-top: 0 !important; margin-bottom: 32px !important; text-wrap: balance; }

/* Breathing room before the footer on reading pages. */
.tk-article { padding-bottom: clamp(56px, 8vw, 96px); }
.tk-related { padding-bottom: clamp(56px, 8vw, 96px) !important; margin-top: 0 !important; }

/*
 * Legacy content compatibility: posts written under the previous theme carry
 * hard-coded size classes (has-medium-font-size on paragraphs,
 * has-x-large-font-size on headings). Core prints those with !important, which
 * would override the reading scale. Inside article text only, map them back to
 * the theme's typography. The post content itself is left untouched.
 */
.tk-prose :is(p, li, blockquote).has-small-font-size,
.tk-prose :is(p, li, blockquote).has-medium-font-size,
.tk-prose :is(p, li, blockquote).has-large-font-size { font-size: inherit !important; }
.tk-prose h2:is(.has-large-font-size, .has-x-large-font-size, .has-xx-large-font-size) { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem) !important; }
.tk-prose h3:is(.has-medium-font-size, .has-large-font-size, .has-x-large-font-size) { font-size: var(--wp--preset--font-size--h3) !important; }

/* ---------- Archives, research index, search ---------- */

.tk-archive { padding-top: clamp(48px, 8vw, 104px); padding-bottom: var(--wp--preset--spacing--70); }
.tk-archive__head { margin-bottom: clamp(32px, 5vw, 56px); }
.tk-archive__head > * + * { margin-top: 20px; }
.tk-archive__title { margin: 16px 0 0 !important; font-size: var(--wp--preset--font-size--large) !important; letter-spacing: -0.04em !important; line-height: 1.04 !important; }
.tk-archive__intro, .tk-archive__intro p { color: #41464b; max-width: 40ch; line-height: 1.5; margin: 0; }
.tk-archive__list { border-top: var(--tk-line); }
.tk-rows--list > .wp-block-post { padding-block: 26px 28px; }
.tk-rows--list .tk-row__title { max-width: 30ch; }
.tk-rows--list .tk-row__dek { max-width: 62ch; font-size: var(--wp--preset--font-size--small); }
.tk-row__meta { gap: 6px 16px; margin-bottom: 10px; }
.tk-row__meta:not(:has(a, time, p)) { display: none; }
.tk-row__meta .tk-status { padding: 3px 8px; font-size: 0.6875rem; }
.tk-row__date { font-size: 0.75rem !important; color: var(--wp--preset--color--secondary); margin: 0; }
.tk-row__dek:empty, .tk-concept-question:empty { display: none; }

.tk-archive-search { max-width: 520px; }
.tk-archive-search .wp-block-search__inside-wrapper {
	border: var(--tk-line);
	border-radius: var(--wp--custom--radius, 6px);
	background: var(--wp--preset--color--white);
	padding: 4px;
}
.tk-archive-search .wp-block-search__input { border: 0; background: transparent; font-size: 1rem; padding: 10px 12px; min-height: 44px; }
.tk-archive-search .wp-block-search__input:focus-visible { outline: none; }
.tk-archive-search .wp-block-search__inside-wrapper:focus-within { outline: 2px solid var(--wp--preset--color--electric); outline-offset: 2px; }
.tk-archive-search .wp-block-search__button { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); border-radius: 4px; min-width: 44px; min-height: 44px; margin: 0; padding: 10px; }
.tk-archive-search .wp-block-search__button svg { fill: currentColor; }

/* Compact topic links (chips). */
.tk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tk-chips li { margin: 0; }
.tk-chips a {
	display: inline-flex; align-items: center; min-height: 36px;
	padding: 6px 14px;
	border: var(--tk-line);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 550;
	transition: border-color var(--tk-ease), color var(--tk-ease);
}
.tk-chips a:hover { border-color: var(--wp--preset--color--electric); color: var(--wp--preset--color--electric); }
.tk-chips a[aria-current="page"] { background: var(--wp--preset--color--pale-blue); border-color: var(--wp--preset--color--pale-blue); }

.tk-pagination { margin-top: 40px; font-size: var(--wp--preset--font-size--small); }
.tk-pagination a { text-decoration: none; padding: 10px 4px; }
.tk-pagination .page-numbers { padding: 10px 8px; }
.tk-pagination .current { font-weight: 700; color: var(--wp--preset--color--ink); }

.tk-other-areas { margin-top: var(--wp--preset--spacing--60); padding-bottom: 0; }

/* Concepts */
.tk-concept-note { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--secondary); margin: 0 0 8px !important; }
.tk-concept-note a { color: inherit; }

/* Generic pages: About / Methodology / Newsletter */
.tk-lead { color: #41464b; line-height: 1.5 !important; }
.tk-principles, .tk-definitions { list-style: none; padding-left: 0 !important; }
.tk-principles li, .tk-definitions li { border-top: var(--tk-line); padding-top: 14px; margin-top: 14px !important; }
.tk-signup { background: var(--wp--preset--color--fog); padding: clamp(24px, 4vw, 40px); margin-top: 32px !important; }
.tk-signup__consent { color: var(--wp--preset--color--secondary); margin-top: 16px !important; }
.tk-signup form { margin: 0; }
.tk-signup input[type="email"], .tk-signup input[type="text"] {
	border: var(--tk-line) !important; border-radius: var(--wp--custom--radius, 6px) !important;
	background: var(--wp--preset--color--white) !important; min-height: 46px; padding: 10px 12px !important; font-size: 1rem !important;
}
.tk-signup button[type="submit"] {
	background: var(--wp--preset--color--ink) !important; color: var(--wp--preset--color--paper) !important;
	border: 0 !important; border-radius: var(--wp--custom--radius, 6px) !important; min-height: 46px; padding: 0 20px !important; font-weight: 650 !important; cursor: pointer;
}
.tk-signup button[type="submit"]:hover { background: var(--wp--preset--color--electric) !important; }

.tk-404__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px !important; }
.tk-404__links a { font-weight: 650; text-decoration: none; padding: 10px 0; display: inline-block; }
.tk-404__links a::after { content: " →"; }

@media (max-width: 767px) {
	.tk-rows--list > .wp-block-post { padding-block: 20px 22px; }
}

/* Concepts carry no publication date in lists: the WordPress date is when the draft was created. */
.type-tok_concept .tk-row__date { display: none; }

.tk-404 .tk-archive-search { max-width: none; }

.tk-archive__title + * { margin-top: 16px !important; }
@media (max-width: 767px) {
	/* Topic chips: one swipeable row instead of a tall stack. */
	.tk-archive__head .tk-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--tk-gutter);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-inline: calc(var(--tk-gutter) * -1) !important;
		padding-inline: var(--tk-gutter) !important;
		padding-bottom: 4px;
	}
	.tk-archive__head .tk-chips::-webkit-scrollbar { display: none; }
	.tk-archive__head .tk-chips li { flex: none; scroll-snap-align: start; }
	.tk-chips a { min-height: 40px; white-space: nowrap; }
}
.tk-signup button[type="submit"] { white-space: nowrap; flex: none; }
.tk-signup .hostinger-reach-block-form-field { flex: 1 1 auto; min-width: 0; }
