/*
Theme Name: Dobricki
Theme URI: https://dobricki.ch
Author: Martin Dobricki
Description: Massgeschneidertes Theme für dobricki.ch — 1:1 portiert aus der bestehenden statischen Seite. Bearbeitbar über die normalen WordPress-Seiten und den Block-Editor.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dobricki
*/

/* ============================================================
   dobricki.ch — Stylesheet
   Typeface: Space Grotesk (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --bg:      #F8F7F4;
  --surface: #FFFFFF;
  --text:    #131312;
  --muted:   #6C6A65;
  --accent:  #3B35D4;
  --light:   #ECEAF8;
  --border:  #E3E1DC;
  --max-w:   1100px;
  --px:      clamp(1rem, 4vw, 2rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { display: block; max-width: 100%; }
a     { color: inherit; }
body  {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Nav --- */
nav {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--text);
}
.nav-brand b { color: var(--accent); font-weight: 700; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.125rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-links a.active { color: var(--accent); }

/* --- Shared layout --- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-subtitle {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   HOME HERO
   ============================================================ */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Full-bleed background-image variant (homepage) */
.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 68vh;
  padding: 6rem var(--px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: none;
}
.hero--bg .hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.hero--bg .hero-watermark {
  color: #fff;
  opacity: 0.025;
  right: 50%;
  transform: translate(50%, -50%);
}
.hero--bg .hero-eyebrow  { color: rgba(255,255,255,0.55); }
.hero--bg .hero-title    { color: #fff; font-size: clamp(2rem, 4.5vw, 3.75rem); margin-bottom: 0; }
.hero--bg .hero-body     { color: rgba(255,255,255,0.72); font-weight: 300; font-size: 1.0625rem; margin-left: auto; margin-right: auto; }
.hero--bg .hero-question { color: #fff; border-left-color: rgba(255,255,255,0.35); margin-left: auto; margin-right: auto; }
.hero--bg .social-row    { justify-content: center; }
.hero--bg .social-pill   { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.82); }
.hero--bg .social-pill:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.hero-watermark {
  position: absolute;
  right: -0.04em;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(10rem, 26vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 54% 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.hero-body {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.85;
  max-width: 58ch;
  margin-bottom: 0.875rem;
}
.hero-question {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 54ch;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.social-pill {
  display: inline-block;
  padding: 0.35rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); }
.hero-img-wrap {
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Research intro text block (below hero on homepage) */
.research-intro {
  max-width: 740px;
}
.research-intro p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.125rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 53, 212, 0.07);
}
.card-thumb {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--light);
  display: block;
  flex-shrink: 0;
}
.card-body   { padding: 1rem 1.125rem 1.25rem; }
.card-tag    {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.card-name   {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* --- Category dividers on Projects page --- */
.cat-block   { margin-bottom: 3.5rem; }
.cat-head    {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
}
.cat-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cat-head span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.project-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.project-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 0.75rem;
}
.project-hero .subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
  line-height: 1.75;
}
.project-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
}
.project-text { font-size: 0.9375rem; line-height: 1.85; }
.project-text p  { margin-bottom: 1.25rem; }
.project-text a  { color: var(--accent); text-decoration: none; }
.project-text a:hover { text-decoration: underline; }
.project-text .cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.015em;
  transition: opacity 0.15s;
}
.project-text .cta:hover { opacity: 0.82; text-decoration: none; }
.project-img {
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
  position: sticky;
  top: 75px;
}
.project-img img { width: 100%; display: block; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* ============================================================
   CV PAGE
   ============================================================ */
.cv-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
}
.cv-sidebar {}
.cv-photo {
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
  background: var(--border);
}
.cv-photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-interests {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}
.interest-tag {
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
}
.cv-memberships {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.membership-tag {
  padding: 0.25rem 0.75rem;
  background: var(--light);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.cv-main {}
.cv-bio {
  font-size: 0.9375rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 64ch;
}
.cv-bio a { color: var(--accent); text-decoration: none; }
.cv-bio a:hover { text-decoration: underline; }
.cv-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.cv-block { margin-bottom: 2.5rem; }

.timeline { list-style: none; }
.tl-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: baseline;
}
.tl-item:last-child { border-bottom: none; }
.tl-year {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding-top: 1px;
}
.tl-body { line-height: 1.65; }
.tl-body a { color: var(--accent); text-decoration: none; }
.tl-body a:hover { text-decoration: underline; }

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.featured-pub {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 3px;
  padding: 1.375rem 1.625rem;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.featured-label {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}
.featured-pub a { color: var(--accent); text-decoration: none; }
.featured-pub a:hover { text-decoration: underline; }

.pub-section-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2rem 0 0.5rem;
  border-bottom: 1.5px solid var(--text);
  margin-bottom: 0;
}
.pub-list { list-style: none; }
.pub-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.75;
}
.pub-item:last-child { border-bottom: none; }
.pub-item a { color: var(--accent); text-decoration: none; }
.pub-item a:hover { text-decoration: underline; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
  padding: 3rem 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  align-self: flex-start;
  padding: 0.7rem 1.875rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.015em;
  transition: opacity 0.15s;
}
.btn-submit:hover { opacity: 0.82; }
.contact-aside {}
.contact-photo {
  border-radius: 3px;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1.25rem;
}
.contact-photo img { width: 100%; display: block; }
.contact-info { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}
.footer-brand b { color: var(--accent); }
.footer-note { color: var(--muted); font-size: 0.8rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .hero-grid,
  .cv-layout,
  .project-content,
  .contact-layout { grid-template-columns: 1fr; }
  .hero--bg { min-height: 55vh; padding: 4rem var(--px); }
  .cv-photo { display: none; }
  .contact-aside { display: none; }
  .project-img { position: static; }
}
@media (max-width: 520px) {
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 400px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* ============================================================
   VIDEO EMBEDS
   ============================================================ */
.video-wrap {
  margin: 2rem 0;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
/* Shorts: vertical 9:16, max-width constrained */
.video-embed--shorts {
  padding-bottom: 0;
  height: 480px;
  max-width: 270px;
}

/* ============================================================
   WORDPRESS BLOCK-EDITOR BRIDGING
   Lets the existing design above be reused from inside the normal
   block editor via the "Styles" picker (these get the is-style- prefix)
   while pre-built content below keeps using the original plain class
   names directly. Both forms are supported everywhere.
   ============================================================ */

.card, .is-style-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover, .is-style-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 53, 212, 0.07);
}
.is-style-card .wp-block-image { margin: 0; }
.is-style-card .wp-block-image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--light);
  display: block;
}
.card-body, .is-style-card-body { padding: 1rem 1.125rem 1.25rem; }

.card-tag, .is-style-card-tag {
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.card-name, .is-style-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.card-name a, .is-style-card-name a { color: inherit; text-decoration: none; }
.card-name a:hover, .is-style-card-name a:hover { text-decoration: underline; }

.card-grid, .is-style-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.125rem;
  margin-bottom: 3.5rem;
}

.cat-head, .is-style-category-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
}
.is-style-category-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.is-style-category-head p {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

.eyebrow, .is-style-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}

.featured-pub, .is-style-featured-pub {
  background: var(--surface); border: 2px solid var(--accent); border-radius: 3px;
  padding: 1.375rem 1.625rem; margin-bottom: 2.5rem; font-size: 0.9375rem; line-height: 1.75;
}
.featured-label, .is-style-featured-label {
  font-size: 0.675rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.625rem; display:block;
}

.pub-section-head, .cv-section-label, .is-style-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 2rem 0 0.5rem; border-bottom: 1.5px solid var(--text); margin-bottom: 1rem; display:block;
}
.pub-item, .is-style-pub-item {
  padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; line-height: 1.75; display:block;
}
.pub-item a, .is-style-pub-item a { color: var(--accent); text-decoration: none; }
.pub-item a:hover, .is-style-pub-item a:hover { text-decoration: underline; }

.tl-item, .is-style-timeline-item {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  font-size: 0.9rem;
}
.tl-item:last-child, .is-style-timeline-item:last-child { border-bottom: none; }
.is-style-timeline-item > .wp-block-column:first-child {
  flex-basis: 6.5rem !important; flex-grow: 0;
  color: var(--muted); font-size: 0.8125rem; font-weight: 600;
}
.is-style-timeline-item > .wp-block-column:last-child { line-height: 1.65; }
.is-style-timeline-item p { margin: 0; }

.wp-block-buttons.is-style-cta .wp-block-button__link,
.wp-block-button.is-style-cta .wp-block-button__link,
.project-text .cta {
  display: inline-block;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 3px;
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.015em;
  border: none;
  transition: opacity 0.15s;
}
.wp-block-buttons.is-style-cta .wp-block-button__link:hover,
.wp-block-button.is-style-cta .wp-block-button__link:hover { opacity: 0.82; }

.wp-block-embed { margin: 2rem 0; }
.wp-block-embed__wrapper { border-radius: 4px; overflow: hidden; }
.wp-block-embed.is-style-shorts { max-width: 270px; }
.wp-block-embed.is-style-shorts .wp-block-embed__wrapper { padding-top: 177.78% !important; }

/* Generic content area spacing so plain paragraphs/headings inside
   the_content() read like the original hand-written pages */
.entry-content > p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--accent); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content h2 { margin: 2rem 0 1rem; font-size: 1.25rem; letter-spacing: -0.02em; }

/* WordPress wraps a Group block's children in an extra
   ".wp-block-group__inner-container" div (its default "flow" layout).
   That extra layer breaks any rule above that expects direct children
   to be the flex/grid items (card-grid, card, category-head, ...).
   Neutralising that wrapper's box-model presence makes the grandchildren
   behave as if they were direct children again, so the grid/flex rules
   above apply correctly regardless of WordPress version/behaviour. */
.is-style-card-grid > .wp-block-group__inner-container,
.is-style-card > .wp-block-group__inner-container,
.is-style-card-body > .wp-block-group__inner-container,
.is-style-category-head > .wp-block-group__inner-container,
.is-style-featured-pub > .wp-block-group__inner-container,
.card-grid > .wp-block-group__inner-container,
.card > .wp-block-group__inner-container,
.card-body > .wp-block-group__inner-container,
.cat-head > .wp-block-group__inner-container,
.featured-pub > .wp-block-group__inner-container {
  display: contents;
}

/* Fix: on the static site, the intro text and the card grid below it lived
   in two SEPARATE sections. In the WordPress port both ended up inside a
   single ".research-intro" container, whose 740px max-width (meant only
   for the reading-width of the intro paragraph) was therefore also
   squeezing the card grid, capping it to 2 narrow columns no matter the
   window size. Un-constrain the container itself and re-apply the 740px
   reading width only to its direct-child paragraphs (intro + social row),
   leaving the eyebrow label and the card grid free to use the full width. */
.research-intro { max-width: none; }
.research-intro > p:not(.is-style-eyebrow) {
  max-width: 740px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
.research-intro > p.is-style-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Contact form success/error notice already inline-styled in functions.php;
   nothing extra required here. */
