/*
 * IRSg next: the doodle wall, on WordPress blocks.
 * Ported from prototype/assets/css/site.css; tokens live in theme.json (DESIGN.md).
 * Ground: the lab's painted wall. Ink: black marker line drawings.
 * Colour: ISR red and ISR blue as full-width bands.
 * Type: Proza Libre (display), Open Sans (text), Permanent Marker (annotations only).
 */

:root {
	--wall: var(--wp--preset--color--wall);
	--wall-shade: var(--wp--preset--color--wall-shade);
	--ink: var(--wp--preset--color--ink);
	--ink-2: var(--wp--preset--color--ink-2);
	--ink-3: var(--wp--preset--color--ink-3);
	--line: var(--wp--preset--color--line);
	--red: var(--wp--preset--color--isr-red);
	--red-ink: var(--wp--preset--color--red-ink);
	--blue: var(--wp--preset--color--isr-blue);
	--blue-deep: var(--wp--preset--color--blue-deep);
	--on-blue-2: #eef5f8; /* 5.2:1 on ISR blue */
	--on-red-2: #f6dcd8;
	--footer-wall: #e7e7e3;
	--tape: rgba(236, 226, 178, 0.82);
	--display: var(--wp--preset--font-family--display);
	--text: var(--wp--preset--font-family--text);
	--marker: var(--wp--preset--font-family--marker);
	--gutter: clamp(20px, 4vw, 56px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 92px;
	--strip-h: 34px;
	--admin-h: var(--wp-admin--admin-bar--height, 0px);
	--arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--admin-h) + var(--header-h) + 16px); scrollbar-color: var(--ink-3) var(--wall-shade); }
body { text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
main { overflow-x: clip; }
.wp-site-blocks { padding: 0; }

/* Sections sit edge to edge: no block gap between full-width bands. */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0; }
.irsg-main { margin-block: 0; }

/* ---------- Top strip and header ---------- */
.site-header-part {
	position: sticky;
	top: calc(var(--admin-h) - var(--strip-h));
	z-index: 40;
}
.strip { background: var(--blue); color: #fff; font-size: 13px; min-height: var(--strip-h); }
.strip p { margin: 0; white-space: nowrap; }
/* The strip must stay one line tall: the sticky header hides exactly --strip-h of it. */
.strip .strip__tagline { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.strip a { color: #fff; text-decoration: none; }
.strip a:hover { color: #fff; text-decoration: underline; }
.strip .strip__links { gap: 22px; }

/* The blur sits on a pseudo-element: backdrop-filter on the header itself would
   trap the mobile menu's fixed overlay inside the header. */
.site-header {
	border-bottom: 1px solid transparent;
	isolation: isolate;
	position: relative;
	min-height: var(--header-h);
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header::before {
	backdrop-filter: saturate(1.2) blur(10px);
	background: color-mix(in srgb, var(--wall) 92%, transparent);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}
.site-header-part.is-scrolled .site-header { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 24, 29, 0.5); }
.brand { gap: 14px; }
.brand .wp-block-site-logo img { height: 64px; width: auto; }
.brand .brand__name { color: var(--ink-2); font: 600 13px/1.25 var(--text); margin: 0; max-width: 150px; }

.site-nav .wp-block-navigation-item__content {
	font: 600 15px/1 var(--display);
	letter-spacing: 0.06em;
	padding: 10px 0;
	position: relative;
	text-decoration: none;
	text-transform: uppercase;
}
.site-nav .wp-block-navigation-item:not(.nav-join) > .wp-block-navigation-item__content::after {
	background: var(--red);
	border-radius: 2px;
	bottom: 2px;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	transform: scaleX(0) rotate(-1deg);
	transform-origin: left;
	transition: transform 0.35s var(--ease);
	width: 100%;
}
.site-nav .wp-block-navigation-item__content:hover { color: var(--ink); }
.site-nav .wp-block-navigation-item:not(.nav-join) > .wp-block-navigation-item__content:hover::after,
.site-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1) rotate(-1deg); }
.site-nav .nav-join > .wp-block-navigation-item__content {
	background: var(--red);
	border-radius: 999px;
	color: #fff;
	padding: 12px 20px;
}
.site-nav .nav-join > .wp-block-navigation-item__content:hover { background: var(--red-ink); color: #fff; }

/* Mobile menu: a "Menu" pill that opens a full-screen sheet on the wall colour. */
.site-nav .wp-block-navigation__responsive-container-open {
	align-items: center;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	color: var(--ink);
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
}
@media (max-width: 599px) {
	.site-nav .wp-block-navigation__responsive-container-open { display: inline-flex; }
}
.site-nav .wp-block-navigation__responsive-container-open::after {
	content: "Menu";
	font: 600 14px/1 var(--display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.site-nav .wp-block-navigation__responsive-container-open svg { height: 18px; width: 18px; }
/* Overlay colours come from the Navigation block's overlay settings (header pattern). */
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--gutter); }
.site-nav .wp-block-navigation__responsive-container-close { align-items: center; display: inline-flex; height: 44px; justify-content: center; width: 44px; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { align-items: flex-start; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(.nav-join) .wp-block-navigation-item__content { font-size: 24px; letter-spacing: 0.04em; padding: 10px 0; }
.site-nav .is-menu-open .nav-join { margin-top: 12px; }
.site-nav .is-menu-open .nav-join > .wp-block-navigation-item__content { font-size: 18px; padding: 14px 24px; }

/* ---------- Doodle wall (layout lives with the block in irsg-core; this is the motion) ---------- */
.wall { isolation: isolate; position: relative; }
.doodles + * { margin-block-start: 0; }
.js .doodle .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.js .doodles.is-drawn .doodle .draw { animation: draw 1.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms); }
.js .doodle text { clip-path: inset(0 100% 0 0); }
.js .doodles.is-drawn .doodle text { animation: write 1.4s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 300ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.editor-styles-wrapper .doodles { z-index: 0; }

/* Marker annotations */
.note, p.note {
	color: var(--red);
	font: 400 clamp(17px, 1.5vw, 21px)/1.25 var(--marker);
	letter-spacing: 0.01em;
	transform: rotate(-3deg);
}
.note.is-blue { color: var(--blue-deep); }
.mark {
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--red) 28%, transparent) 62%, color-mix(in srgb, var(--red) 28%, transparent) 92%, transparent 92%);
	padding: 0 0.05em;
}

/* Taped photographs: an Image block with the "Taped photo" style. The caption is the marker note. */
.wp-block-image.is-style-taped { --tilt: -1.5deg; margin: 0; position: relative; }
.wp-block-image.is-style-taped img {
	aspect-ratio: var(--ratio, 4 / 3);
	background: #fff;
	box-shadow: 0 1px 2px rgba(22, 24, 29, 0.12), 0 18px 34px -22px rgba(22, 24, 29, 0.55);
	box-sizing: border-box;
	object-fit: cover;
	padding: 10px 10px 12px;
	transform: rotate(var(--tilt));
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
	width: 100%;
}
.wp-block-image.is-style-taped::before {
	background: var(--tape);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
	content: "";
	height: 30px;
	left: 50%;
	position: absolute;
	top: -15px;
	transform: translateX(-50%) rotate(-4deg);
	width: 112px;
	z-index: 1;
}
.wp-block-image.is-style-taped figcaption {
	color: var(--red);
	font: 400 clamp(17px, 1.5vw, 21px)/1.25 var(--marker);
	margin: 18px 0 0;
	max-width: 34ch;
	text-align: left;
	transform: rotate(-3deg);
}
.wp-block-image.is-style-taped.note-blue figcaption, :is(.band-blue, .is-style-stripe-blue) .wp-block-image.is-style-taped figcaption { color: var(--blue-deep); }
:is(.band-blue, .is-style-stripe-blue) .wp-block-image.is-style-taped figcaption { color: #fff; }
.wp-block-image.is-style-taped a:hover img, .wp-block-image.is-style-taped a:focus-visible img,
a:hover > .wp-block-image.is-style-taped img { box-shadow: 0 1px 2px rgba(22, 24, 29, 0.12), 0 26px 40px -22px rgba(22, 24, 29, 0.6); transform: rotate(0deg) translateY(-4px); }
.wp-block-image.is-style-taped.has-arrow figcaption::before {
	background: var(--red);
	content: "";
	display: block;
	height: 44px;
	margin: 0 0 -6px 46px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 54' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M84 6 C60 4 30 10 14 40 M6 30 L14 42 L26 34'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 54' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M84 6 C60 4 30 10 14 40 M6 30 L14 42 L26 34'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 90px;
}
.ratio-3-4 { --ratio: 3 / 4; }
.ratio-4-5 { --ratio: 4 / 5; }
.ratio-16-10 { --ratio: 16 / 10; }
.ratio-4-3 { --ratio: 4 / 3; }
.tilt-r { --tilt: 2deg; }
.tilt-r2 { --tilt: 2.5deg; }
.tilt-l { --tilt: -2.2deg; }
.tilt-0 { --tilt: 0deg; }

/* Corner-dot frame (the IRSg logo's node, from the current site's card frame) */
.frame { position: relative; }
.frame::after {
	border-bottom: 1.5px solid var(--ink);
	border-right: 1.5px solid var(--ink);
	bottom: -8px;
	content: "";
	height: 46px;
	pointer-events: none;
	position: absolute;
	right: -8px;
	width: 46px;
}
.frame::before {
	background: var(--wall);
	border: 1.5px solid var(--ink);
	border-radius: 50%;
	bottom: -14px;
	content: "";
	height: 13px;
	pointer-events: none;
	position: absolute;
	right: -14px;
	width: 13px;
	z-index: 1;
}
:is(.band-red, .is-style-stripe-red) .frame::after, :is(.band-blue, .is-style-stripe-blue) .frame::after { border-color: rgba(255, 255, 255, 0.85); }
:is(.band-red, .is-style-stripe-red) .frame::before { background: var(--red); border-color: #fff; }
:is(.band-blue, .is-style-stripe-blue) .frame::before { background: var(--blue); border-color: #fff; }
.frame-hover::after, .frame-hover::before { opacity: 0; transition: opacity 0.3s var(--ease); }
.frame-hover:hover::after, .frame-hover:hover::before, .frame-hover:focus-within::after, .frame-hover:focus-within::before { opacity: 1; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 14px; }
.wp-block-button__link {
	align-items: center;
	border: 2px solid var(--ink);
	display: inline-flex;
	gap: 10px;
	letter-spacing: 0.01em;
	line-height: 1;
	min-height: 52px;
	padding-block: 0;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.wp-block-button__link:hover { border-color: var(--red); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding-inline: 26px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
:is(.band-blue, .is-style-stripe-blue) .wp-block-button.is-style-outline .wp-block-button__link, :is(.band-red, .is-style-stripe-red) .wp-block-button.is-style-outline .wp-block-button__link { border-color: #fff; color: #fff; }
:is(.band-blue, .is-style-stripe-blue) .wp-block-button.is-style-outline .wp-block-button__link:hover, :is(.band-red, .is-style-stripe-red) .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); }
.has-arrow .wp-block-button__link::after, .more a::after, .go a::after, a.more::after {
	background: currentColor;
	content: "";
	flex: none;
	height: 18px;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform 0.3s var(--ease);
	width: 18px;
}
.has-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 132px); }
.section.pt-0 { padding-top: 0; }
.has-wall-shade-background-color { background: var(--wall-shade); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > * { max-width: 860px; }
.section-head h2 { font-size: var(--wp--preset--font-size--x-large); }
.section-head p { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 62ch; }
:is(.band-blue, .is-style-stripe-blue) { background: var(--blue); color: #fff; }
:is(.band-red, .is-style-stripe-red) { background: var(--red); color: #fff; }
:is(.band-blue, .is-style-stripe-blue) :is(h1, h2, h3, h4), :is(.band-red, .is-style-stripe-red) :is(h1, h2, h3, h4) { color: #fff; }
:is(.band-blue, .is-style-stripe-blue) .section-head p, :is(.band-blue, .is-style-stripe-blue) p { color: var(--on-blue-2); }
:is(.band-red, .is-style-stripe-red) .section-head p, :is(.band-red, .is-style-stripe-red) p { color: var(--on-red-2); }
:is(.band-blue, .is-style-stripe-blue) a:hover, :is(.band-red, .is-style-stripe-red) a:hover { color: #fff; }
.lead { color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 58ch; }

/* Grids built from Group blocks: the flow layout's top margins don't apply inside them. */
:is(.hero-grid, .approach-grid, .network, .arena-board, .projects-layout, .robot-rail, .paths, .facts, .specs, .idea-grid, .tasks, .lola-grid, .team, .partners, .qualified, .join-grid, .people-row) > * { margin-block: 0; }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(24px, 3vw, 44px) clamp(40px, 4vw, 56px); }
.hero-grid { align-items: center; display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.62fr); }
.hero-grid h1 { margin: 0; }
.hero-grid .lead { margin: 22px 0 28px; }
.hero-grid > .wp-block-image.is-style-taped { justify-self: end; max-width: 330px; width: 100%; }
.hero-grid > .wp-block-image.is-style-taped figcaption { margin-left: -36px; margin-top: 10px; }
.hero-grid > div > * + * { margin-block-start: 0; }
.hero-facts { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; margin-bottom: 0; margin-top: clamp(48px, 6vw, 72px); padding: 22px 0 0; }
.hero-facts li { color: var(--ink-2); font-size: 15px; }
.hero-facts strong { color: var(--ink); font-family: var(--display); font-weight: 700; }
:is(.band-blue, .is-style-stripe-blue) .hero-facts { border-top-color: rgba(255, 255, 255, 0.35); }
:is(.band-blue, .is-style-stripe-blue) .hero-facts li { color: var(--on-blue-2); }
:is(.band-blue, .is-style-stripe-blue) .hero-facts strong { color: #fff; }

/* ---------- Home: approach (blue band, node network) ---------- */
.approach-grid { align-items: center; display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.approach-grid h2 { font-size: var(--wp--preset--font-size--x-large); }
.approach-grid .intro p { font-size: clamp(17px, 1.4vw, 19px); margin-top: 22px; max-width: 46ch; }
.approach-grid .wp-block-quote { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); margin: 34px 0 0; max-width: 44ch; padding: 22px 0 0; }
.approach-grid .wp-block-quote p { color: #fff; font: 400 italic clamp(19px, 1.6vw, 22px)/1.45 var(--display); margin: 0; }
.network { aspect-ratio: 1.15; position: relative; }
.network svg.links { fill: none; height: 100%; inset: 0; overflow: visible; position: absolute; stroke: rgba(255, 255, 255, 0.7); stroke-dasharray: 1 8; stroke-linecap: round; stroke-width: 2.5; width: 100%; }
.node { max-width: 300px; padding-left: 44px; position: absolute; }
.node::before {
	background: var(--blue);
	border: 2.5px solid #fff;
	border-radius: 50%;
	content: "";
	height: 22px;
	left: 0;
	position: absolute;
	top: 6px;
	width: 22px;
	z-index: 1;
}
.node.is-red::before { background: var(--red); }
.node h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 8px; }
.node p { font-size: 16px; line-height: 1.55; margin: 0; }
.node-1 { left: 4%; top: 2%; }
.node-2 { right: -2%; top: 36%; }
.node-3 { bottom: 2%; left: 8%; }

/* ---------- Home: arena (proof) ---------- */
.arena-board { display: grid; gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.arena-board > :nth-child(1) { --ratio: 16 / 10; --tilt: -1.2deg; grid-column: 1 / span 7; }
.arena-board > :nth-child(2) { --tilt: 2deg; grid-column: 8 / span 5; margin-top: 56px; }
.arena-board > :nth-child(3) { --tilt: 1.4deg; grid-column: 2 / span 5; }
.arena-board > :nth-child(4) { --tilt: -2.2deg; grid-column: 7 / span 5; margin-top: -40px; }
.arena-board .wp-block-image.is-style-taped { --tilt: inherit; }
.arena-board figcaption { margin-top: 18px; }
.arena-board > * > p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; max-width: 40ch; }
.timeline, ol.irsg-timeline { border-top: 2px solid var(--ink); display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-bottom: 0; margin-top: clamp(72px, 8vw, 104px); padding: 0; }
.timeline li { color: var(--ink-2); font-size: 15px; line-height: 1.5; padding-top: 22px; position: relative; }
.timeline li::before { background: var(--wall); border: 2px solid var(--ink); border-radius: 50%; content: ""; height: 14px; left: 0; position: absolute; top: -8px; width: 14px; }
.timeline li.is-next::before { background: var(--red); border-color: var(--red); }
.timeline strong { color: var(--ink); display: block; font: 700 26px/1 var(--display); margin-bottom: 8px; }

/* ---------- Home: research register (Research topics list, "register" variant) ---------- */
.irsg-register { border-top: 2px solid var(--ink); column-gap: clamp(32px, 4vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.irsg-register li { border-bottom: 1px solid var(--line); }
.irsg-register a { align-items: center; display: grid; gap: 18px; grid-template-columns: 76px minmax(0, 1fr) 20px; padding: 18px 0; text-decoration: none; }
.irsg-register img { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); filter: grayscale(1); height: auto; object-fit: cover; transition: filter 0.35s var(--ease); width: 76px; }
.irsg-register h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 4px; }
.irsg-register p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }
.irsg-register svg { color: var(--ink-3); height: 20px; transition: transform 0.3s var(--ease), color 0.3s var(--ease); width: 20px; }
.irsg-register a:hover img, .irsg-register a:focus-visible img { filter: none; }
.irsg-register a:hover svg { color: var(--red); transform: translateX(4px); }
.irsg-register a:hover h3 { color: var(--red); }

/* ---------- Home: projects ---------- */
.projects-layout { align-items: start; display: grid; gap: clamp(40px, 5vw, 80px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.feature { position: relative; }
.feature .wp-block-image.is-style-taped { --ratio: 4 / 5; }
.feature h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 26px 0 10px; }
.feature p { color: var(--ink-2); margin: 0; max-width: 46ch; }
.feature .more { margin-top: 16px; }
.more a, a.more { align-items: center; color: var(--red); display: inline-flex; font: 600 16px var(--display); gap: 8px; text-decoration: none; }
.feature .more a::before { content: ""; inset: 0; position: absolute; z-index: 2; }
.feature:hover .more a::after { transform: translateX(4px); }
.feature:hover h3 { color: var(--red); }
.feature:hover .wp-block-image.is-style-taped img { transform: rotate(0deg) translateY(-4px); }
.irsg-projects-table { margin: 0; }
.irsg-projects-table table { border-collapse: collapse; width: 100%; }
.irsg-projects-table thead { border: 0; }
.irsg-projects-table :is(th, td) { border: 0; text-align: left; }
.irsg-projects-table th { border-bottom: 2px solid var(--ink); color: var(--ink-2); font: 600 13px/1.2 var(--text); letter-spacing: 0.06em; padding: 0 12px 12px 0; text-transform: uppercase; }
.irsg-projects-table td { border-bottom: 1px solid var(--line); font-size: 15px; padding: 16px 12px 16px 0; vertical-align: top; }
.irsg-projects-table td:first-child { font: 700 18px/1.3 var(--display); white-space: nowrap; }
.irsg-projects-table td:last-child { color: var(--ink-2); font-size: 14px; }
.irsg-projects-table tbody tr { transition: background-color 0.2s var(--ease); }
.irsg-projects-table tbody tr:hover { background: var(--wall-shade); }
.irsg-projects-table a { text-decoration: none; }
.irsg-projects-table a:hover { text-decoration: underline; }

/* ---------- Home: robots ---------- */
.robots { overflow: hidden; }
.robot-rail {
	--edge: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
	display: grid;
	gap: clamp(24px, 3vw, 40px);
	grid-auto-columns: minmax(240px, 300px);
	grid-auto-flow: column;
	overflow-x: auto;
	padding: 20px var(--edge) 34px;
	scroll-padding-inline: var(--edge);
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.robot { scroll-snap-align: start; }
.robot .wp-block-image.is-style-taped { --ratio: 4 / 5; --tilt: -1.6deg; }
.robot:nth-child(even) .wp-block-image.is-style-taped { --tilt: 1.8deg; }
.robot h3 { font-size: 22px; margin: 22px 0 4px; }
.robot > * + * { margin-block-start: 0; }
.robot p { font-size: 15px; line-height: 1.5; margin: 0; }
.robot p.note { color: #fff; display: block; font-size: clamp(17px, 1.5vw, 21px); margin-top: 6px; }
.robot-rail:focus-visible { outline-offset: -3px; }

/* ---------- People teaser (People grid, "mosaic" variant) ---------- */
.people-row { align-items: end; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.people-row .section-head { margin: 0; }
.mosaic-wrap { margin-top: 40px; position: relative; }
.mosaic-wrap > .note { margin: 0; position: absolute; right: 0; top: -38px; }
.irsg-mosaic { display: grid; gap: 10px; grid-template-columns: repeat(11, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.irsg-mosaic img { aspect-ratio: 3 / 4; display: block; filter: grayscale(0.35); height: auto; object-fit: cover; transition: filter 0.3s var(--ease), transform 0.3s var(--ease); width: 100%; }
.irsg-mosaic a:hover img, .irsg-mosaic a:focus-visible img { filter: none; transform: translateY(-4px) rotate(-1deg); }

/* ---------- Paths (red band) ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path { border-left: 1px solid rgba(255, 255, 255, 0.35); display: flex; flex-direction: column; gap: 14px; margin-right: 14px; padding: 8px clamp(20px, 3vw, 44px) 12px; position: relative; }
.path > * { margin: 0; }
.path:first-child { border-left: 0; padding-left: 0; }
.path h3 { font-size: clamp(26px, 2.6vw, 36px); }
.path .go { margin-top: auto; padding-top: 12px; }
.go a { align-items: center; color: #fff; display: inline-flex; font: 600 16px var(--display); gap: 10px; text-decoration: none; }
.go a::before { content: ""; inset: 0; position: absolute; z-index: 2; }
.go a::after { height: 20px; width: 20px; }
.path:hover .go a::after { transform: translateX(6px); }
.path:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-wall); color: var(--ink-2); font-size: 15px; padding-block: 56px 40px; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer .cols > * { margin: 0; }
.site-footer h2 { color: var(--ink); font: 700 15px/1.2 var(--display); letter-spacing: 0.05em; margin: 0 0 14px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logos { align-items: center; display: flex; gap: 22px; margin-bottom: 16px; }
.site-footer .logos img { height: 52px; width: auto; }
.site-footer .logos .wp-block-image { margin: 0; }
.site-footer .legal { border-top: 1px solid #cfcfc9; display: flex; flex-wrap: wrap; font-size: 13px; gap: 12px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; }
.site-footer .legal p { margin: 0; }

/* ---------- Project page ---------- */
.crumbs { color: var(--ink-3); font-size: 14px; margin-bottom: 26px; }
.crumbs a { color: var(--ink-2); }
.project-hero .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); }
.project-hero .logo-mark { margin: 0 0 24px; }
.project-hero .logo-mark img { height: 84px; width: auto; }
.project-hero h1 { font-size: clamp(40px, 5.4vw, 78px); letter-spacing: -0.025em; line-height: 1; }
.project-hero .subtitle { color: var(--ink-2); font: 400 clamp(19px, 1.6vw, 22px)/1.4 var(--display); margin-top: 18px; }
.project-hero .hero-grid > .wp-block-image.is-style-taped { max-width: 400px; }
.facts { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); }
.facts > * { border-left: 1px solid var(--line); padding: 18px 20px; }
.facts > :first-child { border-left: 0; padding-left: 0; }
.facts .dt, .specs .dt { color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin: 0 0 4px; text-transform: uppercase; }
.facts .dd { font: 600 17px/1.35 var(--display); margin: 0; overflow-wrap: anywhere; }
.prose { font-size: 18px; line-height: 1.7; max-width: 66ch; }
.prose h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 24px; }
.prose .lede { color: var(--ink); font: 400 clamp(22px, 2vw, 27px)/1.45 var(--display); }
.prose p { color: var(--ink-2); }
.idea-grid { align-items: start; display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }

/* The plan demo: a spoken command becomes steps */
.plan { background: #fff; border: 1.5px solid var(--ink); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--admin-h) + var(--header-h) + 24px); }
.plan > * { margin-block: 0; }
.plan .say { align-items: center; display: flex; gap: 14px; margin-bottom: 22px; }
.plan .say > * { margin: 0; }
.plan .bubble { background: var(--wall); border: 1.5px solid var(--ink); border-radius: 22px 22px 22px 4px; font: 400 24px/1.2 var(--marker); padding: 12px 20px; }
.plan .who { color: var(--ink-3); font-size: 14px; }
.plan ol { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.plan li { border-top: 1px solid var(--line); counter-increment: step; padding: 12px 0 12px 48px; position: relative; }
.plan li::before { color: var(--red); content: counter(step); font: 700 20px/1.2 var(--display); left: 0; position: absolute; top: 12px; }
.plan code { background: var(--wall); color: var(--blue-deep); font: 500 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; }
.plan .caption { color: var(--ink-3); font-size: 13px; margin: 18px 0 0; }
/* Steps stay readable (grey, AA contrast) until the plan plays; then each one is
   ticked off in turn: a marker highlight sweeps behind it, the text darkens and
   the number turns red. */
.plan li { isolation: isolate; }
.plan li::after { background: color-mix(in srgb, var(--blue) 11%, #fff); border-radius: 3px 14px 4px 12px; content: ""; inset: 9px 2px 8px 38px; position: absolute; transform: rotate(-0.4deg) scaleX(0); transform-origin: left center; z-index: -1; }
.js .plan li, .js .plan li code { color: var(--ink-3); transition: color 0.35s ease; transition-delay: calc(var(--i) * 420ms + 200ms); }
.js .plan li::before { color: var(--ink-3); transition: color 0.3s ease, transform 0.45s var(--ease); transition-delay: calc(var(--i) * 420ms); }
.js .plan li::after { transition: transform 0.5s var(--ease); transition-delay: calc(var(--i) * 420ms + 80ms); }
.js .plan.is-playing li { color: var(--ink); }
.js .plan.is-playing li code { color: var(--blue-deep); }
.js .plan.is-playing li::before { color: var(--red); transform: scale(1.2); }
.js .plan.is-playing li::after { transform: rotate(-0.4deg) scaleX(1); }
.js .plan.is-done li::before { transform: none; }
.plan .replay { background: none; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer; font: 600 14px var(--display); margin-top: 16px; min-height: 40px; padding: 0 16px; }
.plan .replay:hover { background: var(--ink); color: #fff; }

.tasks { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.task h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 12px 0 14px; }

.lola-grid { align-items: center; display: grid; gap: clamp(40px, 6vw, 96px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.lola-grid > .wp-block-image.is-style-taped { --ratio: 3 / 4; --tilt: -1.8deg; max-width: 460px; }
.lola-grid h2 { font-size: clamp(30px, 3.4vw, 46px); }
.lola-grid .lead { margin-top: 18px; max-width: 52ch; }
.specs { border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.specs > * { border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; }
.specs .dt { margin: 0; }
.specs .dd { font: 600 18px/1.35 var(--display); font-variant-numeric: tabular-nums; margin: 2px 0 0; }

.team { display: grid; gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member > * { margin: 0; }
.member .wp-block-image { margin: 0; }
.member img { aspect-ratio: 4 / 5; background: var(--wall-shade); object-fit: cover; width: 100%; }
.member h3 { font-size: 19px; margin: 14px 0 2px; }
.member p { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin: 0; }
.member p.role { color: var(--red); font: 400 16px/1.2 var(--marker); margin-top: 6px; }

.partners { display: grid; gap: clamp(28px, 3vw, 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner { border-top: 2px solid var(--ink); padding-top: 22px; }
.partner > * { margin: 0; }
.partner .wp-block-image { margin-bottom: 20px; }
.partner img { height: 64px; object-fit: contain; object-position: left; width: auto; }
.partner h3 { font-size: 20px; margin-bottom: 8px; }
.partner p { color: var(--ink-2); font-size: 15px; }

.qualified { align-items: center; display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: auto minmax(0, 1fr) auto; }
.qualified .wp-block-image { margin: 0; }
.qualified img { background: #fff; border-radius: 6px; height: 120px; padding: 10px; width: auto; }
.qualified h2 { font-size: clamp(28px, 3vw, 42px); margin: 0; }
.qualified p { margin: 10px 0 0; }

.pubs { counter-reset: pub; list-style: none; margin: 0; padding: 0; }
.pubs li { border-top: 1px solid var(--line); color: var(--ink-2); counter-increment: pub; padding: 18px 0 18px 56px; position: relative; }
.pubs li::before { color: var(--ink-3); content: "[" counter(pub) "]"; font: 600 15px var(--display); left: 0; position: absolute; top: 20px; }
.pubs strong { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* ---------- People page ---------- */
.people-hero .hero-grid { align-items: end; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.people-hero h1 { font-size: clamp(44px, 6vw, 88px); }
.people-hero .lead { font-size: clamp(18px, 1.5vw, 21px); margin-top: 24px; max-width: 48ch; }
.people-hero .hero-grid > .wp-block-image.is-style-taped { --tilt: -1.6deg; justify-self: stretch; max-width: none; }
.irsg-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 4vw, 52px); }
.irsg-chip { background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); cursor: pointer; font: 600 15px var(--display); min-height: 44px; padding: 0 18px; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.irsg-chip span { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.irsg-chip:hover { background: var(--wall-shade); }
.irsg-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.irsg-chip[aria-pressed="true"] span { color: #c9ccd2; }
.irsg-dir-group + .irsg-dir-group { margin-top: clamp(56px, 7vw, 96px); }
.irsg-dir-group > h2 { align-items: baseline; display: flex; font-size: clamp(28px, 3vw, 40px); gap: 16px; margin: 0 0 28px; }
.irsg-dir-group > h2 .count { color: var(--ink-3); font: 400 18px var(--text); }
.irsg-dir-grid { display: grid; gap: clamp(32px, 3.4vw, 48px) clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); list-style: none; margin: 0; padding: 0; }
.irsg-dir-person { position: relative; }
.irsg-dir-person .pic { aspect-ratio: 4 / 5; background: var(--wall-shade); overflow: hidden; }
.irsg-dir-person .pic img { filter: grayscale(0.25); height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s var(--ease); width: 100%; }
.irsg-dir-person:hover .pic img, .irsg-dir-person:focus-within .pic img { filter: none; transform: scale(1.03); }
.irsg-dir-person h3 { font-size: 21px; margin: 16px 0 2px; }
.irsg-dir-person h3 a { text-decoration: none; }
.irsg-dir-person h3 a:hover { color: var(--red); }
.irsg-dir-person .pos { color: var(--ink-2); font-size: 15px; margin: 0; }
.irsg-dir-person .irsg-person-links { display: flex; gap: 6px; margin: 10px 0 0; }
.irsg-dir-person .irsg-person-link { align-items: center; border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink-2); display: inline-flex; height: 40px; justify-content: center; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); width: 40px; }
.irsg-dir-person .irsg-person-link:hover { border-color: var(--red); color: var(--red); }
.irsg-dir-person .hello { background: rgba(246, 246, 243, 0.92); left: 12px; opacity: 0; padding: 2px 10px; position: absolute; top: 12px; transform: rotate(-6deg) translateY(4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); z-index: 2; }
.irsg-dir-person:hover .hello, .irsg-dir-person:focus-within .hello { opacity: 1; transform: rotate(-6deg); }
.irsg-dir-group[hidden] { display: none; }
.join-grid { align-items: center; display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.join-grid h2 { font-size: clamp(34px, 4vw, 56px); }
.join-grid p { font-size: 18px; margin: 18px 0 30px; max-width: 50ch; }
.join-grid > .wp-block-image.is-style-taped { --ratio: 4 / 3; --tilt: 2deg; }

.screen-reader-text:not(:focus) { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.site-nav .wp-block-navigation-item:not(.nav-join) .wp-block-navigation-item__content { font-size: 14px; letter-spacing: 0.03em; }
	.team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.irsg-mosaic { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.irsg-mosaic li:nth-child(n+17) { display: none; }
}
@media (max-width: 900px) {
	:root { --header-h: 76px; }
	.brand .wp-block-site-logo img { height: 52px; }
	.brand .brand__name { display: none; }
	.hero-grid, .project-hero .hero-grid, .people-hero .hero-grid, .approach-grid, .projects-layout, .idea-grid, .lola-grid, .join-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-grid > .wp-block-image.is-style-taped, .project-hero .hero-grid > .wp-block-image.is-style-taped { justify-self: center; max-width: 360px; }
	.hero-grid > .wp-block-image.is-style-taped figcaption { margin-left: 0; }
	.network { aspect-ratio: auto; display: grid; gap: 34px; }
	.network svg.links { display: none; }
	.node { bottom: auto; left: auto; max-width: none; position: relative; right: auto; top: auto; }
	.network::before { border-left: 2.5px dotted rgba(255, 255, 255, 0.7); bottom: 36px; content: ""; left: 10px; position: absolute; top: 18px; }
	.arena-board { grid-template-columns: minmax(0, 1fr); }
	.arena-board > :nth-child(n) { grid-column: auto; margin-top: 0; }
	.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
	.irsg-register { grid-template-columns: minmax(0, 1fr); }
	.paths { gap: 32px; grid-template-columns: minmax(0, 1fr); }
	.path { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); padding: 28px 0 0; }
	.path:first-child { border-top: 0; padding-top: 0; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts > :nth-child(3) { border-left: 0; padding-left: 0; }
	.facts > :nth-child(n+3) { border-top: 1px solid var(--line); }
	.tasks, .partners { grid-template-columns: minmax(0, 1fr); }
	.team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.qualified { grid-template-columns: minmax(0, 1fr); }
	.plan { position: static; }
	.irsg-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.irsg-mosaic li:nth-child(n+13) { display: none; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.strip .strip__tagline, .strip .strip__links p:not(:first-child) { display: none; }
	.timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.irsg-projects-table thead { display: none; }
	.irsg-projects-table :is(table, tbody, tr, td) { display: block; }
	.irsg-projects-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
	.irsg-projects-table td { border: 0; padding: 2px 0; }
	.team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.specs { grid-template-columns: minmax(0, 1fr); }
	.site-footer .cols { grid-template-columns: minmax(0, 1fr); }
	.irsg-dir-grid { gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.irsg-dir-person h3 { font-size: 18px; }
	.irsg-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.irsg-mosaic li:nth-child(n+9) { display: none; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { justify-content: center; width: 100%; }
}
/* Reduced motion: !important on purpose, so it beats every animation and transition, including inline ones. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js .doodle .draw { stroke-dashoffset: 0; }
	.js .doodle text { clip-path: none; }
}

/* ---------- Pages converted for the current site (text pages, microsites) ---------- */
.irsg-main:not(:has(> .wp-block-post-content > .alignfull:first-child)) { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 8vw, 112px); }
.irsg-main > .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: 32px; }
.person-photo img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Block styles kept from irsg-theme, in the doodle-wall look. */
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) { color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.is-style-stripe-blue { background-color: var(--blue); }
.is-style-stripe-red { background-color: var(--red); }
.is-style-stripe-dark { background-color: var(--ink); }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-stripe-blue p { color: var(--on-blue-2); }
.is-style-stripe-red p { color: var(--on-red-2); }
.is-style-stripe-dark p { color: #d9dbe0; }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) a:not(.wp-block-button__link) { color: #fff; }
.wp-block-post-content > :is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark).alignfull + .alignfull { margin-block-start: 0; }

.is-style-grey-box { background: var(--wall-shade); border-left: 3px solid var(--red); padding: clamp(20px, 3vw, 32px); }

.is-style-framed { background: #fff; border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 32px); position: relative; }
.is-style-framed::after { border-bottom: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); bottom: -8px; content: ""; height: 46px; pointer-events: none; position: absolute; right: -8px; width: 46px; }
.is-style-framed::before { background: var(--wall); border: 1.5px solid var(--ink); border-radius: 50%; bottom: -14px; content: ""; height: 13px; pointer-events: none; position: absolute; right: -14px; width: 13px; z-index: 1; }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .is-style-framed { background: transparent; border-color: rgba(255, 255, 255, 0.85); }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .is-style-framed::after { border-color: rgba(255, 255, 255, 0.85); }
.is-style-stripe-blue .is-style-framed::before { background: var(--blue); border-color: #fff; }
.is-style-stripe-red .is-style-framed::before { background: var(--red); border-color: #fff; }
.is-style-stripe-dark .is-style-framed::before { background: var(--ink); border-color: #fff; }
.wp-block-column > .is-style-framed:only-child { height: 100%; }

.is-style-highlight { color: var(--ink); font: 400 clamp(20px, 2vw, 26px)/1.45 var(--display); }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark, .wp-block-cover) .is-style-highlight { color: #fff; }
p.is-style-marker { color: var(--red); font: 400 clamp(18px, 1.6vw, 22px)/1.25 var(--marker); transform: rotate(-2deg); }

/* Section titles: left-aligned, with a short marker stroke under them. */
.is-style-separator-title { position: relative; padding-bottom: 14px; }
.is-style-separator-title::after { background: var(--red); border-radius: 2px; bottom: 0; content: ""; height: 3px; left: 0; position: absolute; transform: rotate(-1deg); width: 64px; }
.is-style-separator-title.has-text-align-center::after { left: calc(50% - 32px); }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .is-style-separator-title::after { background: #fff; }

.irsg-logo-card { text-align: center; }
.wp-block-column .irsg-logo-card .wp-block-image img { max-height: 120px; width: auto; }
.irsg-logo-card .wp-block-image img { max-height: 420px; width: auto; }

.irsg-team-card { margin-inline: auto; max-width: 260px; text-align: left; }
.irsg-team-card__photo { margin: 0; }
.irsg-team-card__photo img { aspect-ratio: 4 / 5; background: var(--wall-shade); filter: grayscale(0.25); height: auto; object-fit: cover; transition: filter 0.4s var(--ease); width: 100%; }
.irsg-team-card:hover .irsg-team-card__photo img { filter: none; }
.irsg-team-card__name { font-family: var(--display); font-size: 19px; font-style: normal; margin-block: 14px 2px; }
.irsg-team-card__name a { color: inherit; text-decoration: none; }
.irsg-team-card__name a:hover { color: var(--red); }
.irsg-team-card__position { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .irsg-team-card__position { color: rgba(255, 255, 255, 0.85); }

.irsg-timeline { border-left: 2px solid var(--ink); margin-left: 8px; padding-left: 2rem; }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .irsg-timeline { border-left-color: rgba(255, 255, 255, 0.6); }
.irsg-timeline__item { position: relative; }
.irsg-timeline__item + .irsg-timeline__item { margin-top: 1.75rem; }
.irsg-timeline__item::before { background: var(--wall); border: 2px solid var(--ink); border-radius: 50%; content: ""; height: 14px; left: calc(-2rem - 8px); position: absolute; top: 8px; width: 14px; }
:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) .irsg-timeline__item::before { background: transparent; border-color: #fff; }
.irsg-timeline__year { font-size: 26px; margin-bottom: 4px; }
.irsg-timeline__item h4 { font-family: var(--text); font-size: 17px; font-weight: 400; line-height: 1.5; }

.wp-block-cover:not(.is-light) :is(h1, h2, h3, h4, h5, h6, p, li) { color: #fff; }
.wp-block-cover:not(.is-light) a:not(.wp-block-button__link) { color: #fff; }

/* People grid (cards) and Research topics list (rows) on the converted pages. */
.irsg-person-card__photo img { aspect-ratio: 4 / 5; filter: grayscale(0.25); object-fit: cover; transition: filter 0.4s var(--ease); }
.irsg-person-card:hover .irsg-person-card__photo img { filter: none; }
.irsg-person-card__name { font-family: var(--display); font-size: 19px; }
.irsg-person-card__name a { text-decoration: none; }
.irsg-person-card__position { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.irsg-research-item { border-top: 1px solid var(--line); padding-top: 24px; }
.irsg-research-item__image img { filter: grayscale(1); transition: filter 0.4s var(--ease); }
.irsg-research-item:hover .irsg-research-item__image img { filter: none; }
.irsg-research-item__title { font-family: var(--display); font-size: 22px; }
.irsg-research-item__title a { text-decoration: none; }
.irsg-research-item__title a:hover { color: var(--red); }
.irsg-research-item__summary { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.irsg-research-item__more a { color: var(--red); font: 600 15px var(--display); text-decoration: none; }
.irsg-research-item__areas { color: var(--ink-3); font-size: 13px; }

.wp-block-tabs .wp-block-tab-list { border-bottom: 2px solid var(--ink); }
.wp-block-accordion-heading { font-family: var(--display); }
.irsg-research-item__title { font-style: normal; }
/* Converted pages without their own <h1> show the page title as the heading. */
.irsg-main > .irsg-page-title-fallback { font-size: var(--wp--preset--font-size--x-large); margin-bottom: clamp(28px, 4vw, 48px); }

/* QA fixes (dogfood-output/next/report.md) */
@media (max-width: 900px) { .strip .strip__tagline { display: none; } .strip .wp-block-group { justify-content: flex-end; } }
.irsg-person-details__position { color: var(--ink-2); }
.irsg-main > .lead { max-width: var(--wp--style--global--content-size); }
.wp-block-query-pagination { align-items: center; gap: 8px; margin-top: 40px; }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-query-pagination :is(a, .page-numbers) { align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; display: inline-flex; font: 600 15px var(--display); justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; text-decoration: none; }
.wp-block-query-pagination .page-numbers.current { background: var(--ink); color: #fff; }
.wp-block-query-pagination .page-numbers.dots { border-color: transparent; }
.wp-block-query-pagination a:hover { background: var(--wall-shade); color: var(--ink); }
/* Home headline tops out at 73px so it stays on three lines on wide screens. */
.hero .hero-grid h1 { font-size: clamp(36px, 5.1vw, 73px); }
/* Bands built as sections keep the section spacing, not the smaller legacy band padding. */
.section:is(.is-style-stripe-blue, .is-style-stripe-red, .is-style-stripe-dark) { padding-block: clamp(72px, 9vw, 132px); }
