/* AI Governance Lab: minimal visual identity adapted from the Evidence Lab concept. */
:root {
  --ink: #22252d;
  --muted: #626570;
  --plum: #803451;
  --plum-dark: #54273d;
  --sage: #647e73;
  --paper: #f8f7f4;
  --line: #dfdedb;
  --white: #fff;
  --content: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper) !important; color: var(--ink); font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
#quarto-content { overflow-x: clip; }
#title-block-header { display: none; }
#quarto-document-content { max-width: var(--content) !important; margin: 0 auto !important; padding: 44px 28px 76px !important; }
main a { color: var(--plum); text-underline-offset: 3px; }
main a:hover { color: var(--plum-dark); }
main p { line-height: 1.65; }
main h2 { color: var(--ink); font-size: clamp(1.5rem, 2.5vw, 1.95rem); font-weight: 680; letter-spacing: -.035em; margin: 52px 0 18px; }
main h3 { color: var(--ink); }
.navbar { background: var(--paper) !important; border-bottom: 1px solid var(--line); }
.navbar-brand { color: var(--ink) !important; font-weight: 750; letter-spacing: -.025em; }
.navbar .nav-link { color: var(--muted) !important; font-size: .91rem; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--plum) !important; }
.eyebrow { color: var(--plum); font-size: .71rem; font-weight: 780; letter-spacing: .14em; }
.hero { background: #efe9eb; border: 1px solid #e8dce1; border-radius: 18px; padding: clamp(30px, 5.2vw, 60px); }
.hero h1 { max-width: 760px; color: var(--ink); font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 730; margin: 18px 0; }
.hero p { max-width: 700px; color: #55515a; font-size: 1.04rem; line-height: 1.7; margin: 0; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0 14px; }
.research-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.research-card .focus-tag {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 5px 11px;
  background: #f1edef;
  border: 1px solid #e5dce0;
  border-radius: 20px;
  color: var(--plum);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
}
.research-card h3 {
  color: var(--ink);
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 14px;
}
.research-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}
.projects-cta { margin-top: 40px; }
.projects-cta h2 { margin-top: 10px; }
.featured-project { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 28px; margin-top: 20px; }
.featured-project h2, .featured-project h3 { margin: 10px 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.featured-project p { color: #555a60; }
.featured-project a { font-weight: 650; text-decoration-thickness: 1px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.project-tags span { padding: 5px 11px; background: #f1edef; border: 1px solid #e5dce0; border-radius: 20px; color: var(--plum); font-size: .75rem; font-weight: 600; }
.page-intro { padding: 16px 0 8px; }
.page-intro h1 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); letter-spacing: -.05em; line-height: 1.12; margin: 16px 0 18px; }
.page-intro p { font-size: 1.03rem; color: #565963; }
.topic-list { border-top: 1px solid var(--line); margin-top: 28px; }
.topic { border-bottom: 1px solid var(--line); padding: 24px 0; }
.topic h3 { color: var(--plum); font-size: 1.17rem; margin: 0 0 7px; }
.topic p { margin: 0; color: var(--muted); }
.quiet-note { font-size: .83rem; color: #797a7e; margin-top: 33px; }
.nav-footer { background: transparent !important; border-top: 1px solid var(--line); }
.nav-footer, .nav-footer a { color: #777981 !important; font-size: .78rem; }
@media (max-width: 700px) {
  #quarto-document-content { padding: 24px 17px 52px !important; }
  .research-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero { padding: 30px 23px; }
  .featured-project { padding: 22px; }
}

/* About: portrait beside biography, stacked on narrow screens. */
.about-profile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 20px;
}
.about-profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.about-profile-text p:first-child { margin-top: 0; }
.about-profile-text p { color: #555a60; }
@media (max-width: 600px) {
  .about-profile { grid-template-columns: 1fr; gap: 18px; }
  .about-profile-photo { width: min(190px, 55%); }
}

/* Research page: separate real-world examples from research questions. */
.topic p + p {
  margin-top: 14px;
  padding: 13px 16px;
  background: #f1eeec;
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  line-height: 1.6;
}
.topic p + p strong {
  color: var(--ink);
  font-weight: 650;
}


/* Version 2: two complementary pillars and integrated AI lifecycle. */
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 26px; }
.hero-links a { font-size: .88rem; font-weight: 650; text-decoration: none; }
.hero-links .hero-primary { background: var(--plum); color: #fff; border-radius: 8px; padding: 11px 16px; }
.hero-links .hero-primary:hover { background: var(--plum-dark); color: #fff; }
.hero-links .hero-secondary { color: var(--plum); }
.pillar-card { min-height: 258px; }
.pillar-card h3 { margin-bottom: 15px; }
.pillar-card p { margin-top: 0; }
.pillar-card p strong { display: block; font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-weight: 600; margin-bottom: 16px; }
.research-card .focus-tag-sage { background: #edf2ee; border-color: #dce8df; color: #526f61; }
.lifecycle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 25px 0 18px; }
.lifecycle-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.lifecycle-step .step-number { color: var(--plum); font-weight: 750; font-size: .75rem; letter-spacing: .08em; }
.lifecycle-step h3 { font-size: 1.23rem; font-weight: 700; margin: 11px 0 9px; }
.lifecycle-step p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }
.projects-cta { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.projects-cta h2 { margin: 12px 0 15px; }
.projects-cta p { color: var(--muted); }
.projects-cta a { font-weight: 650; color: var(--plum); text-decoration: none; }
.projects-cta a:hover { color: var(--plum-dark); text-decoration: underline; }
@media (max-width: 700px) {
  .lifecycle-grid { grid-template-columns: 1fr; gap: 12px; }
  .pillar-card { min-height: 0; }
  .projects-cta { padding: 23px; }
}

/* Connect the two pillars to a flexible project lifecycle. */
.integrated-approach {
  margin-top: 12px;
  padding-top: 30px;
}
.integrated-approach .eyebrow { margin-bottom: 10px; }
.integrated-approach h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 12px;
}
.integrated-approach p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.integrated-approach p strong { color: var(--ink); font-weight: 600; }


/* Research/Projects routes and concise European landscape section. */
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 22px 0 0; }
.work-card { padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaf8; display: flex; flex-direction: column; gap: 11px; }
.work-card h3 { margin: 0; color: var(--ink); font-size: 1.2rem; letter-spacing: -.02em; }
.work-card p { margin: 0; font-size: .9rem; line-height: 1.55; flex: 1; }
.work-card a { margin-top: 4px; }
.europe-section { margin-top: 54px; }
.europe-section h2 { margin: 10px 0 12px; }
.europe-section > p { color: var(--muted); max-width: 870px; }
.initiative-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 21px 0; }
.initiative-card { border: 1px solid var(--line); border-radius: 11px; background: var(--white); padding: 17px; min-width: 0; }
.initiative-type { color: var(--sage); font-size: .63rem; font-weight: 750; line-height: 1.35; letter-spacing: .055em; min-height: 2.6em; }
.initiative-card h3 { margin: 9px 0 8px; font-size: 1.08rem; }
.initiative-card h3 a { text-decoration: none; color: var(--plum); }
.initiative-card h3 a:hover { text-decoration: underline; }
.initiative-card p { font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 0; }
.europe-section p.initiative-disclaimer { font-size: .76rem; color: #797a7e; line-height: 1.5; margin-top: 13px; }
.projects-next { margin-top: 37px; padding: 24px; border: 1px solid var(--line); border-radius: 11px; background: #f1eeec; }
.projects-next h3 { font-size: 1.16rem; margin: 0 0 10px; }
.projects-next p { color: var(--muted); }
.projects-next a { color: var(--plum); font-weight: 650; }
@media (max-width: 850px) { .initiative-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .work-grid, .initiative-grid { grid-template-columns: 1fr; } .initiative-type { min-height: 0; } .work-card { padding: 20px; } }

/* Research ideas: project-style cards, grouped by pillar. */
.research-ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
}
.research-ideas-grid .research-idea-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px;
}
.research-idea-card h3 {
  margin: 13px 0 12px;
  font-size: 1.25rem;
  line-height: 1.35;
}
.research-idea-card > p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.research-idea-example {
  margin-top: auto;
  padding: 15px 16px;
  background: #f5f7f5;
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
}
.research-idea-example strong {
  display: block;
  font-size: .78rem;
  color: #526f61;
  margin-bottom: 7px;
}
.research-idea-example p {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 700px) {
  .research-ideas-grid { grid-template-columns: 1fr; gap: 14px; }
  .research-ideas-grid .research-idea-card { padding: 22px; }
}


/* Research cards: illustrative real-world application areas. */
.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 17px;
}
.application-tags span {
  display: inline-block;
  padding: 5px 11px;
  background: #edf2ee;
  border: 1px solid #dce8df;
  border-radius: 20px;
  color: #526f61;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Project metadata: consistent with the two pillar colors. */
.featured-project .project-tags { margin: 12px 0 8px; }
.project-tags span.pillar-tag-sage { background: #edf2ee; border-color: #dce8df; color: #526f61; }
.featured-project:not(.research-idea-card) .application-tags span { background: #f4f3f1; border-color: var(--line); color: var(--muted); }

/* Homepage: unified visual framework. */
.lab-framework { border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: clamp(18px, 4vw, 36px); margin: 24px 0; text-align: center; }
.lab-framework h3 { margin: 7px 0 8px; font-size: clamp(1.13rem, 2.4vw, 1.48rem); letter-spacing: -.025em; }
.lab-framework p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.lab-framework small { font-size: .68rem; font-weight: 750; letter-spacing: .11em; }
.framework-root { padding: 18px; border-radius: 10px; background: #f4f2ef; display: flex; flex-direction: column; gap: 4px; }
.framework-root strong { font-size: 1.4rem; letter-spacing: -.03em; }
.framework-root span { font-size: .86rem; color: var(--muted); }
.framework-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.framework-pillar { padding: 22px 16px; border-radius: 10px; border: 1px solid; }
.framework-plum { background: #f1edef; border-color: #e5dce0; color: var(--plum); }
.framework-sage { background: #edf2ee; border-color: #dce8df; color: #526f61; }
.framework-pillar h3 { color: inherit; }
.framework-fork, .framework-join { position: relative; height: 32px; color: #b9b5b3; }
.framework-fork::before, .framework-join::after { content: ''; position: absolute; left: 50%; height: 16px; border-left: 1px solid currentColor; }
.framework-fork::before { top: 0; } .framework-join::after { bottom: 0; }
.framework-fork i, .framework-join i { position: absolute; left: 25%; right: 25%; height: 16px; border: 1px solid currentColor; }
.framework-fork i { bottom: 0; border-bottom: 0; } .framework-join i { top: 0; border-top: 0; }
.framework-process, .framework-projects { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.framework-process small { color: var(--plum); }
.lab-framework .framework-note { font-size: .79rem; margin-top: 12px; }
.framework-stem { height: 25px; width: 1px; background: #b9b5b3; margin: auto; }
.framework-projects > h3 { margin: 0 0 15px; }
.framework-type { background: #f4f2ef; padding: 17px 12px; border-radius: 8px; }
.framework-type strong { display: block; margin-bottom: 5px; }
.framework-links { margin-top: 20px; }
.framework-links a { color: var(--plum); font-weight: 650; }
@media(max-width: 540px) { .framework-pair { grid-template-columns: 1fr; gap: 10px; } .framework-fork i, .framework-join i { display: none; } .framework-fork::before, .framework-join::after { height: 32px; } .framework-process, .framework-projects { padding: 15px; } }

/* Research & Ideas — lightweight horizontal cards (scoped to this page). */
main h2.agenda-governance { color: var(--plum); }
main h2.agenda-applied { color: #526f61; }
.agenda-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin: 22px 0 34px; --agenda-accent: var(--plum); --agenda-tint: #f7f6f4; }
.agenda-list.agenda-list-applied { --agenda-accent: #526f61; --agenda-tint: #f4f7f4; }
.agenda-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.agenda-card h3 { margin: 0 0 18px; font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -.025em; font-weight: 700; line-height: 1.35; }
.agenda-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.agenda-question, .agenda-example { min-width: 0; }
.agenda-label { display: block; color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 9px; }
.agenda-card p { font-size: .92rem; line-height: 1.65; margin: 0; }
.agenda-question p { color: var(--ink); }
.agenda-example { padding: 15px 17px; border-radius: 8px; background: var(--agenda-tint); }
.agenda-example .agenda-label { color: var(--agenda-accent); }
.agenda-example p { color: #555a60; }
.agenda-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.agenda-tags span { display: inline-block; border: 1px solid var(--line); border-radius: 20px; background: #f4f3f1; color: var(--muted); font-size: .75rem; font-weight: 600; padding: 4px 10px; line-height: 1.4; }
@media(max-width: 700px) {
  .agenda-card { padding: 19px; }
  .agenda-columns { grid-template-columns: minmax(0,1fr); gap: 17px; }
}
