/* IBM i Documentation landing — extra layout on top of as400-modernization-page.css */
.adoc-page .hero__inner { grid-template-columns: 1.05fr .95fr; min-height: 560px; align-items: center; }
.adoc-page .hero__title .accent { display: block; color: var(--c-emerald); }
.adoc-page .hero__sub { max-width: 34ch; margin-top: 18px; }
.adoc-page .hero__ticks {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px; padding: 0 !important; list-style: none !important;
}
.adoc-page .hero__tick {
  display: flex; align-items: flex-start; gap: 10px;
  color: #ebebeb; font-size: 1rem; line-height: 1.6;
}
.adoc-page .hero__tick-mark {
  color: var(--c-emerald); font-weight: 700; flex: none; line-height: 1.6;
}
.adoc-page .hero__tagline {
  margin-top: 18px; font-size: 1rem; font-weight: 500; color: #ebebeb; line-height: 1.6;
  max-width: 36ch;
}
.adoc-page .hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.adoc-page .btn,
.adoc-page .docs__filter,
.adoc-page .ai-cta__btn,
.adoc-page .cap-card__link {
  font-family: var(--font-head);
}
.adoc-page .btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.adoc-page .btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff !important; transform: translateY(-2px); }
.adoc-page a.btn--ghost, .adoc-page a.btn--ghost:visited, .adoc-page a.btn--ghost:hover { color: #fff !important; text-decoration: none; }

.adoc-page .hero__media {
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.adoc-page .hero__illustration {
  display: block;
  width: min(539px, 100%);
  height: auto;
  aspect-ratio: 539 / 460;
}

.adoc-page .stats__inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adoc-page .stat__label {
  font-weight: 500;
  color: rgba(255,255,255,.72);
  font-size: .8rem;
}
.adoc-page .stat:last-child .stat__num { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }

/* Why urgent — Figma 2128:2 */
.adoc-page .urgent { background: #fff; }
.adoc-page .urgent__band {
  background: linear-gradient(90deg, #0f172b 0%, #1d293d 50%, #1a3d2e 100%);
  border-radius: 28px;
  padding: 60px 64px 48px;
  color: #fff;
  overflow: hidden;
}
.adoc-page .urgent__top {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 460px);
  grid-template-areas:
    "eyebrow ."
    "title intro";
  column-gap: 33px;
  row-gap: 10px;
  justify-content: space-between;
  margin-bottom: 119px;
}
.adoc-page .urgent__eyebrow {
  grid-area: eyebrow;
  color: #41d28f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 18px;
  text-transform: uppercase;
}
.adoc-page .urgent__h {
  grid-area: title;
  color: #fff;
  font-size: 34px;
  line-height: 44px;
  letter-spacing: -.4px;
  margin: 0;
  max-width: 540px;
}
.adoc-page .urgent__intro {
  grid-area: intro;
  color: #ebebeb;
  font-size: 18px;
  line-height: 27px;
  margin: 0;
  max-width: 460px;
}
.adoc-page .urgent__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.adoc-page .urgent__rule {
  width: 40px; height: 2px; background: #41d28f; border-radius: 1px; margin-bottom: 16px;
}
.adoc-page .urgent__col h3 {
  color: #fff; font-family: var(--font-body); font-size: 19px; font-weight: 600;
  line-height: 27px; margin: 0 0 9px;
}
.adoc-page .urgent__range {
  color: #41d28f; font-size: 13px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; line-height: 18px; margin: 0 0 14px;
}
.adoc-page .urgent__col p { color: #fff; opacity: .7; font-size: 14px; line-height: 22px; margin: 0; max-width: 496px; }

/* What we document */
.adoc-page .docs { background: #fff; }
.adoc-page .docs__head { margin-bottom: 28px; }
.adoc-page .docs__filters {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 32px;
}
.adoc-page .docs__filter {
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: .875rem; font-weight: 600; line-height: 22px;
  background: #edeff3; color: #45556c;
  transition: background .2s, color .2s;
}
.adoc-page .docs__filter.is-active,
.adoc-page .docs__filter:hover { background: var(--c-primary); color: #fff; }
.adoc-page .docs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.adoc-page .doc-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column;
  min-height: 330px;
}
.adoc-page .doc-card__ico {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid #e9e9e9;
  background: linear-gradient(180deg, #fff, #f5f8ff);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.adoc-page .doc-card__ico img { width: 18px; height: 18px; }
.adoc-page .doc-card h3 {
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 600;
  color: var(--c-ink); line-height: 1.45; margin-bottom: 12px;
}
.adoc-page .doc-card p { margin: 0; color: var(--c-grey); font-size: .875rem; line-height: 1.55; flex: 1; }
.adoc-page .doc-card__rule { height: 1px; background: #e9e9e9; margin: 20px 0 14px; }
.adoc-page .doc-card__out { color: var(--c-primary); font-size: .875rem; font-weight: 500; line-height: 1.4; margin: 0; }

/* Mid CTA */
.adoc-page .cta-banner__inner { background: linear-gradient(90deg, #0f172b 0%, #1a3d2e 50%, #2d8a5f 100%); }
.adoc-page .cta-banner__inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  pointer-events: none;
}
.adoc-page .cta-banner .btn--on-dark { background: #fff; color: #242424 !important; }
.adoc-page .cta-banner .btn--on-dark:hover { background: #f8fafc; color: #242424 !important; }

/* Zones */
.adoc-page .zones { background: #fff; }
.adoc-page .zones__head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
}
.adoc-page .zones__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.adoc-page .zone-card {
  background: #f4f5f6;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 400px;
  height: auto;
}
.adoc-page .zone-card__bar {
  height: 72px; flex: none;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  letter-spacing: -.2px; line-height: 34px;
}
.adoc-page .zone-card--red .zone-card__bar { background: linear-gradient(90deg, #b81d2c, #e24a47); }
.adoc-page .zone-card--orange .zone-card__bar { background: linear-gradient(90deg, #f05a22, #f7a928); }
.adoc-page .zone-card--green .zone-card__bar { background: linear-gradient(90deg, #1f8a5c, #45c07e); }
.adoc-page .zone-card__art {
  position: relative; flex: none;
  height: 219px;
  overflow: hidden;
}
.adoc-page .zone-card__crop {
  position: absolute;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
}
.adoc-page .zone-card__crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.adoc-page .zone-card--red .zone-card__crop { width: 255px; height: 152px; top: 41px; }
.adoc-page .zone-card--orange .zone-card__crop { width: 215px; height: 135px; top: 58px; }
.adoc-page .zone-card--green .zone-card__crop { width: 214px; height: 121px; top: 72px; }
.adoc-page .zone-card h3 {
  text-align: center; font-family: var(--font-body); font-weight: 600;
  font-size: 20px; line-height: 28px; color: #1e2430;
  margin: 0 20px 10px; flex: none;
}
.adoc-page .zone-card__p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin: 0 20px 16px;
  flex: 1;
}
.adoc-page .zone-card__track {
  margin: 0 23px 22px;
  height: 28px; border-radius: 14px; background: #ddd; position: relative; overflow: hidden;
}
.adoc-page .zone-card__fill {
  height: 100%; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.adoc-page .zone-card--red .zone-card__fill { width: 40%; background: #c4222f; }
.adoc-page .zone-card--orange .zone-card__fill { width: 80%; background: #f0731f; }
.adoc-page .zone-card--green .zone-card__fill { width: 100%; background: #2d8a5f; }
.adoc-page .zone-card--green .zone-card__track { background: #dfe2e6; }
.adoc-page .zones__cta { display: flex; justify-content: center; margin-top: 40px; }

/* Engagement */
.adoc-page .engage { background: #fff; }
.adoc-page .engage__lead { margin-top: 14px; max-width: 70ch; }
.adoc-page .engage__rail {
  position: relative;
  display: flex; flex-direction: column; gap: 36px;
  margin-top: 48px;
  padding-left: 0;
}
.adoc-page .engage__rail::before {
  content: "";
  position: absolute;
  left: 27px; top: 54px; bottom: 54px;
  width: 1px; background: #e2e8f0;
}
.adoc-page .engage-step {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 28px;
  align-items: start;
}
.adoc-page .engage-step__n {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-weight: 600; font-size: 1.25rem;
  display: grid; place-items: center;
}
.adoc-page .engage-step h3 {
  font-family: var(--font-body); font-size: 1.25rem; font-weight: 600;
  color: #0f172b; margin-bottom: 10px;
}
.adoc-page .engage-step p { margin: 0 0 10px; color: var(--c-grey); font-size: .94rem; line-height: 1.6; max-width: 100%; }
.adoc-page .engage-step p:last-child { margin-bottom: 0; }

/* AI */
.adoc-page .ai-row__n {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(45,138,95,.1);
  color: var(--c-primary); font-weight: 600; font-size: .875rem; letter-spacing: .08em;
  display: grid; place-items: center; padding: 0;
}
.adoc-page .ai-row__h { font-family: var(--font-body); font-size: 1.19rem; font-weight: 600; color: #111c17; margin: 0 0 6px; }
.adoc-page .ai-row__t { color: #6b7280; font-size: .9rem; font-weight: 400; line-height: 1.55; margin: 0; }
.adoc-page .ai-cta__media { min-height: 185px; padding: 0; }
.adoc-page .ai-cta__bg { max-height: none; height: 185px; object-fit: cover; opacity: .85; border-radius: 14px; }
.adoc-page .ai-cta__btn { left: auto; right: 18px; bottom: 18px; }

/* Case studies */
.adoc-page .cases__title { margin-bottom: 16px; }
.adoc-page .cases__lead { text-align: center; margin: 0 auto 44px; }
.asm-page.adoc-page .cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-auto-rows: auto;
  gap: 24px;
  height: auto;
}
.asm-page.adoc-page .cases__grid .case { grid-row: auto; }
.adoc-page .case { min-height: 360px; border-radius: 20px; }
.adoc-page .case__tag { color: var(--c-emerald-2); }
.adoc-page .case__h { font-weight: 500; max-width: 34ch; }

/* Why */
.adoc-page .why { background: #fff; }
.adoc-page .why__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.adoc-page .why__note { margin-top: 22px; color: var(--c-grey); line-height: 1.6; max-width: 36ch; }
.adoc-page .why__logos { margin-top: 48px; display: flex; flex-direction: column; }
.adoc-page .why__logo {
  display: flex; align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #d6d6d6;
}
.adoc-page .why__logo:last-child { border-bottom: none; }
.adoc-page .why__logo img { height: 26px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.adoc-page .why__logo-txt { font-weight: 600; font-size: 1.05rem; color: #111; }
.adoc-page .why-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #edeff3;
}
.adoc-page .why-row:first-child { padding-top: 0; }
.adoc-page .why-row:last-child { border-bottom: none; }
.adoc-page .why-row__ico {
  width: 56px; height: 56px; border-radius: 12px;
  background: #eaf4ef;
  display: grid; place-items: center;
}
.adoc-page .why-row__ico img { width: 24px; height: 24px; }
.adoc-page .why-row h3 { font-family: var(--font-body); font-size: 1.19rem; font-weight: 500; color: var(--c-ink); margin: 0 0 8px; letter-spacing: -.02em; }
.adoc-page .why-row p { margin: 0; color: #4a5565; font-size: .94rem; line-height: 1.6; }

.adoc-page .contact__logo { align-self: flex-start; object-position: left; }

.adoc-page .cap-card { flex-basis: 295px; min-height: 264px; }
.adoc-page .cap-card__link { text-decoration: underline; text-underline-offset: 3px; font-size: 1.05rem; }
.adoc-page .cap__nav--prev { background: #fff; color: #242424; border-color: #fff; }
.adoc-page .cap__nav--next { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.adoc-page .faq { background: #f3f3f3; }
.adoc-page .faq-item { box-shadow: 0 8px 12px rgba(149,157,165,.2); border: none; border-radius: 5px; }
.asm-page.adoc-page .faq-item__a {
  display: none;
  overflow: hidden;
}
.asm-page.adoc-page .faq-item.is-open .faq-item__a {
  display: block;
}
.adoc-page .faq-item__a a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Publications */
.adoc-page .adoc-pub { background: #fcfdfd; }
.adoc-page .adoc-pub__header { text-align: center; margin-bottom: 28px; }
.adoc-page .adoc-pub__tabs {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.adoc-page .adoc-pub__tab {
  padding: 13px 21px; border: 1px solid #e5e7eb; background: #fff;
  border-radius: 12px; font-size: 1rem; font-weight: 400; color: #6b7280;
  transition: background .2s, color .2s, box-shadow .2s;
}
.adoc-page .adoc-pub__tab.is-active {
  background: var(--c-primary); color: #fff; border-color: var(--c-primary); font-weight: 600;
  box-shadow: 0 10px 18px rgba(0,0,0,.1);
}
.adoc-page .adoc-pub__panel { display: none; }
.adoc-page .adoc-pub__panel.is-active { display: block; }
.adoc-page .adoc-pub__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.adoc-page .adoc-pub__card {
  background: #fff; border-radius: 5px; overflow: hidden;
  box-shadow: 1px 3px 7.5px rgba(0,0,0,.1);
  transition: transform .2s;
}
.adoc-page .adoc-pub__card:hover { transform: translateY(-4px); }
.adoc-page .adoc-pub__card a { display: block; color: inherit; text-decoration: none; }
.adoc-page .adoc-pub__img { height: 200px; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.18); }
.adoc-page .adoc-pub__img img { width: 100%; height: 100%; object-fit: cover; }
.adoc-page .adoc-pub__body { padding: 20px; }
.adoc-page .adoc-pub__meta { font-size: 1rem; color: #7a7a7a; margin: 0 0 12px; }
.adoc-page .adoc-pub__card h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 12px; color: #000; }
.adoc-page .adoc-pub__desc { font-size: 1rem; color: #565656; line-height: 1.55; margin: 0 0 16px; }
.adoc-page .adoc-pub__more { font-size: 1.125rem; color: #000; }

@media (max-width: 1100px) {
  .adoc-page .docs__grid { grid-template-columns: 1fr 1fr; }
  .adoc-page .stats__inner { grid-template-columns: 1fr 1fr; }
  .adoc-page .stat:nth-child(5) { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .adoc-page .hero__inner,
  .adoc-page .urgent__top,
  .adoc-page .urgent__cols,
  .adoc-page .zones__head,
  .adoc-page .why__layout,
  .adoc-page .ai__grid { grid-template-columns: 1fr; }
  .adoc-page .hero__media { min-height: 0; height: auto; padding-bottom: 28px; }
  .adoc-page .urgent__top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "intro";
    margin-bottom: 48px;
    row-gap: 12px;
  }
  .adoc-page .urgent__band { padding: 40px 28px 36px; }
  .adoc-page .urgent__h { font-size: clamp(1.6rem, 4vw, 2.125rem); line-height: 1.25; }
  .adoc-page .hero__ctas { flex-direction: column; }
  .adoc-page .hero__ctas .btn { width: 100%; }
  .adoc-page .zones__grid,
  .adoc-page .cases__grid,
  .adoc-page .adoc-pub__cards { grid-template-columns: 1fr 1fr; }
  .adoc-page .cases__grid { grid-template-rows: auto; height: auto; }
  .adoc-page .engage__rail::before { display: none; }
}

@media (max-width: 640px) {
  .adoc-page .docs__grid,
  .adoc-page .zones__grid,
  .adoc-page .cases__grid,
  .adoc-page .adoc-pub__cards,
  .adoc-page .stats__inner { grid-template-columns: 1fr; }
  .adoc-page .stat:nth-child(5) { grid-column: auto; }
  .adoc-page .urgent__band { border-radius: 18px; padding: 32px 20px 28px; }
  .adoc-page .zone-card { height: auto; min-height: 400px; }
}
