/* Knowledge components; magazine rules below are isolated from legacy pages. */
/* Reflow only the German Knowledge page; never shrink text to conceal overflow. */
html[lang="de"] .knowledge-page :is(.page-hero h1, .page-hero p, .big-card, .content-notice) {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
html[lang="de"] .knowledge-page .page-hero :is(h1,p) { max-width: 100%; }
html[lang="de"] .knowledge-page .knowledge-overview + .content-notice {
  max-width: min(760px, calc(100% - 48px));
  white-space: normal;
}
@media (max-width: 600px) {
  html[lang="de"] .knowledge-page .page-hero {
    padding-top: calc(116px + env(safe-area-inset-top, 0px));
    padding-bottom: 24px;
  }
}
.knowledge-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .knowledge-overview .big-card {
    min-width: 0;
    padding: 36px 32px;
  }

  .knowledge-overview .big-card h2 {
    max-width: 100%;
    font-size: clamp(30px, 2.45vw, 38px);
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (min-width: 769px) {
  .knowledge-overview .big-card {
    align-items: center;
    text-align: center;
  }
}

.knowledge-back-navigation {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 24px;
}

.knowledge-back-navigation > .knowledge-back-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 20px !important;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff !important;
  color: #1d1d1f !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.knowledge-back-button:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 3px;
}

.knowledge-back-navigation > .knowledge-back-button:active { background: #e8e8ed !important; }

.knowledge-articles-page main > .knowledge-back-navigation {
  padding-top: clamp(108px, 9vw, 132px);
}

.knowledge-articles-page main > .page-hero {
  padding-top: 0 !important;
}

.knowledge-articles-page [data-public-article-detail] > .back-link {
  margin-top: 0 !important;
}

.book-page > .knowledge-back-navigation { order: 1; }

.steve-quotes-page .quote-source {
  display: block;
  margin-top: 18px;
  color: #0066cc;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .knowledge-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 40px;
  }

  .knowledge-overview .big-card {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .knowledge-overview {
    gap: 14px;
  }
}

/* German Knowledge is the existing public article reader, not a second catalogue. */
html[lang="de"] .knowledge-feed-page .page-hero {
  padding: 140px 24px 24px !important;
}
html[lang="de"] .knowledge-feed-page .page-hero h1 {
  /* 70% of the existing clamp(50px, 5vw, 74px). */
  font-size: clamp(35px, 3.5vw, 51.8px) !important;
  margin: 0;
  letter-spacing: -.035em !important;
}
.knowledge-feed-page .knowledge-article-area { min-width: 0; }
.knowledge-feed-page [data-public-articles] {
  width: min(1040px, calc(100% - 48px)) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 24px !important;
}
.knowledge-feed-page [data-public-articles]:empty,
.knowledge-feed-page [hidden] { display: none !important; }
.knowledge-feed-page .public-articles-state {
  width: min(640px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #555;
  font-size: 19px;
  line-height: 1.55;
}
.knowledge-feed-page .knowledge-jobs-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(1040px, calc(100% - 48px));
  box-sizing: border-box;
  margin: 24px auto 16px;
  padding: 4px 16px;
  border-radius: 24px;
  background: #f5f5f7;
  text-align: center;
}
.knowledge-jobs-card h2 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.knowledge-jobs-card p { max-width: 100%; margin: 0; color: #555; font-size: 16px; line-height: 1.35; }
.knowledge-jobs-card .knowledge-jobs-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 6px 14px !important;
  min-height: 36px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 14px !important;
  line-height: 1.4;
  white-space: normal;
  animation: none;
  opacity: 1;
  box-shadow: none !important;
}
.knowledge-jobs-link:focus-visible { outline: 3px solid #0066cc; outline-offset: 3px; }
.knowledge-jobs-link:active { background: #333; }
/* The existing viewport-height page shell keeps its natural-height footer.
   Only main absorbs spare height; the final card stays next to the footer. */
body.knowledge-feed-page:has(> .global-site-footer) > main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-width: 0;
}
.knowledge-feed-page > main > .knowledge-article-area { margin-bottom: 24px; }
.knowledge-feed-page > main > .knowledge-jobs-card { margin-top: auto; flex-shrink: 0; }
@media (min-width: 1024px) {
  .knowledge-feed-page .knowledge-jobs-card { padding-block: 14px; }
}
.knowledge-feed-page [data-public-article-detail] { padding-top: 140px; }
.knowledge-feed-page [data-public-article-detail] > .back-link { display: table; margin: 0 auto 24px !important; }
@media (max-width: 1023px) {
  html[lang="de"] .knowledge-feed-page .page-hero { padding-top: 126px !important; }
}
@media (max-width: 699px) {
  html[lang="de"] .knowledge-feed-page .page-hero h1 {
    /* 70% of the existing mobile clamp(42px, 13vw, 58px). */
    font-size: clamp(29.4px, 9.1vw, 40.6px) !important;
  }
  .knowledge-feed-page .knowledge-jobs-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }
  .knowledge-jobs-card h2 { grid-column: 1; grid-row: 1; }
  .knowledge-jobs-card p { grid-column: 1 / -1; grid-row: 2; }
  .knowledge-jobs-card .knowledge-jobs-link { grid-column: 2; grid-row: 1; font-size: 14px !important; padding: 6px 12px !important; }
  .knowledge-feed-page .public-articles-state { font-size: 18px; }
}
@media (max-width: 359px) {
  .knowledge-feed-page .knowledge-jobs-card { display: flex; gap: 8px; padding: 6px 12px; }
  .knowledge-jobs-card p { font-size: 15px; }
}

/* Editorial Knowledge landing: no synthetic cards or decorative imagery. */
body.knowledge-magazine > main { display: block !important; flex: 1 0 auto; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0 64px; box-sizing: border-box; }
.knowledge-magazine [hidden] { display: none !important; }
.knowledge-magazine .magazine-intro { max-width: 800px; margin-bottom: 48px; }
.knowledge-magazine .magazine-eyebrow { margin: 0 0 18px; font-size: 14px; line-height: 1.5; font-weight: 600; color: #626267; }
.knowledge-magazine .magazine-intro h1 { margin: 0 0 24px; font-size: clamp(44px, 7vw, 88px); line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
.knowledge-magazine .magazine-lead { max-width: 690px; margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: #555; }
.knowledge-magazine .magazine-preview { padding: 28px 0 36px; border-top: 1px solid #dedee2; }
.knowledge-magazine .magazine-preview h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.knowledge-magazine .magazine-preview p { margin: 0; color: #626267; font-size: 17px; line-height: 1.5; }
.knowledge-magazine .magazine-jobs { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 28px 0 0; padding: 36px; border-radius: 24px; background: #f5f5f7; }
.knowledge-magazine .magazine-jobs .magazine-eyebrow { margin-bottom: 12px; }
.knowledge-magazine .magazine-jobs h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.knowledge-magazine .magazine-jobs p:last-child { max-width: 640px; margin: 0; font-size: 17px; line-height: 1.55; color: #555; }
.knowledge-magazine .magazine-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 16px; padding: 12px 20px; min-height: 44px; box-sizing: border-box; background: #111; color: #fff; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.knowledge-magazine a:focus-visible { outline: 3px solid #0066cc; outline-offset: 4px; }
.knowledge-magazine .magazine-button:active { background: #444; }
.knowledge-magazine .magazine-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.knowledge-magazine .magazine-grid:empty { display: none; }
.knowledge-magazine .magazine-grid .article-card { display: flex; flex-direction: column; min-width: 0; padding: 0 0 24px; background: #fff; color: #111; border: 0; border-bottom: 1px solid #dedee2; border-radius: 0; box-shadow: none; text-align: left; height: auto; min-height: 0; }
.knowledge-magazine .magazine-grid .article-card-image { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.knowledge-magazine .magazine-grid .public-article-cover-empty { display: none; }
.knowledge-magazine .magazine-grid h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; white-space: normal; overflow-wrap: anywhere; }
.knowledge-magazine .magazine-grid p { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: #555; }
.knowledge-magazine .magazine-grid .card-link { margin-top: auto; color: #111; font-size: 15px; font-weight: 600; }
.knowledge-magazine .magazine-grid > :first-child { grid-column: 1/-1; }
.knowledge-magazine .magazine-grid:has(> :nth-child(2)):not(:has(> :nth-child(3))) { grid-template-columns: minmax(0,1fr); }
.knowledge-magazine .magazine-grid > :first-child h2 { font-size: clamp(28px,4vw,44px); }
.knowledge-magazine .magazine-grid > :first-child .article-card-image { max-height: 450px; }
@media (min-width: 901px) {
 .knowledge-magazine .magazine-grid:has(> :nth-child(3)):not(:has(> :nth-child(4))) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.knowledge-magazine [data-public-article-detail] { padding-top: 0; }
.knowledge-magazine .public-articles-state { width: 100%; margin: 20px 0; }
@media (max-width: 900px) {
 .knowledge-magazine .magazine-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .knowledge-magazine .magazine-jobs { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
 body.knowledge-magazine > main { width: calc(100% - 40px); padding: 108px 0 40px; }
 .knowledge-magazine .magazine-intro { margin-bottom: 32px; }
 .knowledge-magazine .magazine-grid { grid-template-columns: minmax(0,1fr); }
 .knowledge-magazine .magazine-jobs { padding: 26px 22px; gap: 24px; }
}

/* Scoped editorial corrections: no shared header/footer or admin changes. */
.knowledge-magazine .magazine-intro, .knowledge-magazine .magazine-lead { max-width: none; }
.knowledge-magazine .magazine-jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.knowledge-magazine .magazine-jobs .magazine-eyebrow { font-size: clamp(22px, 2vw, 28px); color: #1d1d1f; }
.knowledge-magazine .magazine-jobs p:last-child { max-width: none; }
.knowledge-magazine .magazine-button { justify-self: start; white-space: normal; }
@media (min-width: 1100px) {
 body.knowledge-magazine > main { width: min(1600px, calc(100% - 80px)); }
}
.steve-body .steve-copy { width: 100%; max-width: 920px !important; margin-inline: auto; text-align: center; }
.steve-body .steve-copy > p { max-width: 100% !important; margin-inline: auto !important; text-align: center; text-wrap: pretty; }
.steve-page .knowledge-back-navigation > .knowledge-back-button { min-height: 36px; padding: 7px 14px !important; font-size: 13px !important; border-color: rgba(0,0,0,.08); color: #626267 !important; }
.steve-body .steve-feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.steve-quotes-page { width: min(1280px, calc(100% - 64px)) !important; }
.steve-quotes-page .steve-quotes { width: 100% !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.steve-quotes-page .quote-card { min-width: 0; box-sizing: border-box; padding: clamp(22px, 2.4vw, 34px); }
.steve-quotes-page .quote-card :is(p,span) { text-wrap: balance; overflow-wrap: break-word; }
.steve-quotes-page .quote-source { overflow-wrap: break-word; }
/* Width overrides the HTML hint; auto height must also override its 2200px hint. */
.steve-body .book-cover { height: auto !important; max-height: none !important; aspect-ratio: auto; object-fit: contain; flex: 0 0 auto; }
@media (max-width: 999px) {
 .steve-quotes-page .steve-quotes { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}
@media (max-width: 640px) {
 .steve-body .steve-feature-cards { grid-template-columns: minmax(0, 1fr) !important; }
 .steve-quotes-page { width: calc(100% - 40px) !important; }
}
@media (pointer: coarse) {
 .steve-page .knowledge-back-navigation > .knowledge-back-button { min-height: 44px; }
}

/* Natural hero geometry survives fold/rotation without fixed-height crops. */
.steve-body .steve-page .steve-portrait {
 height: auto !important; min-height: 0 !important; max-height: none !important;
 aspect-ratio: auto !important; display: block !important;
}
.steve-body .steve-page .steve-portrait img,
.steve-body .steve-quotes-page .steve-quotes-cover {
 display: block !important; position: static !important;
 height: auto !important; min-height: 0 !important; max-height: none !important;
 aspect-ratio: auto !important; object-fit: contain !important;
}
.steve-body .steve-quotes-page .steve-quotes-cover { width: min(720px, 100%) !important; max-width: 100% !important; }
.steve-body .steve-copy > p { white-space: normal; }
.knowledge-magazine .magazine-lead { text-wrap: pretty; }
/* Separate the two sentences only where both have comfortable desktop space.
   Inline spans below this breakpoint preserve natural mobile wrapping. */
@media (min-width: 1280px) {
 .knowledge-magazine .magazine-lead { font-size: clamp(19px, 1.5vw, 24px); }
 .knowledge-magazine .magazine-lead-sentence { display: block; }
}

/* Standalone book presentation: white canvas, no inset grey panel. */
body.steve-body.book-body { background: #fff !important; }
.book-body > main { display: block !important; width: 100%; margin: 0; padding: 0; background: #fff; }
.book-body .book-page {
 display: grid !important; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) !important;
 width: min(1200px, calc(100% - 80px)) !important; box-sizing: border-box;
 margin: 0 auto !important; padding: 112px 0 80px !important;
 gap: 40px 64px !important; align-items: center !important;
 background: transparent !important; text-align: left !important;
}
.book-body .book-page > .knowledge-back-navigation { grid-column: 1 / -1; grid-row: 1; margin: 0; }
.book-body .book-page .book-cover {
 grid-column: 1; grid-row: 2; width: min(100%, 360px) !important; max-width: 100%;
 margin: 0 auto !important; border-radius: 14px !important;
 box-shadow: 0 18px 48px rgba(0,0,0,.12);
}
.book-body .book-copy { grid-column: 2; grid-row: 2; display: block !important; min-width: 0; text-align: left; }
.book-body .book-copy h1 { margin: 0 0 16px !important; font-size: clamp(42px, 4.2vw, 64px) !important; line-height: 1.04 !important; letter-spacing: -.035em !important; text-align: left; }
.book-body .book-copy p { max-width: 100% !important; margin: 0 0 20px !important; font-size: 18px !important; line-height: 1.6 !important; text-align: left; text-wrap: pretty; }
.book-body .book-copy .book-subtitle { margin-bottom: 28px !important; color: #626267 !important; font-size: 20px !important; }
.book-body .book-copy .book-links { width: 100% !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 12px !important; margin: 28px 0 0 !important; }
.book-body .book-links a { box-sizing: border-box; width: auto !important; min-width: 0 !important; min-height: 44px !important; padding: 12px 18px !important; font-size: 15px !important; line-height: 1.4 !important; white-space: normal !important; }
@media (max-width: 900px) {
 .book-body .book-page { display: flex !important; flex-direction: column !important; width: min(680px, calc(100% - 48px)) !important; padding: 112px 0 64px !important; gap: 32px !important; text-align: center !important; }
 .book-body .book-page .book-cover { width: min(280px, 60vw) !important; }
 .book-body .book-copy { width: 100%; }
 .book-body .book-copy h1, .book-body .book-copy p { text-align: center; }
 .book-body .book-copy h1 { font-size: clamp(38px, 6vw, 52px) !important; }
 .book-body .book-copy .book-links { justify-content: center !important; }
}
@media (max-width: 600px) {
 .book-body .book-page { width: calc(100% - 40px) !important; padding: 108px 0 48px !important; gap: 28px !important; }
 .book-body .book-page .book-cover { width: min(232px, 66vw) !important; }
 .book-body .book-copy h1 { font-size: clamp(34px, 9vw, 44px) !important; }
 .book-body .book-copy p { font-size: 17px !important; line-height: 1.6 !important; }
 .book-body .book-copy .book-subtitle { font-size: 18px !important; margin-bottom: 24px !important; }
 .book-body .book-copy .book-links { width: min(340px, 100%) !important; margin-inline: auto !important; flex-direction: column !important; align-items: stretch !important; }
 .book-body .book-links a { width: 100% !important; }
}
