/*
 * 110KMPS editorial layouts — isolated, additive enhancements for v4.5.0.
 * No changes to site-wide typography, menus, products, posts or theme settings.
 */

/* Both halves of each existing Company card open the same published child page. */
.kmps-v4-company-page__blocks .wp-block-columns.kmps-v4-zigzag {
  position: relative;
  isolation: isolate;
  transition: border-color .2s ease;
}
.kmps-v4-company-page__blocks .wp-block-columns.kmps-v4-zigzag:has(> .kmps-v4-zigzag__link) {
  cursor: pointer;
}
.kmps-v4-company-page__blocks .wp-block-columns.kmps-v4-zigzag:has(> .kmps-v4-zigzag__link):hover {
  border-color: #61725e;
}
.kmps-v4-company-page__blocks .kmps-v4-zigzag__link {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  text-decoration: none;
}
.kmps-v4-company-page__blocks .kmps-v4-zigzag__link:focus-visible {
  outline: 3px solid #b8d77a;
  outline-offset: -5px;
}
/* Preserve independently authored inline links if an editor adds any later. */
.kmps-v4-company-page__blocks .kmps-v4-zigzag__copy a:not(.kmps-v4-zigzag__link) {
  position: relative;
  z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
  .kmps-v4-company-page__blocks .wp-block-columns.kmps-v4-zigzag { transition: none; }
}

/* Compact Gutenberg-powered editorial layout for the four approved child pages. */
.kmps-v4-main .kmps-company-detail {
  background: #111;
  color: #f1f1f1;
}
.kmps-company-detail__container,
.kmps-company-detail__body {
  width: min(1120px, calc(100% - 2 * clamp(20px, 5vw, 64px)));
  margin-inline: auto;
}
.kmps-company-detail__hero {
  padding: clamp(58px, 6vw, 88px) 0 clamp(34px, 4vw, 56px);
  border-bottom: 1px solid #282828;
  background: radial-gradient(ellipse at 95% 5%, rgba(143,170,106,.065), transparent 47%), #111;
}
.kmps-company-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .13em;
  font-weight: 730;
  text-transform: uppercase;
  color: #b8d77a;
}
.kmps-company-detail__breadcrumb a,
.kmps-company-detail__breadcrumb a:visited {
  color: #b8d77a !important;
  text-decoration: none;
}
.kmps-company-detail__breadcrumb a:hover,
.kmps-company-detail__breadcrumb a:focus-visible { text-decoration: underline; }
.kmps-company-detail__breadcrumb span[aria-hidden] { color: #888; }
.kmps-v4-main .kmps-company-detail__title {
  font-size: clamp(36px, 4.2vw, 58px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.058em !important;
  font-weight: 800;
  color: #fff !important;
  max-width: 18ch;
  margin: 22px 0 0 !important;
  overflow-wrap: break-word;
}
.kmps-company-detail__body {
  padding-block: clamp(42px, 5vw, 66px) clamp(72px, 8vw, 112px);
  min-height: 220px;
}
.kmps-company-detail__content.entry-content {
  font-size: 16px;
  line-height: 1.84;
  color: #c5c5c5;
}
.kmps-company-detail__content.entry-content > * {
  width: min(100%, 760px);
  max-width: 100%;
  margin-inline: 0;
}
.kmps-company-detail__content.entry-content > .alignwide {
  width: 100%;
  max-width: 100%;
}
.kmps-company-detail__content.entry-content > .alignfull {
  width: 100%;
  max-width: 100%;
}
.kmps-company-detail__content.entry-content > * + * { margin-block-start: 23px; }
.kmps-company-detail__content.entry-content > :is(h2, h3, h4) {
  margin-block-start: 48px;
}
.kmps-company-detail__content.entry-content > :is(h2, h3, h4) + * {
  margin-block-start: 13px;
}
.kmps-v4-main .kmps-company-detail__content.entry-content h2 {
  font-size: clamp(27px, 3vw, 36px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.045em;
  color: #fff !important;
}
.kmps-v4-main .kmps-company-detail__content.entry-content h3 {
  font-size: clamp(21px, 2.1vw, 27px) !important;
  line-height: 1.24 !important;
  letter-spacing: -.03em;
  color: #fff !important;
}
.kmps-company-detail__content.entry-content p,
.kmps-company-detail__content.entry-content li { color: #c5c5c5; }
.kmps-company-detail__content.entry-content a { text-underline-offset: .16em; }
.kmps-company-detail__content.entry-content :is(img, video) { max-width: 100%; height: auto; }

@media (max-width: 720px) {
  .kmps-company-detail__container,
  .kmps-company-detail__body { width: calc(100% - 40px); }
  .kmps-company-detail__hero { padding-block: 55px 35px; }
  .kmps-v4-main .kmps-company-detail__title { font-size: clamp(32px, 8.5vw, 42px) !important; }
  .kmps-company-detail__body { padding-block: 36px 68px; }
  .kmps-company-detail__content.entry-content { font-size: 15px; line-height: 1.78; }
  .kmps-company-detail__content.entry-content > :is(h2, h3, h4) { margin-block-start: 34px; }
}

/* News & Updates — compact archive typography, scoped to /news.
   4px smaller than the previous 46px desktop / 36px mobile maxima. */
.kmps-v4-main .kmps-v44-archive__head h1 {
  font-size: clamp(30px, 3vw, 42px) !important;
  font-weight: 800;
  line-height: 1.09 !important;
  letter-spacing: -.052em;
  max-width: 19ch;
}
.kmps-v4-main .kmps-v44-archive__head {
  padding-bottom: clamp(28px, 3.6vw, 44px);
}
.kmps-v4-main .kmps-v44-archive__head > p:last-child {
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.68;
}
.kmps-v44-archive .kmps-v44-story-card__excerpt {
  margin: 9px 0 0;
  max-width: 48ch;
  color: #b9b9b9;
  font-size: 14px;
  line-height: 1.67;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .kmps-v4-main .kmps-v44-archive__head h1 {
    font-size: clamp(28px, 7.25vw, 32px) !important;
    line-height: 1.1 !important;
  }
}

/* Refine the news archive heading after removing the redundant JOURNAL kicker. */
.kmps-v4-main .kmps-v44-archive__head h1 { margin-top: 0 !important; }

/* 404: use compact, accessible layout, not the huge shared hero headline.
   Current draft child pages legitimately return 404 when opened anonymously. */
.not-found.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  box-sizing: border-box;
  min-height: min(68vh, 700px);
  padding-block: clamp(65px, 8vw, 100px);
}
.not-found .not-found__code {
  color: #707779;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.055em;
  margin: 0;
}
.not-found .page-hero__title {
  font-size: clamp(34px, 4.4vw, 58px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.06em;
  max-width: 18ch;
  margin: 0 !important;
  text-wrap: balance;
}
.not-found .page-hero__lead {
  color: #b4bebe;
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}
.not-found .not-found__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 24px;
  padding: 0;
  margin: 4px 0 0;
  list-style: none;
  width: auto;
}
.not-found .not-found__links li { width: auto; min-width: 0; margin: 0; padding: 0; }
.not-found .not-found__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e9e9e9;
  text-decoration: none;
}
.not-found .not-found__links a:hover,
.not-found .not-found__links a:focus-visible { text-decoration: underline; }
.not-found .search-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin: 8px 0 0;
}
.not-found .search-form__input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  min-height: 46px;
  border: 1px solid #454545;
  border-radius: 6px;
  background: #161616;
  color: #fff;
  font-size: 15px;
  padding: 10px 14px;
}
.not-found .search-form .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 46px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #101010;
  background: #eee;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 540px) {
  .not-found.container { gap: 18px; padding-block: 56px 70px; }
  .not-found .not-found__links { gap: 8px 18px; }
  .not-found .search-form { max-width: 100%; }
  .not-found .search-form .button { padding-inline: 15px; }
}
