/* ==========================================================================
   Rasheed Adigun — theme styles
   Warm editorial portfolio: cream paper, ink type, amber accent. Light + dark.
   Breakpoints: 640 / 768 / 1024 / 1280px.
   ========================================================================== */

:root {
	--rd-radius: 1rem;
	--rd-bg: oklch(0.984 0.006 95);
	--rd-fg: oklch(0.185 0.006 60);
	--rd-card: oklch(1 0 0);
	--rd-secondary: oklch(0.955 0.011 92);
	--rd-secondary-fg: oklch(0.24 0.006 60);
	--rd-muted-fg: oklch(0.53 0.012 70);
	--rd-accent: oklch(0.79 0.16 78);
	--rd-accent-text: oklch(0.58 0.14 70);
	--rd-border: oklch(0.905 0.011 90);
	--rd-ring: oklch(0.6 0.03 70);
	--rd-ink: oklch(0.16 0.006 60);
	--rd-ink-fg: oklch(0.985 0.006 95);
	--rd-surface: oklch(0.968 0.01 92);
	--rd-primary: var(--rd-fg);
	--rd-primary-fg: oklch(0.985 0.006 95);
	--rd-danger: oklch(0.577 0.245 27.3);
	--rd-spectrum: linear-gradient(100deg, oklch(0.83 0.16 60), oklch(0.72 0.19 25), oklch(0.68 0.18 320), oklch(0.62 0.19 262));
	--rd-shadow-card: 0 1px 2px oklch(0.2 0.01 60 / 0.04), 0 14px 40px -20px oklch(0.2 0.01 60 / 0.18);
	--rd-shadow-lift: 0 24px 60px -28px oklch(0.2 0.01 60 / 0.35);
	--rd-font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--rd-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--rd-gutter: 1.25rem;
	--rd-header-h: 4rem;
	--rd-ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-theme="dark"] {
	--rd-bg: oklch(0.17 0.008 70);
	--rd-fg: oklch(0.965 0.006 95);
	--rd-card: oklch(0.22 0.008 70);
	--rd-secondary: oklch(0.27 0.01 70);
	--rd-secondary-fg: oklch(0.965 0.006 95);
	--rd-muted-fg: oklch(0.72 0.012 80);
	--rd-accent-text: oklch(0.82 0.15 80);
	--rd-border: oklch(1 0 0 / 12%);
	--rd-ink: oklch(0.12 0.006 60);
	--rd-ink-fg: oklch(0.98 0.006 95);
	--rd-surface: oklch(0.2 0.008 70);
	--rd-primary: oklch(0.965 0.006 95);
	--rd-primary-fg: oklch(0.19 0.008 70);
	--rd-shadow-card: 0 1px 2px oklch(0 0 0 / 0.3), 0 14px 40px -20px oklch(0 0 0 / 0.6);
	--rd-shadow-lift: 0 24px 60px -28px oklch(0 0 0 / 0.8);
	color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--rd-header-h) + 3rem); }
body {
	margin: 0;
	background: var(--rd-bg);
	color: var(--rd-fg);
	font-family: var(--rd-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .3s, color .3s;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--rd-font-display); letter-spacing: -0.03em; line-height: 1.15; color: inherit; }
a { color: inherit; }
img, video, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rd-fg); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in oklch, var(--rd-accent) 45%, transparent); }

:where(.rd-w, .rd-header, .rd-footer, .rd-entry-header, .rd-aside, .rd-related, .rd-card, .rd-search) :where(h1, h2, h3, h4, p, ol, ul, dl, dd, dt, figure) { margin: 0; padding: 0; }
:where(.rd-w, .rd-header, .rd-footer, .rd-aside, .rd-related, .rd-search) :where(ol, ul) { list-style: none; }
:where(.rd-w, .rd-header, .rd-footer, .rd-aside) a { text-decoration: none; }

.rd-container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--rd-gutter); }
.rd-container--medium { max-width: 62rem; }
.rd-container--narrow { max-width: 48rem; }
.rd-container--flush { max-width: none; padding-inline: 0; }
.rd-main { display: block; outline: none; }

.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; }
.rd-skip-link { position: absolute; left: -9999px; top: .75rem; z-index: 1000; padding: .75rem 1rem; border-radius: .75rem; background: var(--rd-primary); color: var(--rd-primary-fg); font-weight: 600; }
.rd-skip-link:focus { left: .75rem; }

/* Utilities ------------------------------------------------------------- */

.rd-muted { color: var(--rd-muted-fg); }
.rd-small { font-size: .875rem; }
.rd-block { display: block; }
.rd-strong { font-weight: 600; color: var(--rd-fg); }
.rd-accent { color: var(--rd-accent-text); }
.rd-mt { margin-top: 2.5rem; }
.rd-mt-sm { margin-top: 1rem !important; }
.rd-mt-lg { margin-top: 4rem; }
.rd-text { color: var(--rd-fg) !important; }
@media (max-width: 639px) { .rd-hide-sm { display: none !important; } }

/* Type ------------------------------------------------------------------ */

.rd-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .4rem .9rem; border: 1px solid var(--rd-border); border-radius: 999px;
	background: var(--rd-card);
	font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted-fg);
}
.rd-label { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted-fg); }
.rd-display { margin-top: 1.25rem; font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.02; max-width: 48rem; }
.rd-h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 700; }
.rd-h3 { font-size: 1.5rem; font-weight: 700; }
.rd-lead { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; color: var(--rd-muted-fg); }
.rd-question { margin-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--rd-accent-text); }
.rd-eyebrow + .rd-h2, .rd-eyebrow + .rd-display { margin-top: 1.25rem; }
.rd-h2 { margin-top: 0; }
.rd-heading .rd-eyebrow + .rd-h2 { margin-top: 1.25rem; }

/* Buttons --------------------------------------------------------------- */

.rd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: 999px;
	font-size: .875rem; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer;
	transition: transform .25s var(--rd-ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.rd-btn:hover { transform: translateY(-2px); }
.rd-btn--primary { background: var(--rd-primary); color: var(--rd-primary-fg); }
.rd-btn--primary:hover { box-shadow: var(--rd-shadow-lift); color: var(--rd-primary-fg); }
.rd-btn--ghost { border-color: var(--rd-border); background: var(--rd-card); color: var(--rd-fg); }
.rd-btn--ghost:hover { background: var(--rd-secondary); }
.rd-btn--light { background: var(--rd-bg); color: var(--rd-fg); }
.rd-btn--sm { padding: .6rem 1.15rem; }
.rd-btn--block { display: flex; width: 100%; }
.rd-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.rd-more { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 600; color: var(--rd-fg); text-decoration: none; }
.rd-more .rd-icon { transition: transform .25s var(--rd-ease); }
a.rd-more:hover { text-decoration: underline; text-underline-offset: 3px; }
a:hover > .rd-more .rd-icon, a.rd-more:hover .rd-icon { transform: translate(2px, -2px); }
.rd-icon { flex-shrink: 0; vertical-align: middle; }
.rd-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--rd-border); border-radius: 999px;
	background: transparent; color: var(--rd-muted-fg); cursor: pointer; text-decoration: none;
	transition: color .2s, background-color .2s, border-color .2s;
}
.rd-icon-btn:hover { color: var(--rd-fg); background: var(--rd-secondary); }

/* Sections -------------------------------------------------------------- */

.rd-section { position: relative; }
.rd-bg--default { background: transparent; }
.rd-bg--surface { background: var(--rd-surface); }
.rd-bg--ink { background: var(--rd-ink); color: var(--rd-ink-fg); --rd-muted-fg: oklch(0.985 0.006 95 / 0.7); --rd-card: oklch(1 0 0 / 0.06); --rd-border: oklch(1 0 0 / 0.14); --rd-fg: var(--rd-ink-fg); }
.rd-pt--none { padding-top: 0; } .rd-pb--none { padding-bottom: 0; }
.rd-pt--xs { padding-top: 2rem; } .rd-pb--xs { padding-bottom: 2rem; }
.rd-pt--s { padding-top: 3.5rem; } .rd-pb--s { padding-bottom: 3.5rem; }
.rd-pt--m { padding-top: 4rem; } .rd-pb--m { padding-bottom: 4rem; }
.rd-pt--l { padding-top: 5rem; } .rd-pb--l { padding-bottom: 5rem; }
.rd-pt--xl { padding-top: 6rem; } .rd-pb--xl { padding-bottom: 6rem; }
@media (min-width: 768px) {
	.rd-pt--xl { padding-top: 7.5rem; } .rd-pb--xl { padding-bottom: 7.5rem; }
}
.rd-heading { max-width: 48rem; }
.rd-heading--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
.rd-heading--split .rd-heading__text { max-width: 42rem; }
.rd-heading + .rd-mt, .rd-heading + * { margin-top: 2.5rem; }

/* Cards & grids --------------------------------------------------------- */

.rd-card {
	position: relative; display: block; padding: 1.75rem;
	background: var(--rd-card); border: 1px solid var(--rd-border);
	border-radius: calc(var(--rd-radius) + .5rem); box-shadow: var(--rd-shadow-card);
}
.rd-card--sm { padding: 1.1rem 1.25rem; font-size: .9rem; }
.rd-card--link { color: inherit; text-decoration: none; transition: transform .3s var(--rd-ease), box-shadow .3s var(--rd-ease); }
.rd-card--link:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow-lift); }
.rd-card__title { margin-top: 1rem; font-family: var(--rd-font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.rd-card > .rd-card__title:first-child, .rd-card > .rd-label + .rd-card__title { margin-top: .75rem; }
.rd-card > .rd-card__title:first-child { margin-top: 0; }
.rd-card__title--lg { font-size: 1.25rem; }
.rd-card__title a { text-decoration: none; }
.rd-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-card__text { display: block; margin-top: .75rem; font-size: .9rem; line-height: 1.65; color: var(--rd-muted-fg); }
.rd-card .rd-more { margin-top: 1.25rem; }
.rd-card .rd-small.rd-muted { margin-top: .25rem; }
.rd-grid { display: grid; gap: 1.5rem; list-style: none; padding: 0; }
@media (min-width: 768px) {
	.rd-grid--2, .rd-grid--3, .rd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.rd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rd-stack { display: grid; gap: 1.25rem; list-style: none; padding: 0; }
.rd-stack--tight { gap: .75rem; }
.rd-badge {
	display: inline-flex; align-items: center; padding: .25rem .75rem; border-radius: 999px;
	background: var(--rd-secondary); color: var(--rd-secondary-fg);
	font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; line-height: 1.5;
}
a.rd-badge:hover { background: var(--rd-border); }
.rd-badge--accent { background: color-mix(in oklch, var(--rd-accent) 18%, transparent); color: var(--rd-accent-text); }

/* Lists */
.rd-dots, .rd-bullets, .rd-plain-list { margin-top: 1.25rem; padding: 0; list-style: none; font-size: .9rem; }
.rd-dots li, .rd-bullets li { position: relative; padding-left: 1.1rem; color: var(--rd-muted-fg); line-height: 1.6; }
.rd-dots li + li, .rd-bullets li + li { margin-top: .5rem; }
.rd-dots li::before, .rd-bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: .375rem; height: .375rem; border-radius: 50%; background: var(--rd-accent); }
.rd-bullets li::before { background: color-mix(in oklch, var(--rd-fg) 40%, transparent); }
.rd-plain-list li + li { margin-top: .35rem; }
.rd-card > .rd-label + .rd-plain-list, .rd-card > .rd-label + .rd-dots { margin-top: 1rem; }

/* Chips */
.rd-chips { display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.rd-chip {
	display: inline-flex; align-items: center; padding: .5rem 1rem; border: 1px solid var(--rd-border); border-radius: 999px;
	background: var(--rd-card); color: var(--rd-muted-fg); font-size: .875rem; line-height: 1.3; text-decoration: none;
}
a.rd-chip, .rd-chip--link { transition: color .2s, background-color .2s, border-color .2s; }
a.rd-chip:hover, .rd-chip--link:hover, .rd-chip--link.is-active { color: var(--rd-fg); border-color: var(--rd-fg); }
.rd-chip--soft { border-color: transparent; background: var(--rd-secondary); color: var(--rd-secondary-fg); }
.rd-chips--sm .rd-chip { padding: .3rem .75rem; font-size: .8rem; }
.rd-chips-wrap .rd-label + .rd-chips { margin-top: 1rem; }
.rd-split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .rd-split { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.rd-chips-section--split .rd-heading + * { margin-top: 0; }

/* Filters */
.rd-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-filter {
	display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border: 1px solid var(--rd-border); border-radius: 999px;
	background: var(--rd-card); color: var(--rd-muted-fg); font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.rd-filter:hover { background: var(--rd-secondary); color: var(--rd-fg); }
.rd-filter[aria-pressed="true"] { border-color: var(--rd-primary); background: var(--rd-primary); color: var(--rd-primary-fg); font-weight: 600; }
.rd-filter__count { font-size: .75rem; opacity: .65; }
.rd-empty { margin-top: 3rem; text-align: center; color: var(--rd-muted-fg); }
.rd-empty[hidden] { display: none; }
.rd-filter-hidden { display: none !important; }

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

.rd-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid color-mix(in oklch, var(--rd-border) 70%, transparent); background: color-mix(in oklch, var(--rd-bg) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.admin-bar .rd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rd-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rd-header { top: 0; } }
.rd-topbar { background: var(--rd-ink); color: var(--rd-ink-fg); }
.rd-topbar__inner { display: flex; align-items: center; justify-content: center; gap: .5rem; padding-block: .5rem; font-size: .72rem; font-weight: 500; letter-spacing: .02em; text-align: center; }
.rd-topbar__dot { opacity: .4; }
.rd-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--rd-header-h); }
.rd-logo { font-family: var(--rd-font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.rd-logo span { color: var(--rd-muted-fg); }
.rd-nav { display: none; }
.rd-nav__list { display: flex; align-items: center; gap: .125rem; margin: 0; padding: 0; list-style: none; }
.rd-nav__list > li { position: relative; }
.rd-nav__list a { display: block; padding: .5rem .75rem; border-radius: 999px; font-size: .875rem; font-weight: 500; color: var(--rd-muted-fg); text-decoration: none; transition: color .2s, background-color .2s; }
.rd-nav__list a:hover { color: var(--rd-fg); }
.rd-nav__list .current-menu-item > a, .rd-nav__list .current_page_item > a, .rd-nav__list .current-menu-ancestor > a, .rd-nav__list .current_page_parent > a { background: var(--rd-secondary); color: var(--rd-fg); }
.rd-nav__list .sub-menu { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 13rem; padding: .5rem; margin: 0; list-style: none; background: var(--rd-card); border: 1px solid var(--rd-border); border-radius: 1rem; box-shadow: var(--rd-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; }
.rd-nav__list li:hover > .sub-menu, .rd-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rd-header__actions { display: flex; align-items: center; gap: .5rem; }
.rd-theme-icon { display: inline-flex; }
.rd-theme-icon--sun, [data-theme="dark"] .rd-theme-icon--moon { display: none; }
[data-theme="dark"] .rd-theme-icon--sun { display: inline-flex; }
.rd-cart-count { position: absolute; top: -4px; right: -4px; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--rd-accent); color: oklch(0.2 0.03 60); font-size: .65rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.rd-cart-count[hidden] { display: none; }
.rd-menu-toggle__close, .rd-header.is-open .rd-menu-toggle__open { display: none; }
.rd-header.is-open .rd-menu-toggle__close { display: inline-flex; }
.rd-mobile-nav { border-top: 1px solid var(--rd-border); max-height: calc(100vh - 7rem); overflow-y: auto; }
.rd-mobile-nav[hidden] { display: none; }
.rd-mobile-nav .rd-container { padding-block: .5rem 1.25rem; }
.rd-mobile-nav__list { margin: 0; padding: 0; list-style: none; }
.rd-mobile-nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid color-mix(in oklch, var(--rd-border) 60%, transparent); font-size: .95rem; font-weight: 500; color: var(--rd-muted-fg); text-decoration: none; }
.rd-mobile-nav__list .current-menu-item > a { color: var(--rd-fg); }
.rd-mobile-nav__list .sub-menu { padding-left: 1rem; list-style: none; }
.rd-mobile-nav .rd-btn { margin-top: 1.25rem; }
@media (min-width: 1024px) {
	.rd-nav { display: block; }
	.rd-menu-toggle, .rd-mobile-nav { display: none !important; }
}

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

.rd-footer { margin-top: 0; border-top: 1px solid var(--rd-border); background: var(--rd-surface); }
.rd-footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .rd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rd-footer__grid { grid-template-columns: 1.4fr .8fr .8fr 1fr; } }
.rd-footer__name { font-family: var(--rd-font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.rd-footer__brand .rd-muted { margin-top: .75rem; max-width: 24rem; font-size: .875rem; }
.rd-footer .rd-label { margin: 0; }
.rd-footer__list { margin-top: 1rem; padding: 0; list-style: none; font-size: .875rem; }
.rd-footer__list li + li { margin-top: .5rem; }
.rd-footer__list a { color: var(--rd-muted-fg); text-decoration: none; }
.rd-footer__list a:hover { color: var(--rd-fg); }
.rd-footer__list .sub-menu { display: none; }
.rd-footer__contact li { display: flex; align-items: center; gap: .5rem; color: var(--rd-muted-fg); overflow-wrap: anywhere; }
.rd-footer__bottom { border-top: 1px solid var(--rd-border); padding-block: 1.25rem; font-size: .75rem; color: var(--rd-muted-fg); }

/* Breadcrumbs & page header -------------------------------------------- */

.rd-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--rd-muted-fg); }
.rd-breadcrumbs li { display: inline-flex; align-items: center; gap: .375rem; }
.rd-breadcrumbs .rd-icon { opacity: .6; }
.rd-breadcrumbs a { color: inherit; text-decoration: none; }
.rd-breadcrumbs a:hover { color: var(--rd-fg); }
.rd-breadcrumbs [aria-current] { color: var(--rd-fg); }
.rd-breadcrumbs + .rd-page-header, .rd-breadcrumbs + .rd-about__grid { margin-top: 1.5rem; }
.rd-page-header { max-width: 48rem; }
.rd-page-header .rd-small { margin-top: 1rem; }
.rd-page-header .rd-page-header__meta { margin-top: 1.5rem; }
.rd-page-header .rd-label { margin-top: .75rem; }
.rd-page-title { margin: 1.5rem 0 2rem; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; }
.rd-page { padding-block: 3.5rem 5rem; }

/* Hero ------------------------------------------------------------------ */

.rd-hero { overflow: hidden; }
.rd-hero__glow { position: absolute; inset: -10rem 0 auto; height: 20rem; background: var(--rd-spectrum); opacity: .18; filter: blur(64px); pointer-events: none; }
.rd-hero__grid { position: relative; display: grid; align-items: center; gap: 3rem; padding-block: 1rem; }
@media (min-width: 768px) { .rd-hero__grid { padding-block: 2.5rem; } }
@media (min-width: 1024px) { .rd-hero__grid { grid-template-columns: 1.15fr .85fr; } }
.rd-hero__title { margin-top: 1.5rem; font-size: clamp(2.75rem, 7vw, 4.5rem); font-weight: 700; line-height: .95; letter-spacing: -0.04em; }
.rd-hero__muted { display: block; color: var(--rd-muted-fg); }
.rd-hero__text .rd-lead { margin-top: 1.5rem; max-width: 36rem; }
.rd-hero__media { position: relative; width: 100%; max-width: 24rem; margin-inline: auto; }
.rd-hero__frame { position: absolute; inset: -.75rem; border-radius: 2rem; background: var(--rd-spectrum); opacity: .7; }
.rd-hero__img { position: relative; display: block; width: 100%; border-radius: 1.75rem; aspect-ratio: 1; object-fit: cover; }

/* Stats & news ---------------------------------------------------------- */

.rd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 2rem; }
@media (min-width: 768px) { .rd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rd-stats__item { display: flex; flex-direction: column-reverse; }
.rd-stats__value { font-family: var(--rd-font-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rd-stats__label { margin-top: .25rem; font-size: .875rem; color: var(--rd-muted-fg); }
.rd-news { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1.5rem; }
.rd-news__text { font-weight: 600; }
.rd-news .rd-more { margin-top: 0; }

/* Project, post & publication cards ------------------------------------ */

.rd-project-card { display: flex; flex-direction: column; overflow: hidden; padding: 1.5rem; }
.rd-project-card__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rd-project-card__media { display: block; margin-top: 1.25rem; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--rd-border); border-radius: .75rem; background: var(--rd-surface); }
.rd-project-card__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--rd-ease); }
.rd-project-card:hover .rd-project-card__img { transform: scale(1.03); }
.rd-project-card .rd-card__title { margin-top: 1.25rem; font-size: 1.25rem; }
.rd-project-card .rd-card__text { flex: 1; margin-top: 1rem; }
.rd-project-card .rd-more { margin-top: 1.5rem; }

.rd-post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rd-post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rd-surface); }
.rd-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rd-ease); }
.rd-post-card:hover .rd-post-card__media img { transform: scale(1.03); }
.rd-post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.rd-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--rd-muted-fg); }
.rd-post-card .rd-card__title { margin-top: .9rem; font-size: 1.2rem; }
.rd-post-card .rd-card__text { flex: 1; }
.rd-post-card { transition: transform .3s var(--rd-ease), box-shadow .3s var(--rd-ease); }
.rd-post-card:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow-lift); }
.rd-post-card:focus-within { box-shadow: var(--rd-shadow-lift); }
@media (min-width: 1024px) {
	.rd-post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
	.rd-post-card--featured .rd-post-card__media { aspect-ratio: auto; min-height: 100%; }
	.rd-post-card--featured .rd-post-card__body { justify-content: center; padding: 2.5rem; }
	.rd-post-card--featured .rd-card__title { font-size: 1.85rem; }
}

.rd-pub { display: block; padding: 1.75rem; }
.rd-pub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted-fg); }
.rd-pub .rd-card__title { margin-top: 1rem; font-size: 1.25rem; }
.rd-pub .rd-card__text { max-width: 48rem; }
.rd-pub__citation { margin-top: .75rem; font-size: .9rem; line-height: 1.7; }
.rd-pub--citation .rd-more { margin-top: 1rem; }

/* Timeline & CV --------------------------------------------------------- */

.rd-timeline { position: relative; display: grid; gap: 1.5rem; margin: 0; padding: 0 0 0 1.5rem; list-style: none; border-left: 1px solid var(--rd-border); }
.rd-timeline__item { position: relative; }
.rd-timeline__dot { position: absolute; left: calc(-1.5rem - 5px); top: 1.85rem; width: 10px; height: 10px; border: 2px solid var(--rd-bg); border-radius: 50%; background: var(--rd-accent); }
.rd-timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.rd-timeline__head .rd-card__title { margin: 0; font-size: 1.05rem; }
.rd-timeline .rd-card__text { margin-top: .75rem; }
.rd-timeline .rd-bullets { margin-top: .75rem; }
.rd-cv-section .rd-card > .rd-icon + .rd-card__title { margin-top: 1rem; }
.rd-cv-section .rd-card > .rd-label + .rd-card__title { margin-top: .75rem; }
.rd-cv-section .rd-card > .rd-label:not(:first-child) { margin-top: .5rem; }

/* Research themes ------------------------------------------------------- */

.rd-themes { border-block: 1px solid var(--rd-border); }
.rd-themes__item { padding-block: 1.75rem; scroll-margin-top: 7rem; }
.rd-themes__item + .rd-themes__item { border-top: 1px solid var(--rd-border); }
.rd-themes__grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .rd-themes__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; } }
.rd-themes__title { font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.rd-themes__title a { text-decoration: none; }
.rd-themes__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-themes__links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem !important; }
.rd-themes__item:target { background: color-mix(in oklch, var(--rd-accent) 8%, transparent); }

/* Profiles, about, contact --------------------------------------------- */

.rd-profile { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; height: 100%; padding: 1.25rem; }
.rd-profile__main { display: flex; align-items: flex-start; gap: .75rem; }
.rd-profile__label { display: block; font-size: .9rem; font-weight: 700; }
.rd-about__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .rd-about__grid { grid-template-columns: 1.2fr .8fr; } }
.rd-about__bio { margin-top: 1.5rem; font-size: 1.125rem; color: var(--rd-muted-fg); }
.rd-about__side { display: grid; gap: 1.5rem; align-content: start; }
.rd-about__img { display: block; width: 100%; border-radius: 1.75rem; aspect-ratio: 1; object-fit: cover; }
.rd-contact__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .rd-contact__grid { grid-template-columns: 1fr 1fr; } }
.rd-channels { align-content: start; }
.rd-channel__value { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; text-decoration: none; }
a.rd-channel__value:hover { text-decoration: underline; }
.rd-contact__form { margin-top: 3rem; padding: 2rem; }
.rd-contact__form .rd-h3 { margin-bottom: 1.5rem; }

/* Forms (Contact Form 7, comments, search) ----------------------------- */

.rd-form .wpcf7 form { margin: 0; }
.rd-form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .rd-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-span-2 { grid-column: span 2; } }
.rd-field { display: block; margin: 0; }
.rd-field__label { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 600; color: var(--rd-fg); }
.rd-form .wpcf7-form-control-wrap { display: block; }
.rd-form input[type="text"], .rd-form input[type="email"], .rd-form input[type="tel"], .rd-form input[type="url"], .rd-form select, .rd-form textarea,
.rd-comments input:not([type="submit"]):not([type="checkbox"]), .rd-comments textarea, .rd-searchform input[type="search"] {
	display: block; width: 100%; padding: .75rem 1rem;
	border: 1px solid var(--rd-border); border-radius: .85rem; background: var(--rd-bg); color: var(--rd-fg);
	font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.rd-form select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23857c70' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.rd-form textarea, .rd-comments textarea { min-height: 9rem; resize: vertical; }
.rd-form input:focus, .rd-form select:focus, .rd-form textarea:focus, .rd-comments input:focus, .rd-comments textarea:focus, .rd-searchform input:focus { outline: none; border-color: var(--rd-fg); box-shadow: 0 0 0 3px color-mix(in oklch, var(--rd-accent) 35%, transparent); }
.rd-form .wpcf7-not-valid { border-color: var(--rd-danger) !important; }
.rd-form .wpcf7-not-valid-tip { display: block; margin-top: .4rem; font-size: .8rem; color: var(--rd-danger); }
.rd-consent { font-size: .875rem; color: var(--rd-muted-fg); }
.rd-form .wpcf7-list-item { margin: 0; }
.rd-form .wpcf7-list-item label { display: inline-flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.rd-form input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin-top: .2rem; accent-color: var(--rd-fg); }
.rd-form .wpcf7-submit { border: 0; }
.rd-form .wpcf7-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.rd-form .wpcf7-spinner { vertical-align: middle; }
.rd-form .wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--rd-border); border-radius: .85rem; font-size: .9rem; }
.rd-form .wpcf7 form.sent .wpcf7-response-output { border-color: oklch(0.65 0.14 150); background: oklch(0.65 0.14 150 / 0.08); }
.rd-form .wpcf7 form.invalid .wpcf7-response-output, .rd-form .wpcf7 form.failed .wpcf7-response-output, .rd-form .wpcf7 form.spam .wpcf7-response-output { border-color: var(--rd-danger); background: color-mix(in oklch, var(--rd-danger) 7%, transparent); }
.rd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rd-searchform { display: flex; gap: .5rem; margin-top: 1.75rem; max-width: 36rem; }
.rd-searchform input[type="search"] { flex: 1; border-radius: 999px; padding-inline: 1.25rem; }

/* CTA, author, notes ---------------------------------------------------- */

.rd-cta { overflow: hidden; padding: 4rem 2rem; border-radius: 2rem; background: var(--rd-ink); color: var(--rd-ink-fg); text-align: center; }
[data-theme="dark"] .rd-cta { border: 1px solid var(--rd-border); }
.rd-cta .rd-h2 { max-width: 42rem; margin-inline: auto; }
.rd-cta p { max-width: 36rem; margin: 1rem auto 0 !important; font-size: .9rem; opacity: .7; }
.rd-cta .rd-btn { margin-top: 2rem; }
.rd-author { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
.rd-author__img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.rd-author__body { flex: 1; min-width: 14rem; }
.rd-author__name { margin-top: .25rem !important; font-family: var(--rd-font-display); font-size: 1.125rem; font-weight: 700; }
.rd-author .rd-small { margin-top: .5rem; line-height: 1.6; }
.rd-author .rd-more { margin-top: .75rem; }
.rd-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding: 2rem; }
.rd-note .rd-small { max-width: 32rem; margin: 0; }
.rd-note-text { color: var(--rd-muted-fg); font-size: .9rem; }
.rd-note-text a { color: var(--rd-fg); font-weight: 600; }
.rd-empty-state { display: grid; justify-items: start; gap: .75rem; padding: 2.5rem; }
.rd-empty-state .rd-actions { margin-top: .5rem; }
.rd-editor-note { margin-top: 1rem; padding: .75rem 1rem; border: 1px dashed var(--rd-border); border-radius: .75rem; font-size: .8rem; color: var(--rd-muted-fg); }

/* Jump links ------------------------------------------------------------ */

.rd-jump--sticky { position: sticky; top: calc(var(--rd-header-h) + 2rem); z-index: 30; }
.rd-jump--sticky nav { padding: .6rem 0; background: color-mix(in oklch, var(--rd-bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rd-jump .rd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rd-jump .rd-chip { white-space: nowrap; }

/* Single posts, projects, publications --------------------------------- */

.rd-entry-header { max-width: none; }
.rd-back { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1.5rem; font-size: .875rem; font-weight: 500; color: var(--rd-muted-fg); text-decoration: none; }
.rd-back:hover { color: var(--rd-fg); }
.rd-entry-header__inner { max-width: 48rem; margin-top: 2rem; }
.rd-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .875rem; color: var(--rd-muted-fg); }
.rd-entry-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.rd-entry-title { margin-top: 1.25rem !important; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; line-height: 1.08; }
.rd-entry-header .rd-lead { margin-top: 1.25rem; }
.rd-authors { margin-top: 1.25rem !important; }
.rd-authors + .rd-small { margin-top: .5rem; }
.rd-byline { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem !important; font-size: .9rem; color: var(--rd-muted-fg); }
.rd-byline a { font-weight: 600; color: var(--rd-fg); text-decoration: none; }
.rd-byline__img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.rd-entry-image { margin-top: 2.5rem !important; }
.rd-entry-image img { display: block; width: 100%; border: 1px solid var(--rd-border); border-radius: 1rem; background: var(--rd-card); box-shadow: var(--rd-shadow-lift); }
.rd-entry-image figcaption { margin-top: .75rem; font-size: .85rem; color: var(--rd-muted-fg); }
.rd-single { padding-block: 3rem 5rem; }
.rd-single__grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .rd-single__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); } }
.rd-single__author { margin-top: 2.5rem; }
.rd-single-template > .elementor { min-height: 40vh; }
.rd-casestudy { padding: 2rem; }
.rd-casestudy__overview { margin-top: 1rem !important; line-height: 1.75; }
.rd-divider { height: 1px; margin: 2rem 0; background: var(--rd-border); }
.rd-citation { margin-top: 1rem !important; line-height: 1.7; }
.rd-casestudy [data-rd-copy] { margin-top: 1rem; }
.rd-aside { display: grid; gap: 1.5rem; align-content: start; }
.rd-aside .rd-card { padding: 1.5rem; }
@media (min-width: 1024px) { .rd-aside--sticky { position: sticky; top: calc(var(--rd-header-h) + 3.5rem); } }
.rd-toc ol { margin: 1rem 0 0; padding: 0; list-style: none; border-left: 1px solid var(--rd-border); font-size: .875rem; }
.rd-toc li a { display: block; margin-left: -1px; padding: .3rem 0 .3rem .9rem; border-left: 2px solid transparent; color: var(--rd-muted-fg); text-decoration: none; line-height: 1.4; transition: color .2s, border-color .2s; }
.rd-toc li.rd-toc__l3 a { padding-left: 1.75rem; font-size: .82rem; }
.rd-toc li a:hover { color: var(--rd-fg); }
.rd-toc li a.is-active { border-left-color: var(--rd-accent); color: var(--rd-fg); font-weight: 600; }
.rd-share ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem !important; }
.rd-widget + .rd-widget { margin-top: 0; }

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

.rd-prose { font-size: 1.0625rem; line-height: 1.8; overflow-wrap: break-word; }
.rd-prose > * { margin-top: 0; margin-bottom: 1.35rem; }
.rd-prose > *:last-child { margin-bottom: 0; }
.rd-prose h2, .rd-prose h3, .rd-prose h4 { margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 700; scroll-margin-top: 7rem; }
.rd-prose h2 { font-size: 1.75rem; }
.rd-prose h3 { font-size: 1.35rem; }
.rd-prose h4 { font-size: 1.1rem; }
.rd-prose a { color: var(--rd-fg); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--rd-accent) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rd-prose a:hover { text-decoration-color: var(--rd-fg); }
.rd-prose ul, .rd-prose ol { padding-left: 1.4rem; }
.rd-prose li + li { margin-top: .4rem; }
.rd-prose li::marker { color: var(--rd-accent-text); }
.rd-prose blockquote { margin-inline: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--rd-accent); font-family: var(--rd-font-display); font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.01em; }
.rd-prose blockquote cite { display: block; margin-top: .5rem; font-family: var(--rd-font); font-size: .9rem; font-style: normal; color: var(--rd-muted-fg); }
.rd-prose img { border-radius: .85rem; }
.rd-prose figure { margin-inline: 0; }
.rd-prose figcaption, .rd-prose .wp-element-caption { margin-top: .6rem; font-size: .85rem; color: var(--rd-muted-fg); text-align: center; }
.rd-prose code { padding: .15em .4em; border-radius: .35rem; background: var(--rd-secondary); font-size: .88em; }
.rd-prose pre { overflow-x: auto; padding: 1.1rem 1.25rem; border-radius: .85rem; background: var(--rd-ink); color: var(--rd-ink-fg); font-size: .875rem; line-height: 1.6; }
.rd-prose pre code { padding: 0; background: none; }
.rd-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rd-prose th, .rd-prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--rd-border); text-align: left; }
.rd-prose hr { height: 1px; border: 0; background: var(--rd-border); margin-block: 2.5rem; }
.rd-prose .alignwide { max-width: none; }
.rd-prose .aligncenter { margin-inline: auto; }
.rd-prose--case { margin-top: 0; font-size: 1rem; }
.rd-prose--case h2 { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rd-border); font-size: 1.125rem; }
.rd-prose--case > h2:first-child { margin-top: 2rem; }
.rd-prose--case p, .rd-prose--case li { color: var(--rd-muted-fg); }
.rd-prose--case ul { padding-left: 0; list-style: none; font-size: .9rem; }
.rd-prose--case ul li { position: relative; padding-left: 1.1rem; }
.rd-prose--case ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: .375rem; height: .375rem; border-radius: 50%; background: color-mix(in oklch, var(--rd-fg) 40%, transparent); }
.rd-casestudy > .rd-prose--case:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rd-tags { margin-top: 2rem; }
.rd-page-links { margin-top: 2rem; font-weight: 600; }

/* Gallery & lightbox ---------------------------------------------------- */

.rd-gallery-block { margin-top: 4rem; }
.rd-gallery-list { display: grid; gap: 2rem; margin-top: 1.5rem; }
.rd-gallery-list figure { margin: 0; }
.rd-gallery-list__link { display: block; cursor: zoom-in; }
.rd-gallery-list img { display: block; width: 100%; border: 1px solid var(--rd-border); border-radius: 1rem; background: var(--rd-card); }
.rd-gallery-list figcaption { margin-top: .75rem; font-size: .875rem; color: var(--rd-muted-fg); }
.rd-lightbox { position: fixed; inset: 0; z-index: 100001; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; background: oklch(0.12 0.006 60 / 0.94); color: #fff; }
.rd-lightbox[hidden] { display: none; }
.rd-lightbox img { max-width: min(100%, 72rem); max-height: 80vh; border-radius: .75rem; object-fit: contain; }
.rd-lightbox p { margin: 1rem 0 0; max-width: 48rem; font-size: .9rem; text-align: center; opacity: .8; }
.rd-lightbox button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid oklch(1 0 0 / .25); border-radius: 50%; background: oklch(1 0 0 / .08); color: #fff; cursor: pointer; }
.rd-lightbox__close { top: 1rem; right: 1rem; }
.rd-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.rd-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Related, pagination, post nav, comments ------------------------------ */

.rd-related { margin-top: 3rem; }
.rd-related .rd-h3 { margin-bottom: 1.5rem; }
.rd-related__grid { display: grid; gap: .75rem; margin-top: 1rem !important; }
@media (min-width: 640px) { .rd-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-related__row { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; height: 100%; padding: 1.15rem 1.25rem; }
.rd-related__row .rd-label { font-size: .65rem; letter-spacing: .14em; }
.rd-related__title { display: block; margin-top: .35rem; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.rd-related__row > .rd-icon { margin-top: .25rem; color: var(--rd-muted-fg); }
.rd-pagination { margin-top: 3rem; }
.rd-pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rd-pagination a, .rd-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .9rem; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-card); font-size: .875rem; font-weight: 500; text-decoration: none; }
.rd-pagination .current { border-color: var(--rd-primary); background: var(--rd-primary); color: var(--rd-primary-fg); }
.rd-pagination a:hover { background: var(--rd-secondary); }
.rd-post-nav { margin-top: 3rem; }
.rd-post-nav .nav-links { display: grid; gap: 1rem; }
@media (min-width: 640px) { .rd-post-nav .nav-links { grid-template-columns: 1fr 1fr; } .rd-post-nav .nav-next { text-align: right; } }
.rd-post-nav a { display: block; height: 100%; padding: 1.25rem; border: 1px solid var(--rd-border); border-radius: 1.25rem; background: var(--rd-card); text-decoration: none; transition: transform .3s var(--rd-ease); }
.rd-post-nav a:hover { transform: translateY(-3px); }
.rd-post-nav .nav-next .rd-label { justify-content: flex-end; }
.rd-post-nav__title { display: block; margin-top: .35rem; font-weight: 600; }
.rd-comments { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--rd-border); }
.rd-comments__list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.rd-comments__list .children { list-style: none; padding-left: 1.5rem; }
.rd-comments .comment-body { margin-bottom: 1.25rem; padding: 1.25rem; border: 1px solid var(--rd-border); border-radius: 1rem; background: var(--rd-card); }
.rd-comments .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--rd-muted-fg); }
.rd-comments .comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: .4rem; }
.rd-comments .comment-author .fn a, .rd-comments .comment-author .fn { color: var(--rd-fg); font-style: normal; font-weight: 600; }
.rd-comments .says { display: none; }
.rd-comments .comment-respond { margin-top: 2rem; }
.rd-comments .comment-form { display: grid; gap: 1rem; margin-top: 1rem; }
.rd-comments .comment-form label { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; }
.rd-comments .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; }
.rd-comments .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.rd-comments .form-submit { margin: 0; }

/* Live search, progress, back to top ----------------------------------- */

.rd-search { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 1rem; }
.rd-search[hidden] { display: none; }
.rd-search__backdrop { position: absolute; inset: 0; background: oklch(0.12 0.006 60 / 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: rd-fade .2s ease both; }
.rd-search__panel { position: relative; width: 100%; max-width: 40rem; overflow: hidden; border: 1px solid var(--rd-border); border-radius: 1.25rem; background: var(--rd-card); box-shadow: var(--rd-shadow-lift); animation: rd-pop .25s var(--rd-ease) both; }
.rd-search__form { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rd-border); color: var(--rd-muted-fg); }
.rd-search__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--rd-fg); font-size: 1.05rem; outline: none; }
.rd-search__input::-webkit-search-cancel-button { display: none; }
.rd-search__kbd { padding: .15rem .45rem; border: 1px solid var(--rd-border); border-radius: .4rem; font-family: inherit; font-size: .7rem; }
.rd-search__results { max-height: 55vh; overflow-y: auto; margin: 0; padding: .5rem; list-style: none; }
.rd-search__results:empty { display: none; }
.rd-search__results a { display: block; padding: .75rem .9rem; border-radius: .85rem; text-decoration: none; }
.rd-search__results a:hover, .rd-search__results [aria-selected="true"] a { background: var(--rd-secondary); }
.rd-search__type { font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted-fg); }
.rd-search__title { display: block; margin-top: .15rem; font-weight: 600; }
.rd-search__text { display: block; margin-top: .2rem; font-size: .82rem; color: var(--rd-muted-fg); }
.rd-search__message { padding: 1rem .9rem; font-size: .9rem; color: var(--rd-muted-fg); }
.rd-search__hint { margin: 0; padding: .65rem 1.25rem; border-top: 1px solid var(--rd-border); font-size: .75rem; color: var(--rd-muted-fg); }
body.rd-no-scroll { overflow: hidden; }
.rd-search-item .rd-card__title { margin-top: .9rem; }
.rd-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 3px; pointer-events: none; }
.admin-bar .rd-progress { top: 32px; }
.rd-progress span { display: block; height: 100%; width: 100%; background: var(--rd-spectrum); transform: scaleX(0); transform-origin: left; }
.rd-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rd-border); border-radius: 50%; background: var(--rd-card); color: var(--rd-fg); box-shadow: var(--rd-shadow-card); cursor: pointer; transition: transform .25s var(--rd-ease); }
.rd-to-top:hover { transform: translateY(-3px); }
.rd-to-top[hidden] { display: none; }

/* 404 ------------------------------------------------------------------- */

.rd-404 { display: grid; justify-items: center; gap: 1rem; padding-block: 6rem; text-align: center; }
.rd-404__code { margin: 0; font-family: var(--rd-font-display); font-size: clamp(5rem, 14vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; background: var(--rd-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-404 .rd-muted { max-width: 32rem; }
.rd-404 .rd-searchform { width: 100%; justify-content: center; }
.rd-404__links { justify-content: center; margin-top: 1rem; }
.rd-404__links a { display: inline-flex; padding: .5rem 1rem; border: 1px solid var(--rd-border); border-radius: 999px; text-decoration: none; font-size: .875rem; }
.rd-404__links a:hover { background: var(--rd-secondary); }

/* WooCommerce ----------------------------------------------------------- */

.rd-woo .woocommerce-products-header__title, .rd-woo .product_title { font-family: var(--rd-font-display); font-weight: 700; letter-spacing: -0.03em; }
.rd-woo ul.products { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.rd-woo ul.products::before, .rd-woo ul.products::after { display: none !important; }
@media (min-width: 640px) { .rd-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
	.rd-woo ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rd-woo ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rd-woo ul.products li.product { width: auto !important; margin: 0 !important; padding: 1.25rem; border: 1px solid var(--rd-border); border-radius: 1.5rem; background: var(--rd-card); box-shadow: var(--rd-shadow-card); float: none !important; transition: transform .3s var(--rd-ease), box-shadow .3s; }
.rd-woo ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--rd-shadow-lift); }
.rd-woo ul.products li.product img { border-radius: .85rem; margin-bottom: 1rem !important; }
.rd-woo ul.products li.product .woocommerce-loop-product__title { font-family: var(--rd-font-display); font-size: 1.1rem !important; font-weight: 700; color: var(--rd-fg); }
.rd-woo .price { color: var(--rd-fg) !important; font-weight: 600; }
.rd-woo a.button, .rd-woo button.button, .rd-woo input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.35rem !important; border: 0; border-radius: 999px !important;
	background: var(--rd-primary) !important; color: var(--rd-primary-fg) !important; font-weight: 600 !important; font-size: .875rem !important; text-decoration: none;
}
.rd-woo .woocommerce-result-count, .rd-woo .woocommerce-ordering { margin-top: 1rem; font-size: .875rem; color: var(--rd-muted-fg); }
.rd-woo .woocommerce-ordering select { padding: .5rem .9rem; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-card); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 1rem; border-top-color: var(--rd-accent) !important; background: var(--rd-surface) !important; color: var(--rd-fg) !important; }
.rd-woo .woocommerce-breadcrumb { margin-bottom: 1.5rem; }

/* Elementor alignment --------------------------------------------------- */

.elementor-section.rd-el-boxed > .elementor-container { width: 100%; }
.elementor .rd-w img, .rd-w img.rd-hero__img, .rd-w img.rd-about__img { height: auto; }
.elementor .rd-project-card__img, .elementor .rd-post-card__media img { height: 100%; }
.elementor .rd-hero__img, .elementor .rd-about__img { aspect-ratio: 1; height: auto; }
.elementor .rd-author__img { width: 72px; height: 72px; }
.elementor .rd-byline__img { width: 2rem; height: 2rem; }
.elementor-editor-active .rd-reveal, .elementor-editor-preview .rd-reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .rd-header, .rd-part-canvas .rd-header { position: relative; top: 0; }
body.rd-part-canvas { background: var(--rd-surface); }

/* Motion ---------------------------------------------------------------- */

@keyframes rd-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rd-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.rd-rise { animation: rd-rise .8s var(--rd-ease) both; animation-delay: var(--rd-delay, 0ms); }
.rd-js .rd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--rd-ease), transform .7s var(--rd-ease), box-shadow .3s; }
.rd-js .rd-reveal.is-visible { opacity: 1; transform: none; }
.rd-js .rd-card--link.rd-reveal.is-visible:hover, .rd-js .rd-post-card.rd-reveal.is-visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.rd-js .rd-reveal { opacity: 1; transform: none; }
}

/* Print: a clean CV/article printout ------------------------------------ */

@media print {
	.rd-header, .rd-footer, .rd-progress, .rd-to-top, .rd-share, .rd-toc, .rd-jump, .rd-actions, .rd-search, .rd-cta-section, .rd-comments { display: none !important; }
	body { background: #fff; color: #000; }
	.rd-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
	.rd-js .rd-reveal { opacity: 1; transform: none; }
	a { text-decoration: none; }
}

/* Fixes from visual review --------------------------------------------- */

/* Elementor's own `.elementor img` rule would square these off. */
.elementor .rd-hero__img, .elementor .rd-about__img { border-radius: 1.75rem; }
.elementor .rd-entry-image img, .elementor .rd-gallery-list img { border-radius: 1rem; }
.elementor .rd-author__img, .elementor .rd-byline__img { border-radius: 50%; }
.elementor .rd-prose img { border-radius: .85rem; }
.rd-page-header__meta { margin-top: 1.5rem !important; }
.rd-card .rd-label + .rd-chips { margin-top: 1rem; }
.rd-h3 + .rd-lead, .rd-heading .rd-h3 { margin-top: 0; }
/* Laptop widths: keep the full menu, drop the header button (it's in the menu as Contact). */
@media (min-width: 1024px) and (max-width: 1099px) {
	.rd-header__actions > .rd-btn { display: none; }
	.rd-nav__list a { padding-inline: .55rem; font-size: .85rem; }
}
.rd-page-header .rd-label { display: block; }
/* Phones: everything in the header bar fits, including the menu button. */
@media (max-width: 639px) {
	.rd-header__bar { gap: .5rem; }
	.rd-header__actions { gap: .3rem; }
	.rd-header .rd-icon-btn { width: 2.25rem; height: 2.25rem; }
	.rd-logo { font-size: 1.05rem; }
	.rd-cart-link:not(.has-items) { display: none; }
	.rd-hero__frame { inset: -.45rem; border-radius: 1.75rem; }
	.rd-hero__media { max-width: calc(100% - 1rem); }
}

/* ==========================================================================
   1.1 design layer — typography rhythm, quieter cards, new components, motion.
   (The home hero is intentionally untouched.)
   ========================================================================== */

/* Smooth cross-page transitions in supporting browsers. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--rd-ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Typography rhythm */
.rd-h2 { font-size: clamp(1.875rem, 3.1vw, 2.625rem); line-height: 1.1; text-wrap: balance; }
.rd-h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; text-wrap: balance; }
.rd-display { font-size: clamp(2.5rem, 5.4vw, 3.5rem); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.rd-card__title, .rd-entry-title, .rd-themes__title { text-wrap: balance; }
.rd-prose p, .rd-card__text, .rd-lead { text-wrap: pretty; }
.rd-section .rd-heading .rd-lead { font-size: 1.05rem; }
.rd-label { font-size: .72rem; }

/* Header gains a soft shadow once the page scrolls. */
.rd-header { transition: box-shadow .3s, background-color .3s; }
.rd-header.is-scrolled { box-shadow: 0 10px 30px -20px oklch(0.2 0.01 60 / .35); }

/* Quieter, more tactile cards with a cursor spotlight on interactive ones. */
.rd-card { box-shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.04), 0 10px 30px -22px oklch(0.2 0.01 60 / 0.22); }
.rd-card--link, .rd-post-card, .rd-project-card { isolation: isolate; }
.rd-card--link::before, .rd-post-card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--rd-accent) 14%, transparent), transparent 60%);
	transition: opacity .35s;
}
.rd-card--link:hover::before, .rd-post-card:hover::before { opacity: 1; }
.rd-card--link:hover, .rd-post-card:hover { border-color: color-mix(in oklch, var(--rd-accent) 35%, var(--rd-border)); }

/* Small items read better as clean lists than as stacks of boxes. */
.rd-cv-section--list .rd-stack--tight { gap: 0; border-top: 1px solid var(--rd-border); }
.rd-cv-section--list .rd-card--sm { padding: .95rem .25rem; background: none; border: 0; border-bottom: 1px solid var(--rd-border); border-radius: 0; box-shadow: none; font-size: .95rem; line-height: 1.55; }
.rd-cv-section .rd-heading .rd-h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

/* Section rhythm: eyebrow → heading → content. */
.rd-heading .rd-eyebrow + .rd-h2, .rd-heading .rd-eyebrow + .rd-h3 { margin-top: 1rem; }

/* Pulsing "live" dot */
.rd-pulse { position: relative; display: inline-block; width: .45rem; height: .45rem; margin-right: .45rem; border-radius: 50%; background: currentColor; }
.rd-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: rd-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes rd-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Key figures + news in one band */
.rd-stats-band { padding: 0; overflow: hidden; }
.rd-stats-band .rd-stats { border-radius: 0; }
.rd-stats-band .rd-stats__item { position: relative; }
@media (min-width: 768px) { .rd-stats-band .rd-stats__item + .rd-stats__item::before { content: ""; position: absolute; left: -.75rem; top: .25rem; bottom: .25rem; width: 1px; background: var(--rd-border); } }
.rd-stats__news { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1.1rem 2rem; border-top: 1px solid var(--rd-border); background: var(--rd-surface); text-decoration: none; transition: background-color .25s; }
.rd-stats__news:hover { background: var(--rd-secondary); }
.rd-stats__news-text { flex: 1; min-width: 14rem; font-size: .95rem; font-weight: 600; }
.rd-stats__news .rd-more { margin: 0; }
.rd-stats__news .rd-badge { display: inline-flex; align-items: center; }

/* Scrolling names */
.rd-marquee__label { justify-content: center; margin-bottom: 1.25rem !important; }
.rd-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rd-marquee__track { display: flex; flex-shrink: 0; gap: 3rem; margin: 0; padding: 0 1.5rem; list-style: none; animation: rd-marquee 55s linear infinite; }
.rd-marquee--normal .rd-marquee__track { animation-duration: 38s; }
.rd-marquee--fast .rd-marquee__track { animation-duration: 24s; }
.rd-marquee:hover .rd-marquee__track { animation-play-state: paused; }
.rd-marquee__track li { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--rd-font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--rd-muted-fg); white-space: nowrap; }
.rd-marquee__track li::after { content: "✦"; font-size: .7rem; color: var(--rd-accent); }
@keyframes rd-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.rd-marquee { -webkit-mask-image: none; mask-image: none; }
	.rd-marquee__track { flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; }
	.rd-marquee__track[aria-hidden] { display: none; }
}

/* Highlights (About) */
.rd-highlights { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--rd-border); border-radius: 1.5rem; background: var(--rd-border); }
@media (min-width: 640px) { .rd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rd-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rd-highlights__item { padding: 1.5rem; background: var(--rd-card); }
.rd-highlights__item dd { margin: .6rem 0 0; font-family: var(--rd-font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }

/* Research preview (home) */
.rd-teaser__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .rd-teaser__grid { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 4rem; } }
.rd-teaser__intro .rd-heading--split { flex-direction: column; align-items: flex-start; }
.rd-teaser__themes { margin-top: 1.75rem !important; }
.rd-teaser__cards { display: grid; gap: 1rem; }
.rd-teaser__card { padding: 1.5rem; }
.rd-teaser__card .rd-card__title { margin-top: .6rem; font-size: 1.1rem; }
.rd-chip--link { color: var(--rd-fg); }
.rd-chip--link:hover { border-color: var(--rd-accent); background: color-mix(in oklch, var(--rd-accent) 10%, var(--rd-card)); color: var(--rd-fg); }

/* Banner page title (Blog, categories, tags) */
.rd-banner { position: relative; overflow: hidden; background: var(--rd-surface); border-bottom: 1px solid var(--rd-border); }
section.rd-banner { padding-block: 3.5rem 4rem; }
.rd-banner__glow { position: absolute; inset: -40% -10% auto auto; width: 60%; height: 180%; background: var(--rd-spectrum); opacity: .14; filter: blur(80px); pointer-events: none; }
.rd-banner .rd-container { position: relative; }
.rd-banner .rd-breadcrumbs + .rd-eyebrow { margin-top: 1.5rem; }
.rd-banner .rd-display { margin-top: 1rem; }

/* Blog cards (akotech structure) */
.rd-post-card { position: relative; }
.rd-post-card__media { aspect-ratio: 16 / 9; }
.rd-post-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, color-mix(in oklch, var(--rd-accent) 22%, var(--rd-surface)), var(--rd-surface) 55%, color-mix(in oklch, oklch(0.62 0.19 262) 16%, var(--rd-surface))); color: var(--rd-muted-fg); }
.rd-post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.rd-post-card__meta { gap: .4rem; font-size: .78rem; letter-spacing: .02em; }
.rd-post-card__cat { position: relative; z-index: 2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-accent-text); text-decoration: none; }
.rd-post-card__cat:hover { text-decoration: underline; }
.rd-post-card .rd-card__title { margin-top: .75rem; font-size: 1.2rem; line-height: 1.3; }
.rd-post-card .rd-card__title a { text-decoration: none; }
.rd-post-card .rd-card__title a:hover { text-decoration: none; }
.rd-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rd-post-card .rd-more { margin-top: 1.1rem; color: var(--rd-fg); }
.rd-post-card:hover .rd-more .rd-icon { transform: translateX(3px); }
.rd-cat-links { margin-top: 0; }
.rd-filter[aria-current="page"] { border-color: var(--rd-primary); background: var(--rd-primary); color: var(--rd-primary-fg); font-weight: 600; }

/* Single article (akotech structure, one reading column) */
.rd-container--article { max-width: calc(1000px + 2 * var(--rd-gutter)); }
.rd-container--reading { max-width: calc(720px + 2 * var(--rd-gutter)); }
.rd-article { padding-block: 2.5rem 5rem; }
.rd-entry-header--post .rd-breadcrumbs, .rd-entry-header--post .rd-entry-header__inner { max-width: 720px; margin-inline: auto; }
.rd-entry-header--post .rd-entry-header__inner { margin-top: 2.25rem; }
.rd-entry-cat a { display: inline-flex; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in oklch, var(--rd-accent) 16%, transparent); color: var(--rd-accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.rd-entry-header--post .rd-entry-title { margin-top: 1rem !important; font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; }
.rd-entry-subtitle { font-size: 1.2rem; line-height: 1.55; }
.rd-byline { gap: .75rem; }
.rd-byline p { margin: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rd-byline a { font-weight: 700; }
.rd-byline__meta { font-size: .82rem; color: var(--rd-muted-fg); }
.rd-byline__img { width: 2.75rem !important; height: 2.75rem !important; }
.rd-entry-header--post .rd-entry-image { margin-top: 2.25rem !important; }
.rd-entry-header--post .rd-entry-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.rd-share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.75rem; padding-block: .9rem; border-block: 1px solid var(--rd-border); }
.rd-share-row ul { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.rd-share-row .rd-icon-btn:hover { color: var(--rd-fg); border-color: var(--rd-fg); transform: translateY(-2px); }
.rd-share-row .rd-icon-btn { transition: transform .2s var(--rd-ease), color .2s, border-color .2s; }
.rd-toc-box { margin-bottom: 2rem; border: 1px solid var(--rd-border); border-radius: 1rem; background: var(--rd-surface); }
.rd-toc-box summary { display: flex; align-items: center; gap: .6rem; padding: .95rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; }
.rd-toc-box summary::-webkit-details-marker { display: none; }
.rd-toc-box summary span { flex: 1; }
.rd-toc-box__chev { transition: transform .25s var(--rd-ease); }
.rd-toc-box[open] .rd-toc-box__chev { transform: rotate(180deg); }
.rd-toc-box .rd-toc { padding: 0 1.2rem 1.1rem; border: 0; background: none; box-shadow: none; }
.rd-toc-box .rd-toc ol { margin-top: 0; }
.rd-container--reading .rd-prose--article { font-size: 1.125rem; line-height: 1.8; }
.rd-container--reading .rd-prose--article > p:first-of-type { font-size: 1.2rem; }
.rd-article__author, .rd-container--reading .rd-author { margin-top: 3rem; }
.rd-post-nav { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .rd-post-nav { grid-template-columns: 1fr 1fr; } }
.rd-post-nav__link { display: flex; align-items: center; gap: .9rem; padding: .9rem; border: 1px solid var(--rd-border); border-radius: 1.1rem; background: var(--rd-card); text-decoration: none; transition: transform .3s var(--rd-ease), border-color .3s; }
.rd-post-nav__link:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--rd-accent) 40%, var(--rd-border)); }
.rd-post-nav__link--next { flex-direction: row-reverse; text-align: right; }
.rd-post-nav__link--next .rd-label { justify-content: flex-end; }
.rd-post-nav__img { width: 4rem !important; height: 4rem !important; flex-shrink: 0; border-radius: .75rem !important; object-fit: cover; }
.rd-post-nav__img--empty { display: block; background: var(--rd-surface); }
.rd-post-nav__title { font-size: .92rem; line-height: 1.35; }
.rd-related .rd-h3 { font-size: 1.6rem; }

/* Projects: key results + next project */
.rd-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; margin: 2rem 0 0 !important; overflow: hidden; border: 1px solid var(--rd-border); border-radius: 1.25rem; background: var(--rd-border); }
.rd-results__item { display: flex; flex-direction: column-reverse; padding: 1.1rem 1.25rem; background: var(--rd-card); }
.rd-results dd { margin: 0; font-family: var(--rd-font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--rd-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-results dt { margin-top: .25rem; font-size: .82rem; color: var(--rd-muted-fg); }
.rd-next-project { position: relative; display: grid; align-items: center; gap: 1.5rem; margin-top: 4rem; padding: 1.75rem; overflow: hidden; border: 1px solid var(--rd-border); border-radius: 1.75rem; background: var(--rd-ink); color: var(--rd-ink-fg); text-decoration: none; }
@media (min-width: 768px) { .rd-next-project { grid-template-columns: 1fr 22rem; padding: 2.25rem 2.5rem; } }
.rd-next-project .rd-label, .rd-next-project .rd-muted { color: oklch(0.985 0.006 95 / .7); }
.rd-next-project__text { display: grid; gap: .5rem; }
.rd-next-project__title { font-family: var(--rd-font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.rd-next-project__arrow { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-top: .75rem; border-radius: 50%; background: var(--rd-accent); color: oklch(0.2 0.03 60); transition: transform .35s var(--rd-ease); }
.rd-next-project:hover .rd-next-project__arrow { transform: translateX(6px); }
.rd-next-project__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 1rem; }
.rd-next-project__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: top; transition: transform .7s var(--rd-ease); }
.rd-next-project:hover .rd-next-project__media img { transform: scale(1.05); }

/* Newsletter */
.rd-newsletter { position: relative; display: grid; gap: 1.5rem; overflow: hidden; padding: 2.25rem; border: 1px solid var(--rd-border); border-radius: 2rem; background: var(--rd-card); }
.rd-newsletter::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 140%; background: var(--rd-spectrum); opacity: .12; filter: blur(70px); pointer-events: none; }
@media (min-width: 900px) { .rd-newsletter--band { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: 2.75rem 3rem; } }
.rd-newsletter__text, .rd-newsletter__form { position: relative; }
.rd-newsletter .rd-h3 { margin-top: .9rem; }
.rd-newsletter__text .rd-muted { margin-top: .6rem; }
.rd-newsletter__row { display: flex; gap: .5rem; padding: .35rem; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-bg); transition: border-color .2s, box-shadow .2s; }
.rd-newsletter__row:focus-within { border-color: var(--rd-fg); box-shadow: 0 0 0 3px color-mix(in oklch, var(--rd-accent) 35%, transparent); }
.rd-newsletter__row input { flex: 1; min-width: 0; padding: .5rem .9rem; border: 0; background: transparent; color: var(--rd-fg); font-size: 1rem; outline: none; }
.rd-newsletter__note { margin-top: .75rem !important; padding-left: 1rem; }
.rd-newsletter__note.is-ok { color: oklch(0.55 0.13 150); font-weight: 600; }
.rd-newsletter__note.is-error { color: var(--rd-danger); font-weight: 600; }
.rd-footer__newsletter { padding-top: 3.5rem; }
@media (max-width: 479px) { .rd-newsletter__row { flex-direction: column; border-radius: 1.25rem; } .rd-newsletter__row .rd-btn { width: 100%; } }

/* Legal pages */
.rd-legal h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.rd-legal ul { padding-left: 1.2rem; }

/* Staggered reveal for grids */
.rd-js .rd-reveal { transition-delay: var(--rd-stagger, 0ms); }

/* Footer: tidier grid on wide screens */
.rd-footer__grid { row-gap: 2rem; }
/* Keep "Category · Date" on one line; a long category name is shortened instead of wrapping. */
.rd-post-card__meta { flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.rd-post-card__cat { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rd-post-card__meta time { flex-shrink: 0; }
/* Keep the newsletter glow inside its rounded corners in every browser. */
.rd-newsletter { isolation: isolate; clip-path: inset(0 round 2rem); }

/* ==========================================================================
   1.2 Blog post — full site width, comfortable reading column, sticky sidebar.
   ========================================================================== */

/* Title area: left-aligned like every other page, image across the full width. */
.single-post .rd-entry-header--post .rd-breadcrumbs,
.single-post .rd-entry-header--post .rd-entry-header__inner { max-width: 54rem; margin-inline: 0; }
.single-post .rd-entry-header--post .rd-entry-title { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; }
.single-post .rd-entry-subtitle { max-width: 44rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.single-post .rd-entry-header--post .rd-entry-image { margin-top: 2.5rem !important; }
.single-post .rd-entry-header--post .rd-entry-image img { aspect-ratio: 16 / 9; border-radius: 1.25rem; }
@media (min-width: 1025px) { .single-post .rd-entry-header--post .rd-entry-image img { aspect-ratio: 21 / 9; } }

/* Reading column: ~70 characters per line at 18px. */
.single-post .rd-prose--article,
.single-post .rd-share-end,
.single-post .rd-toc-box,
.single-post .rd-post-nav,
.single-post .rd-author,
.single-post .rd-comments { max-width: 46rem; }
.rd-article__grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
@media (min-width: 1025px) { .rd-article__grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4.5rem; } }
.rd-article__comments { margin-top: 0; }

/* Sidebar on desktop, collapsible contents on phones and tablets. */
/* 1024px matches Elementor's tablet breakpoint, where the columns stack. */
@media (max-width: 1024px) { .single-post .rd-aside--post, .single-post .rd-col-aside { display: none !important; } }
@media (min-width: 1025px) { .rd-toc-box--mobile { display: none; } }
.rd-aside--post { gap: 1.25rem; }
.rd-aside--post .rd-card { padding: 1.4rem; }
.rd-aside--post .rd-toc ol { font-size: .86rem; }
.rd-aside--post.rd-aside--sticky { top: calc(var(--rd-header-h) + 4.5rem); max-height: calc(100vh - var(--rd-header-h) - 6rem); overflow-y: auto; scrollbar-width: thin; }
.rd-toc__progress { display: block; height: 3px; margin: .9rem 0 .2rem; overflow: hidden; border-radius: 3px; background: var(--rd-border); }
.rd-toc__progress span { display: block; height: 100%; background: var(--rd-spectrum); transform: scaleX(0); transform-origin: left; transition: transform .12s linear; }
.rd-aside--post .rd-share ul { gap: .4rem; }

/* Article typography */
.single-post .rd-prose--article { font-size: 1.125rem; line-height: 1.8; color: color-mix(in srgb, var(--rd-fg) 88%, var(--rd-bg)); }
.single-post .rd-prose--article > * { margin-bottom: 1.5rem; }
.single-post .rd-prose--article > :last-child { margin-bottom: 0; }
.single-post .rd-prose--article > p:first-child { font-size: 1.25rem; line-height: 1.7; color: var(--rd-fg); }
.single-post .rd-prose--article h2 { margin-top: 3rem; font-size: clamp(1.6rem, 2.6vw, 1.9rem); color: var(--rd-fg); }
.single-post .rd-prose--article h3 { margin-top: 2.25rem; font-size: 1.35rem; color: var(--rd-fg); }
.single-post .rd-prose--article strong { color: var(--rd-fg); }
.single-post .rd-prose--article li + li { margin-top: .55rem; }
.single-post .rd-prose--article figure, .single-post .rd-prose--article .wp-block-image { margin-block: 2.25rem; }
.single-post .rd-prose--article img { border-radius: 1rem; }
.single-post .rd-prose--article hr { width: 100%; max-width: none; height: auto; margin-block: 3rem; border: 0; background: none; text-align: center; white-space: nowrap; opacity: 1; }
.single-post .rd-prose--article hr::before { content: "✦  ✦  ✦"; letter-spacing: .6em; color: var(--rd-accent-text); }
.rd-anchor { margin-left: .45rem; color: var(--rd-accent-text); text-decoration: none !important; opacity: 0; transition: opacity .2s; }
.rd-prose h2:hover .rd-anchor, .rd-prose h3:hover .rd-anchor, .rd-anchor:focus-visible { opacity: 1; }
.rd-zoomable { cursor: zoom-in; }
.rd-prose pre { position: relative; }
.rd-code-copy { position: absolute; top: .6rem; right: .6rem; padding: .25rem .65rem; border: 1px solid oklch(1 0 0 / .2); border-radius: .5rem; background: oklch(1 0 0 / .08); color: inherit; font: inherit; font-size: .75rem; cursor: pointer; opacity: .7; transition: opacity .2s; }
.rd-prose pre:hover .rd-code-copy, .rd-code-copy:focus-visible { opacity: 1; }

/* Writing helpers (block styles) */
.rd-prose .is-style-rd-callout { padding: 1.1rem 1.35rem; border-left: 3px solid var(--rd-accent); border-radius: .85rem; background: color-mix(in srgb, var(--rd-accent) 9%, var(--rd-card)); color: var(--rd-fg); }
.rd-prose .is-style-rd-takeaway { position: relative; padding: 2.4rem 1.4rem 1.3rem; border: 1px solid var(--rd-border); border-radius: 1rem; background: var(--rd-surface); color: var(--rd-fg); font-weight: 500; }
.rd-prose .is-style-rd-takeaway::before { content: "Key takeaway"; position: absolute; top: .95rem; left: 1.4rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-accent-text); }
.rd-prose .wp-block-quote.is-style-rd-pull { margin-block: 2.5rem; padding: 1.75rem 0; border: 0; border-block: 1px solid var(--rd-border); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; text-align: center; color: var(--rd-fg); }

/* Share at the end of the article */
.rd-share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2.5rem; padding: 1.5rem 1.6rem; border: 1px solid var(--rd-border); border-radius: 1.25rem; background: linear-gradient(135deg, color-mix(in srgb, var(--rd-accent) 10%, var(--rd-card)), var(--rd-card) 60%); }
.rd-share-end__title { margin: 0; font-family: var(--rd-font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.rd-share-end__text .rd-small { margin-top: .3rem; }
.rd-share-end__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rd-share-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid var(--rd-border); border-radius: 999px; background: var(--rd-card); color: var(--rd-fg); font: inherit; font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--rd-ease), background-color .2s, color .2s, border-color .2s; }
.rd-share-btn:hover { transform: translateY(-2px); border-color: var(--rd-primary); background: var(--rd-primary); color: var(--rd-primary-fg); }
@media (max-width: 639px) { .rd-share-btn span { display: none; } .rd-share-btn { padding: .6rem; } }

/* Author box and post navigation */
.single-post .rd-author { margin-top: 2rem; }
.rd-author__social { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0 !important; padding: 0; list-style: none; }
.rd-author__social .rd-icon-btn { width: 2.25rem; height: 2.25rem; }
.single-post .rd-post-nav { margin-top: 1.5rem; }

/* Related posts and comments get room to breathe */
.single-post .rd-related { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--rd-border); }
.single-post .rd-comments { margin-top: 3.5rem; }
