/* IFABER home: a more personal introduction and calm, readable support areas. */
body.editorial-site.editorial-home .ed-signature-row.shell {
  grid-template-columns:minmax(330px,.85fr) minmax(0,1.15fr);
  gap:clamp(32px,5vw,76px);
  padding:36px 0 40px;
  min-height:0;
  border-bottom:1px solid #ded2c5;
}
body.editorial-site.editorial-home .ed-signature-row .ifm-portrait.if-portrait-placeholder {
  grid-template-columns:124px minmax(0,1fr);
  gap:26px;
  min-width:0;
  max-width:none;
}
body.editorial-site.editorial-home .ed-signature-row .ifm-portrait > img {
  width:124px;height:124px;
  border-radius:10px;
  object-fit:cover;
  object-position:center;
}
body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption {
  font-size:clamp(23px,2vw,29px);
  line-height:1.3;
  letter-spacing:-.035em;
  min-width:0;
}
body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption span {
  font-size:13px;line-height:1.65;
  letter-spacing:0;
  margin-top:9px;
  color:#64534f;
}
body.editorial-site.editorial-home .ed-signature-row .hero-links {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  min-width:0;
}
body.editorial-site.editorial-home .ed-signature-row .hero-links a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:80px;
  min-width:0;
  padding:20px 18px;
  background:#f0e6dd;
  border:1px solid transparent;
  border-radius:10px;
  font-size:13px;
  line-height:1.6;
  white-space:normal;
  color:#702b40;
  transition:background-color .18s ease,border-color .18s ease;
}
body.editorial-site.editorial-home .ed-signature-row .hero-links a span {
  flex:0 0 auto;font-size:20px;
}
body.editorial-site.editorial-home .ed-signature-row .hero-links a:hover {
  background:#e9dad2;border-color:#c6aba8;
}
body.editorial-site.editorial-home .ed-signature-row a:focus-visible {
  outline:3px solid #702b40;outline-offset:4px;
}

/* Distinct warm surfaces separate subjects without making them look like a form. */
body.editorial-site.editorial-home .ed-support > .shell {
  grid-template-columns:minmax(0,.78fr) minmax(0,1.52fr);
  gap:28px clamp(40px,5vw,76px);
}
body.editorial-site.editorial-home .ed-support .section-intro {
  position:static;
}
body.editorial-site.editorial-home .ed-support .section-intro > p:last-child {
  color:#64534f;
}
body.editorial-site.editorial-home .ed-support .area-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  border:0;
  min-width:0;
  background:none;
}
body.editorial-site.editorial-home .ed-support .area-list > article {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto 1fr;
  align-content:start;
  gap:17px;
  min-width:0;
  margin:0;
  padding:32px;
  border:0;
  border-radius:14px;
  background:#f3e6e3;
  box-shadow:none;
  transform:none;
  transition:none;
}
body.editorial-site.editorial-home .ed-support .area-list > article:nth-child(2),
body.editorial-site.editorial-home .ed-support .area-list > article:nth-child(3) {
  background:#eee6d9;
}
body.editorial-site.editorial-home .ed-support .area-list > article:is(:hover,:focus-within) {
  transform:none;box-shadow:none;
}
body.editorial-site.editorial-home .ed-support .area-list .index {
  grid-column:1;grid-row:1;
  padding:0;margin:0 0 7px;
  color:#702b40;
  font:600 12px/1.5 Manrope,Arial,sans-serif;
  letter-spacing:.08em;
}
body.editorial-site.editorial-home .ed-support .area-list h3 {
  grid-column:1;grid-row:2;
  font-size:clamp(25px,2.1vw,32px);
  line-height:1.2;
  max-width:19ch;
  margin:0;
  color:#532c37;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
body.editorial-site.editorial-home .ed-support .area-list p {
  grid-column:1;grid-row:3;
  font-size:15px;
  line-height:1.85;
  max-width:none;
  margin:0;padding:0;
  color:#584b48;
}
body.editorial-site.editorial-home .ed-support .section-end {
  padding-top:2px;
}
body.editorial-site.editorial-home .ed-support .section-end .text-link {
  font-size:14px;line-height:1.6;min-height:48px;
}

/* Existing institution marks sit directly on the section, without white tiles. */
body.editorial-site.editorial-home .personal-note .ifm-credentials {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(40px,6vw,84px);
  margin-top:60px;
  padding:42px 0 4px;
  border-top:1px solid #c9bfac;
}
body.editorial-site.editorial-home .personal-note .ifm-credentials > article {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:124px auto;
  gap:24px;
  align-items:start;
  min-width:0;
  margin:0;padding:0;
  border:0;
  background:none;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-mark,
body.editorial-site.editorial-home .personal-note .ifm-credential-mark.is-swps {
  display:flex;align-items:center;justify-content:flex-start;
  width:100%;height:124px;min-height:0;
  padding:0;
  background:transparent;
  border:0;border-radius:0;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-mark img {
  display:block;
  width:300px;height:auto;
  max-width:min(100%,300px);
  max-height:120px;
  object-fit:contain;
  mix-blend-mode:multiply;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-copy .eyebrow {
  font-size:10px;line-height:1.6;margin-bottom:10px;color:#702b40;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-copy h3 {
  font-size:23px;line-height:1.3;margin-bottom:14px;color:#382c2d;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-copy p:not(.eyebrow) {
  font-size:14px;line-height:1.85;max-width:46ch;color:#584b48;
}

@media(max-width:1100px) {
  body.editorial-site.editorial-home .ed-signature-row.shell {
    grid-template-columns:minmax(285px,.9fr) minmax(0,1.1fr);gap:28px;
  }
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait.if-portrait-placeholder {
    grid-template-columns:108px minmax(0,1fr);gap:20px;
  }
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait > img {width:108px;height:108px}
  body.editorial-site.editorial-home .ed-signature-row .hero-links {gap:8px}
  body.editorial-site.editorial-home .ed-signature-row .hero-links a {padding:16px 12px;font-size:12px;gap:8px}
  body.editorial-site.editorial-home .ed-support > .shell {display:block}
  body.editorial-site.editorial-home .ed-support .section-intro {max-width:67ch;margin-bottom:36px}
  body.editorial-site.editorial-home .ed-support .section-intro > p:last-child {max-width:60ch}
  body.editorial-site.editorial-home .ed-support .area-list > article {padding:32px}
  body.editorial-site.editorial-home .ed-support .section-end {margin-top:24px}
}
@media(max-width:760px) {
  body.editorial-site.editorial-home .ed-signature-row.shell {display:block;padding-block:28px 32px}
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait.if-portrait-placeholder {
    grid-template-columns:112px minmax(0,1fr);gap:22px;max-width:none;
  }
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait > img {width:112px;height:112px}
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption {font-size:25px}
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption span {font-size:12px}
  body.editorial-site.editorial-home .ed-signature-row .hero-links {
    grid-template-columns:minmax(0,1fr);margin-top:25px;gap:9px;
  }
  body.editorial-site.editorial-home .ed-signature-row .hero-links a {min-height:56px;padding:15px 18px;font-size:14px}
  body.editorial-site.editorial-home .ed-support .area-list {grid-template-columns:minmax(0,1fr);gap:14px}
  body.editorial-site.editorial-home .ed-support .area-list > article {padding:28px;gap:15px}
  body.editorial-site.editorial-home .ed-support .area-list .index {margin-bottom:3px}
  body.editorial-site.editorial-home .ed-support .area-list h3 {font-size:28px;max-width:none}
  body.editorial-site.editorial-home .ed-support .area-list p {font-size:15px;line-height:1.85}
  body.editorial-site.editorial-home .personal-note .ifm-credentials {
    grid-template-columns:minmax(0,1fr);gap:38px;margin-top:42px;padding-top:32px;
  }
  body.editorial-site.editorial-home .personal-note .ifm-credentials > article {grid-template-rows:auto auto;gap:20px}
  body.editorial-site.editorial-home .personal-note .ifm-credential-mark,
  body.editorial-site.editorial-home .personal-note .ifm-credential-mark.is-swps {height:auto;min-height:88px}
  body.editorial-site.editorial-home .personal-note .ifm-credential-mark img {width:265px;max-width:100%;max-height:110px}
  body.editorial-site.editorial-home .personal-note .ifm-credential-copy h3 {font-size:22px}
}
@media(max-width:360px) {
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait.if-portrait-placeholder {
    grid-template-columns:96px minmax(0,1fr);gap:18px;
  }
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait > img {width:96px;height:96px}
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption {font-size:22px}
  body.editorial-site.editorial-home .ed-signature-row .ifm-portrait figcaption span {font-size:12px}
  body.editorial-site.editorial-home .ed-support .area-list > article {padding:24px}
  body.editorial-site.editorial-home .ed-support .area-list h3 {font-size:25px}
}
@media(prefers-reduced-motion:reduce) {
  body.editorial-site.editorial-home .ed-signature-row .hero-links a {transition:none}
}
@media print {
  body.editorial-site.editorial-home .ed-signature-row .hero-links a,
  body.editorial-site.editorial-home .ed-support .area-list > article {background:transparent;border:1px solid #b6aaa5}
  body.editorial-site.editorial-home .ed-support .area-list > article,
  body.editorial-site.editorial-home .personal-note .ifm-credentials > article {break-inside:avoid}
  body.editorial-site.editorial-home .personal-note .ifm-credential-mark img {mix-blend-mode:normal}
}

/* Original institution marks: a monochrome SWPS variant and the compact IPiN emblem. */
body.editorial-site.editorial-home .personal-note .ifm-credential-mark img[src$="logo-swps-original.svg"] {
  filter:brightness(0);
  mix-blend-mode:normal;
}
body.editorial-site.editorial-home .personal-note .ifm-credential-mark img[src$="logo-ipin-symbol.webp"] {
  width:116px;height:auto;max-width:100%;max-height:120px;
  mix-blend-mode:normal;
}
