body { margin: 0; background: #FDFBF7; font-family: 'Archivo', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #C23B0A; text-decoration: none; }
a:hover { color: #9A2E06; text-decoration: underline; }

/* ===== Responsive layer =====
   Desktop (1025px and up) is untouched: every rule sits inside a max-width
   media query. Sections are matched by their inline styles as the page
   renders them (rgb() colours, 0px), so the desktop markup is unchanged. */
@media (max-width: 1024px) {
  [style*="min-height: 100vh"] { overflow-x: clip; }

  /* Header: name + button on one row, links on the next */
  [style*="padding: 26px 64px"] { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center !important; gap: 12px 16px; padding: 16px 40px !important; }
  [style*="padding: 26px 64px"] > :nth-child(2) { grid-column: 1 / -1; order: 3; justify-content: flex-start !important; gap: 8px 22px !important; }
  [style*="padding: 26px 64px"] > :nth-child(3) { order: 2; }

  /* Photo (or panel) above the talk, not beside it */
  [style*="grid-template-columns: 1fr 1.1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-template-columns: 1fr 1.1fr"] > :is(div, a.x-link):first-child { border-right: 0 !important; }
  [style*="position: sticky; top: 0px; height: 100vh"] { position: relative !important; height: 460px !important; }
  [style*="padding: 88px 84px 96px"] { padding: 64px 40px 72px !important; }
  [style*="font-size: 84px"] { font-size: 64px !important; }
  [style*="font-size: 64px"] { font-size: 54px !important; }
  [style*="padding: 30px 64px"] { padding-left: 40px !important; padding-right: 40px !important; }
}

@media (max-width: 767px) {
  [style*="padding: 26px 64px"] { padding: 14px 20px !important; gap: 10px 12px; }
  [style*="padding: 26px 64px"] > :nth-child(2) { gap: 4px 16px !important; font-size: 12px !important; }
  [style*="padding: 26px 64px"] > :nth-child(2) > * { padding-top: 6px; padding-bottom: 6px; }

  [style*="position: sticky; top: 0px; height: 100vh"] { height: 320px !important; }
  [style*="position: sticky; top: 0px; height: 100vh"][style*="box-sizing: border-box"] { height: 440px !important; }
  [style*="top: 56px; left: 48px; right: 48px"] { top: 32px !important; left: 20px !important; right: 20px !important; }
  [style*="bottom: 44px; left: 48px"] { bottom: 24px !important; left: 20px !important; right: 20px; flex-wrap: wrap; gap: 6px 14px !important; }
  [style*="font-size: 44px"] { font-size: 34px !important; }

  [style*="padding: 88px 84px 96px"] { padding: 36px 20px 56px !important; }
  [style*="font-size: 84px"] { font-size: 42px !important; margin-top: 18px !important; }
  [style*="font-size: 64px"] { font-size: 36px !important; margin-top: 18px !important; }
  [style*="font-size: 25px"] { font-size: 20px !important; margin-top: 22px !important; }
  [style*="margin-top: 56px"] { margin-top: 32px !important; }
  [style*="grid-template-columns: 56px 1fr"] { grid-template-columns: 28px minmax(0, 1fr) !important; gap: 12px !important; padding-top: 26px !important; padding-bottom: 26px !important; }
  [style*="font-size: 21px"] { font-size: 19px !important; }
  [style*="font-size: 20px; line-height: 1.45"] { font-size: 18px !important; }
  [style*="gap: 28px; margin-top: 44px"] { flex-wrap: wrap; gap: 14px !important; margin-top: 32px !important; }

  [style*="padding: 30px 64px"] { flex-direction: column; gap: 12px; padding: 22px 20px !important; }
  [style*="padding: 30px 64px"] > :is(div, a.x-link):last-child { flex-wrap: wrap; gap: 4px 20px !important; }
  [style*="padding: 30px 64px"] > :is(div, a.x-link):last-child > * { padding: 8px 0; }
}

@media (max-width: 400px) {
  [style*="padding: 26px 64px"] { padding: 12px 16px !important; }
  [style*="padding: 26px 64px"] > :first-child { white-space: nowrap; }
  [style*="padding: 26px 64px"] > a:first-child { font-size: 20px !important; }
  [style*="padding: 26px 64px"] > :is(div, a.x-link):first-child { font-size: 13px !important; letter-spacing: 0.16em !important; }
  [style*="padding: 26px 64px"] > :nth-child(3) { font-size: 12px !important; padding: 10px 14px !important; }
  [style*="padding: 88px 84px 96px"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="font-size: 84px"] { font-size: 38px !important; }
  [style*="font-size: 64px"] { font-size: 32px !important; }
}
@media (max-width: 767px) {
  .talk-side { padding: 40px 20px 36px !important; gap: 14px !important; }
  .talk-side-num { font-size: 96px !important; }
}
/* Talk layout: a narrower left rail that stays in view while the talk scrolls */
@media (min-width: 1025px) {
  .talk-layout { grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1.38fr) !important; }
}
@media (max-width: 1024px) {
  .talk-side { position: static !important; }
}
/* One body style for every section: premise, talk, extras, and what audiences leave with */
[style*="font-size: 21px; line-height: 1.5"],
[style*="font-size: 16px; line-height: 1.7"],
[style*="font-size: 20px; line-height: 1.45"] {
  font-family: 'Archivo', sans-serif !important; font-size: 17px !important; line-height: 1.65 !important; color: #3D3A35 !important;
}
[style*="transform: translateY(-6px)"] { transform: translateY(-5px) !important; }
@media (max-width: 767px) {
  [style*="font-size: 21px; line-height: 1.5"],
  [style*="font-size: 16px; line-height: 1.7"],
  [style*="font-size: 20px; line-height: 1.45"] { font-size: 16px !important; }
}

/* ===== Added for the live site (not in the canvas) ===== */
html, body { margin: 0; }
a:focus-visible, .f-btn:focus-visible, .f-in:focus-visible { outline: 2px solid #E8490F; outline-offset: 2px; }
.f-in { width: 100%; box-sizing: border-box; margin: 0; font-family: inherit; line-height: inherit; outline: none; -webkit-appearance: none; appearance: none; }
.f-in::placeholder { color: inherit; opacity: 1; }
textarea.f-in { resize: vertical; display: block; }
.f-btn { border: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; text-align: center; }
form[name="contact"] .f-in:not(:placeholder-shown) { color: #FDFBF7 !important; }
form[name="newsletter"] .f-in:not(:placeholder-shown) { color: #1A1713 !important; }

/* ===== Insights post pages ===== */
.post { max-width: 720px; margin: 0 auto; padding: 72px 64px 96px; }
.post-back { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.post-meta { margin-top: 44px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #C23B0A; }
.post-title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 52px; line-height: 1.06; letter-spacing: -0.015em; margin: 16px 0 0; color: #1A1713; text-wrap: balance; }
.post-source { margin: 28px 0 0; font-weight: 700; }
.post-body { margin-top: 40px; font-size: 17px; line-height: 1.65; color: #3D3A35; overflow-wrap: anywhere; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote { margin: 0 0 1.1em; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { font-family: 'Newsreader', serif; font-weight: 500; color: #1A1713; line-height: 1.2; margin: 1.6em 0 0.5em; }
.post-body h1, .post-body h2 { font-size: 30px; } .post-body h3 { font-size: 24px; } .post-body h4 { font-size: 20px; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body img { display: block; width: 100%; height: auto; border-radius: 4px; margin: 8px 0 28px; background: #F4EFE6; }
.post-body figure { margin: 0 0 28px; } .post-body figure img { margin-bottom: 8px; }
.post-body figcaption { font-size: 14px; color: #6B645B; }
.post-body blockquote { border-left: 2px solid #E8490F; padding-left: 20px; font-family: 'Newsreader', serif; font-size: 21px; color: #1A1713; }
.post-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 28px; }
.post-gallery img { margin: 0; }
.post-embed { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 28px; background: #1A1713; }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video { display: block; width: 100%; max-height: 80vh; margin: 8px 0 28px; background: #1A1713; border-radius: 4px; }
.post-code { margin: 8px 0 28px; } .post-code iframe { max-width: 100%; }
.post-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #E7E0D5; font-weight: 600; font-size: 14px; }
.post-end .post-cta, .post-end .post-cta:hover { background: #E8490F; color: #fff; padding: 14px 26px; border-radius: 100px; text-decoration: none; }
@media (max-width: 767px) {
  .post { padding: 40px 20px 64px; }
  .post-meta { margin-top: 28px; }
  .post-title { font-size: 34px; }
  .post-body { margin-top: 28px; font-size: 16px; }
  .post-gallery { grid-template-columns: 1fr; }
}

/* ===== Site Hub fixes ===== */
/* Menu items and buttons are real links now; keep the look they had as boxes */
a.x-link { display: block; color: inherit; text-decoration: none; }
a.x-link:hover { color: inherit; text-decoration: none; }
/* Page headlines are <h1> now; keep the look they had */
h1.x-h1 { margin: 0; font: inherit; }
/* Phones: no text below 12px */
@media (max-width: 767px) {
  [style*="font-size: 10px"], [style*="font-size: 10.5px"], [style*="font-size: 11px"], [style*="font-size: 11.5px"] { font-size: 12px !important; }
}
