/* Hero - Featured — Hero - Simple header (its CSS is loaded too) + featured post cards in 6 layouts. */
html:not(#syn#syn) .syn-hs.syn-hf{--hf-H:var(--hf-h,600px);--hf-G:var(--hf-gap,16px);padding:var(--hs-pt,140px) 0 var(--hs-pb,80px)}
/* Height of a small card: half of the large one minus the gap, so 2 of them fill the large one. */
html:not(#syn#syn) .syn-hf{--hf-S:calc((var(--hf-H) - var(--hf-G)) / 2)}

/* ---------- grid ---------- */
html:not(#syn#syn) .syn-hf__cards{display:grid;gap:var(--hf-G)}
html:not(#syn#syn) .syn-hf__cards.has-top{margin-top:var(--hf-space,56px)}
html:not(#syn#syn) .syn-hf__cards.is-1-2{grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(var(--hf-S),auto))}
html:not(#syn#syn) .syn-hf__cards.is-1-2 .is-big{grid-row:1 / span 2}
html:not(#syn#syn) .syn-hf__cards.is-1-1{grid-template-columns:repeat(2,minmax(0,1fr))}
html:not(#syn#syn) .syn-hf__cards.is-1-1-1{grid-template-columns:repeat(3,minmax(0,1fr))}
html:not(#syn#syn) .syn-hf__cards.is-full,html:not(#syn#syn) .syn-hf__cards.is-short{grid-template-columns:minmax(0,1fr)}

/* ---------- overlay card (image + text at the bottom) ---------- */
html:not(#syn#syn) .syn .syn-hf__card{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:var(--hf-H);border-radius:16px;overflow:hidden;background:#1C1C1C;color:#fff;text-decoration:none;text-align:left}
html:not(#syn#syn) .syn .syn-hf__card.is-small{min-height:var(--hf-S)}
html:not(#syn#syn) .syn-hf__media{position:absolute;inset:0;z-index:-2;overflow:hidden;border-radius:inherit}
html:not(#syn#syn) .syn .syn-hf__img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .9s var(--syn-ease)}
/* shade under the text */
html:not(#syn#syn) .syn-hf__card.has-shade::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(12,12,12,.94) 0%,rgba(12,12,12,.72) 30%,rgba(12,12,12,.18) 62%,rgba(12,12,12,0) 80%);pointer-events:none}
html:not(#syn#syn) .syn-hf__card .syn-hf__body{position:relative;padding:36px 40px 38px}
html:not(#syn#syn) .syn-hf__card.is-small .syn-hf__body{padding:28px 32px 30px}

/* ---------- text ---------- */
html:not(#syn#syn) .syn .syn-hf__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px;font-family:var(--syn-sans);font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;color:var(--hf-meta,rgba(255,255,255,.8))}
html:not(#syn#syn) .syn .syn-hf__meta span + span::before{content:"";display:inline-block;width:3px;height:3px;margin:0 10px 2px 0;border-radius:50%;background:currentColor;opacity:.6;vertical-align:middle}
html:not(#syn#syn) .syn .syn-hf__title{font-family:var(--syn-serif);font-weight:400;font-size:clamp(28px,3vw,46px);line-height:1.06;letter-spacing:-.02em;color:inherit;text-transform:none;margin:0;max-width:22ch;text-wrap:balance}
html:not(#syn#syn) .syn .syn-hf__card.is-small .syn-hf__title{font-size:clamp(22px,2vw,30px);line-height:1.12;max-width:26ch}
/* 3 large: narrower columns, smaller title */
html:not(#syn#syn) .syn .syn-hf__cards.is-1-1-1 .syn-hf__title{font-size:clamp(24px,2.3vw,36px);line-height:1.1}
html:not(#syn#syn) .syn-hf__cards.is-1-1-1 .syn-hf__card .syn-hf__body{padding:30px 32px 32px}
html:not(#syn#syn) .syn-hf.is-btn-bottom .syn-hf__cards.is-1-1-1 .syn-hf__card .syn-hf__body{padding-right:84px}
html:not(#syn#syn) .syn .syn-hf__excerpt{font-family:var(--syn-sans);font-size:16px;line-height:1.5;color:rgba(255,255,255,.72);margin:16px 0 0;max-width:52ch}

/* ---------- authors ---------- */
html:not(#syn#syn) .syn-hf__authors{position:relative;z-index:1;display:flex;align-items:center;margin-top:20px}
html:not(#syn#syn) .syn-hf__author{position:relative;display:block;flex:none;transition:transform .3s var(--syn-ease)}
html:not(#syn#syn) .syn-hf__author ~ .syn-hf__author{margin-left:-10px}
html:not(#syn#syn) .syn .syn-hf__avatar{display:block;width:40px;height:40px;max-width:none;margin:0;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.9);background:#3a3a3a}
html:not(#syn#syn) .syn-hf__card.is-small .syn-hf__avatar{width:34px;height:34px}
/* hover: the photo comes to the front and lifts; name + position above it */
html:not(#syn#syn) .syn .syn-hf__authors:not(.is-list) .syn-hf__author:hover{z-index:20!important;transform:translateY(-3px)}
html:not(#syn#syn) .syn-hf__tip{position:absolute;left:-6px;bottom:calc(100% + 10px);display:flex;flex-direction:column;gap:1px;padding:8px 12px;border-radius:10px;background:var(--syn-sheet);color:var(--syn-ink);font-family:var(--syn-sans);font-size:13px;line-height:1.3;white-space:nowrap;box-shadow:0 10px 30px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .2s ease,transform .3s var(--syn-ease),visibility 0s linear .3s;pointer-events:none}
html:not(#syn#syn) .syn-hf__tip::after{content:"";position:absolute;left:22px;top:100%;border:6px solid transparent;border-top-color:var(--syn-sheet)}
html:not(#syn#syn) .syn-hf__author:hover .syn-hf__tip{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .3s var(--syn-ease),visibility 0s}
html:not(#syn#syn) .syn-hf__name{font-weight:600}
html:not(#syn#syn) .syn-hf__role{color:var(--syn-muted)}

/* ---------- arrow icon in the middle (hover / focus) ---------- */
html:not(#syn#syn) .syn-hf__icon{position:absolute;right:20px;bottom:20px;z-index:2;display:flex;align-items:center;justify-content:center;gap:8px;min-width:40px;height:40px;padding:0 10px;box-sizing:border-box;border-radius:9px;background:#fff;color:var(--syn-ink);font-family:var(--syn-sans);font-size:15px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.12);opacity:0;transform:scale(.7);transform-origin:100% 100%;transition:opacity .3s ease,transform .45s var(--syn-ease);pointer-events:none}
html:not(#syn#syn) .syn-hf.is-btn-top .syn-hf__card .syn-hf__icon{top:20px;bottom:auto;transform-origin:100% 0}
/* text over the image keeps clear of the button at the bottom right */
html:not(#syn#syn) .syn-hf.is-btn-bottom .syn-hf__card .syn-hf__body{padding-right:84px}
html:not(#syn#syn) .syn-hf.is-btn-bottom.has-btn-text .syn-hf__card .syn-hf__body{padding-right:150px}
html:not(#syn#syn) .syn-hf__icon svg{display:block;flex:none;width:18px;height:18px}
html:not(#syn#syn) .syn .syn-hf__card:hover .syn-hf__icon,html:not(#syn#syn) .syn .syn-hf__card:focus-visible .syn-hf__icon,
html:not(#syn#syn) .syn .syn-hf__split:hover .syn-hf__icon,html:not(#syn#syn) .syn .syn-hf__split:focus-visible .syn-hf__icon{opacity:1;transform:scale(1)}
html:not(#syn#syn) .syn .syn-hf__card:hover .syn-hf__img,html:not(#syn#syn) .syn .syn-hf__split:hover .syn-hf__img{transform:scale(1.05)}
html:not(#syn#syn) .syn .syn-hf__card:focus-visible,html:not(#syn#syn) .syn .syn-hf__split:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* ---------- "Image + text" layout ---------- */
html:not(#syn#syn) .syn .syn-hf__split{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:48px;color:inherit;text-decoration:none;text-align:left}
html:not(#syn#syn) .syn-hf__split .syn-hf__media{position:relative;inset:auto;z-index:0;display:block;aspect-ratio:16 / 9;border-radius:16px;background:#1C1C1C}
html:not(#syn#syn) .syn-hf__split .syn-hf__img{position:absolute;inset:0}
html:not(#syn#syn) .syn .syn-hf__split .syn-hf__title{font-size:clamp(30px,3.4vw,52px)}
html:not(#syn#syn) .syn-hs.is-dark-text .syn-hf__split .syn-hf__meta{color:var(--hf-meta,var(--syn-ink))}
html:not(#syn#syn) .syn .syn-hf__split .syn-hf__excerpt{font-size:18px;color:inherit;opacity:.68;margin-top:24px}
html:not(#syn#syn) .syn-hf__authors.is-list{flex-wrap:wrap;gap:10px 22px;margin-top:22px}
html:not(#syn#syn) .syn-hf__authors.is-list .syn-hf__author{display:flex;align-items:center;gap:10px;margin:0}
html:not(#syn#syn) .syn .syn-hf__authors.is-list .syn-hf__avatar{width:30px;height:30px;border:0}
html:not(#syn#syn) .syn-hf__who{display:flex;flex-wrap:wrap;gap:0 6px;font-family:var(--syn-sans);font-size:15px;line-height:1.3}
html:not(#syn#syn) .syn-hf__who .syn-hf__name{font-weight:500}
html:not(#syn#syn) .syn-hf__who .syn-hf__role{color:inherit;opacity:.6}

/* Accidental selection: only the text highlights, never the card, photos or icon. */
html:not(#syn#syn) .syn .syn-hf__media,html:not(#syn#syn) .syn .syn-hf__icon,html:not(#syn#syn) .syn .syn-hf__avatar{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
html:not(#syn#syn) .syn .syn-hf__card::selection,html:not(#syn#syn) .syn .syn-hf__split::selection,html:not(#syn#syn) .syn .syn-hf__body::selection,html:not(#syn#syn) .syn .syn-hf__authors::selection{background:transparent}

@media (prefers-reduced-motion:reduce){
  html:not(#syn#syn) .syn .syn-hf__img,html:not(#syn#syn) .syn-hf__icon,html:not(#syn#syn) .syn-hf__author{transition:none}
  html:not(#syn#syn) .syn .syn-hf__card:hover .syn-hf__img,html:not(#syn#syn) .syn .syn-hf__split:hover .syn-hf__img{transform:none}
}

/* ---------- tablet ---------- */
@media (max-width:992px){
  html:not(#syn#syn) .syn-hs.syn-hf{--hf-H:var(--hf-h-md,480px);padding:var(--hs-pt-md,120px) 0 var(--hs-pb-md,72px)}
  /* 1 + 2: the large card on top, the 2 small ones side by side below */
  html:not(#syn#syn) .syn-hf__cards.is-1-2{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  html:not(#syn#syn) .syn-hf__cards.is-1-2 .is-big{grid-row:auto;grid-column:1 / -1}
  html:not(#syn#syn) .syn .syn-hf__cards.is-1-2 .syn-hf__card.is-small{min-height:max(var(--hf-S),300px)}
  /* 3 large: the first one on top, the other 2 side by side below */
  html:not(#syn#syn) .syn-hf__cards.is-1-1-1{grid-template-columns:repeat(2,minmax(0,1fr))}
  html:not(#syn#syn) .syn-hf__cards.is-1-1-1 > :first-child{grid-column:1 / -1}
  html:not(#syn#syn) .syn-hf__card .syn-hf__body{padding:30px 32px 32px}
  html:not(#syn#syn) .syn .syn-hf__split{gap:32px}
}

/* ---------- phone ---------- */
@media (max-width:768px){
  html:not(#syn#syn) .syn-hs.syn-hf{--hf-H:var(--hf-h-sm,440px);padding:var(--hs-pt-sm,100px) 0 var(--hs-pb-sm,56px)}
  html:not(#syn#syn) .syn-hf__cards.has-top{margin-top:min(var(--hf-space,56px),40px)}
  html:not(#syn#syn) .syn-hf__cards.is-1-2,html:not(#syn#syn) .syn-hf__cards.is-1-1,html:not(#syn#syn) .syn-hf__cards.is-1-1-1{grid-template-columns:minmax(0,1fr)}
  html:not(#syn#syn) .syn .syn-hf__card.is-small,html:not(#syn#syn) .syn .syn-hf__cards.is-1-2 .syn-hf__card.is-small{min-height:300px}
  html:not(#syn#syn) .syn .syn-hf__card{border-radius:14px}
  html:not(#syn#syn) .syn-hf__card .syn-hf__body,html:not(#syn#syn) .syn-hf__card.is-small .syn-hf__body{padding:24px 22px 26px}
  html:not(#syn#syn) .syn .syn-hf__title{font-size:clamp(26px,7.4vw,34px)}
  html:not(#syn#syn) .syn .syn-hf__card.is-small .syn-hf__title{font-size:clamp(22px,6vw,26px)}
  html:not(#syn#syn) .syn .syn-hf__excerpt{font-size:15px}
  html:not(#syn#syn) .syn .syn-hf__split{grid-template-columns:minmax(0,1fr);gap:22px}
  html:not(#syn#syn) .syn .syn-hf__split .syn-hf__title{font-size:clamp(28px,8vw,36px)}
  html:not(#syn#syn) .syn .syn-hf__split .syn-hf__excerpt{font-size:16px;margin-top:16px}
  /* no hover on touch screens: keep the tooltip from sticking after a tap */
  html:not(#syn#syn) .syn-hf__icon{right:14px;bottom:14px}
  html:not(#syn#syn) .syn-hf.is-btn-top .syn-hf__card .syn-hf__icon{top:14px}
  html:not(#syn#syn) .syn-hf.is-btn-bottom .syn-hf__card .syn-hf__body{padding-right:22px}
  html:not(#syn#syn) .syn-hf.is-btn-bottom .syn-hf__card .syn-hf__icon{top:14px;bottom:auto;transform-origin:100% 0}
}
@media (hover:none){
  html:not(#syn#syn) .syn-hf__tip{display:none}
}
