/*
 * Company page history comparison.
 * Option A remains the original horizontal timeline.
 * Option B adapts the supplied YTL company-history HTML module.
 */
#page-company .history-layout-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 13px;
  border: 1px solid rgba(10, 39, 71, .12);
  border-radius: 999px;
  padding: 0 11px;
  color: #5e7387;
  background: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#page-company .history-alternative-section {
  background: #f3f7f5;
}

#page-company .ytl-history {
  --ytl-navy-950: #071d35;
  --ytl-navy-900: #0a2747;
  --ytl-slate-700: #425a70;
  --ytl-slate-600: #5e7387;
  --ytl-slate-500: #76899a;
  --ytl-slate-300: #ccd8e2;
  --ytl-slate-200: #e2eaf0;
  --ytl-slate-100: #f4f8fa;
  --ytl-green-700: #218b32;
  --ytl-green-600: #2fab43;
  --ytl-green-500: #49bd52;
  --ytl-green-200: #bfe8c5;
  --ytl-green-100: #eaf8ec;
  --ytl-white: #fff;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(10, 39, 71, .09);
  border-radius: 24px;
  background: var(--ytl-white);
  box-shadow: 0 22px 60px rgba(7, 29, 53, .09);
}

#page-company .ytl-history__header {
  position: relative;
  overflow: hidden;
  padding: 46px 48px 40px;
  background:
    radial-gradient(circle at 91% 7%, rgba(73, 189, 82, .15), transparent 31%),
    linear-gradient(135deg, #fbfefc, #f1f8f3);
}

#page-company .ytl-history__header::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -95px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(47, 171, 67, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(47, 171, 67, .025);
  pointer-events: none;
}

#page-company .ytl-history__header > .history-layout-label {
  position: relative;
  z-index: 2;
  margin: 0 0 22px;
  color: var(--ytl-green-700);
  border-color: rgba(47, 171, 67, .2);
  background: rgba(255, 255, 255, .72);
}

#page-company .ytl-history__eyebrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 14px;
  color: var(--ytl-green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

#page-company .ytl-history__eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: var(--ytl-green-600);
}

#page-company .ytl-history__title {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--ytl-navy-950);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

#page-company .ytl-history__intro {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--ytl-slate-600);
  font-size: 15px;
  line-height: 1.75;
}

#page-company .ytl-history__flow-map {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

#page-company .ytl-history__flow-map::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, var(--ytl-green-200), var(--ytl-green-500), var(--ytl-green-200));
}

#page-company .ytl-history__flow-step {
  position: relative;
  min-width: 0;
  padding-top: 67px;
  text-align: center;
}

#page-company .ytl-history__flow-node {
  position: absolute;
  top: 0;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 6px solid #f5faf6;
  border-radius: 50%;
  color: var(--ytl-white);
  background: var(--ytl-green-600);
  box-shadow: 0 0 0 1px rgba(47, 171, 67, .2), 0 7px 18px rgba(47, 171, 67, .18);
  font-size: 13px;
  font-weight: 850;
  transform: translateX(-50%);
}

#page-company .ytl-history__flow-period {
  display: block;
  margin-bottom: 6px;
  color: var(--ytl-green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-company .ytl-history__flow-title {
  display: block;
  color: var(--ytl-navy-900);
  font-size: 14px;
  line-height: 1.4;
}

#page-company .ytl-history__journey {
  position: relative;
  border-top: 1px solid var(--ytl-slate-200);
  padding: 46px 48px 58px;
  background: var(--ytl-white);
}

#page-company .ytl-history__journey::before {
  content: "";
  position: absolute;
  top: 82px;
  bottom: 66px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--ytl-green-500), var(--ytl-green-200) 50%, var(--ytl-green-500));
  transform: translateX(-50%);
}

#page-company .ytl-history__phase {
  position: relative;
}

#page-company .ytl-history__phase + .ytl-history__phase {
  margin-top: 50px;
  padding-top: 4px;
}

#page-company .ytl-history__phase-heading {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  margin: 0 auto 28px;
  border: 1px solid rgba(47, 171, 67, .22);
  border-radius: 16px;
  padding: 17px 24px;
  background: linear-gradient(135deg, #f2faf3, #fbfefc);
  box-shadow: 0 9px 24px rgba(7, 29, 53, .06);
  text-align: center;
}

#page-company .ytl-history__phase-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  color: var(--ytl-green-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#page-company .ytl-history__phase-meta::before,
#page-company .ytl-history__phase-meta::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--ytl-green-200);
}

#page-company .ytl-history__phase-title {
  margin: 0 0 5px;
  color: var(--ytl-navy-950);
  font-size: 20px;
  line-height: 1.3;
}

#page-company .ytl-history__phase-summary {
  margin: 0;
  color: var(--ytl-slate-600);
  font-size: 12.5px;
  line-height: 1.55;
}

#page-company .ytl-history__events {
  display: grid;
  gap: 18px;
}

#page-company .ytl-history__event {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
}

#page-company .ytl-history__event-marker {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  border: 5px solid var(--ytl-white);
  border-radius: 50%;
  background: var(--ytl-green-600);
  box-shadow: 0 0 0 2px var(--ytl-green-200);
}

#page-company .ytl-history__event-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  border: 1px solid var(--ytl-slate-200);
  border-radius: 14px;
  padding: 19px 20px 18px;
  background: var(--ytl-white);
  box-shadow: 0 8px 22px rgba(7, 29, 53, .045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#page-company .ytl-history__event.is-left .ytl-history__event-card {
  grid-column: 1;
  grid-row: 1;
}

#page-company .ytl-history__event.is-right .ytl-history__event-card {
  grid-column: 3;
  grid-row: 1;
}

#page-company .ytl-history__event-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 1px;
  background: var(--ytl-green-200);
}

#page-company .ytl-history__event.is-left .ytl-history__event-card::after {
  right: -39px;
}

#page-company .ytl-history__event.is-right .ytl-history__event-card::after {
  left: -39px;
}

#page-company .ytl-history__event-card:hover {
  border-color: rgba(47, 171, 67, .42);
  box-shadow: 0 13px 30px rgba(7, 29, 53, .08);
  transform: translateY(-2px);
}

#page-company .ytl-history__year {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-bottom: 10px;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--ytl-green-700);
  background: var(--ytl-green-100);
  font-size: 12px;
  font-weight: 850;
}

#page-company .ytl-history__event-title {
  margin: 0 0 7px;
  color: var(--ytl-navy-900);
  font-size: 15px;
  line-height: 1.4;
}

#page-company .ytl-history__event-text {
  margin: 0;
  color: var(--ytl-slate-600);
  font-size: 12.5px;
  line-height: 1.6;
}

#page-company .ytl-history__end {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 32px auto 0;
  border: 7px solid var(--ytl-white);
  border-radius: 50%;
  color: var(--ytl-white);
  background: var(--ytl-green-600);
  box-shadow: 0 0 0 1px var(--ytl-green-200);
}

#page-company .ytl-history__end svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 760px) {
  #page-company .ytl-history {
    border-radius: 18px;
  }

  #page-company .ytl-history__header {
    padding: 32px 22px 30px;
  }

  #page-company .ytl-history__title {
    font-size: 32px;
  }

  #page-company .ytl-history__intro {
    font-size: 14px;
  }

  #page-company .ytl-history__flow-map {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 28px;
  }

  #page-company .ytl-history__flow-map::before {
    top: 21px;
    bottom: 21px;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
  }

  #page-company .ytl-history__flow-step {
    min-height: 52px;
    padding: 5px 0 5px 58px;
    text-align: left;
  }

  #page-company .ytl-history__flow-node {
    top: 2px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-width: 5px;
    font-size: 11px;
  }

  #page-company .ytl-history__journey {
    padding: 34px 18px 42px;
  }

  #page-company .ytl-history__journey::before {
    top: 72px;
    bottom: 52px;
    left: 31px;
    transform: none;
  }

  #page-company .ytl-history__phase + .ytl-history__phase {
    margin-top: 40px;
  }

  #page-company .ytl-history__phase-heading {
    width: calc(100% - 26px);
    margin: 0 0 24px 26px;
    padding: 15px 16px;
    text-align: left;
  }

  #page-company .ytl-history__phase-meta::before,
  #page-company .ytl-history__phase-meta::after {
    display: none;
  }

  #page-company .ytl-history__phase-title {
    font-size: 18px;
  }

  #page-company .ytl-history__event {
    grid-template-columns: 27px minmax(0, 1fr);
    min-height: 0;
  }

  #page-company .ytl-history__event-marker {
    grid-column: 1;
    grid-row: 1;
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  #page-company .ytl-history__event.is-left .ytl-history__event-card,
  #page-company .ytl-history__event.is-right .ytl-history__event-card {
    grid-column: 2;
    grid-row: 1;
  }

  #page-company .ytl-history__event-card {
    min-height: 0;
    padding: 17px 17px 16px;
  }

  #page-company .ytl-history__event.is-left .ytl-history__event-card::after,
  #page-company .ytl-history__event.is-right .ytl-history__event-card::after {
    top: 50%;
    left: -17px;
    right: auto;
    width: 16px;
  }

  #page-company .ytl-history__end {
    margin-left: -7px;
  }
}

/* Compact Company-page milestone preview. */
#page-company .company-history-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

#page-company .company-history-summary__card {
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 39, 71, .055);
}

#page-company .company-history-summary__media {
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}

#page-company .company-history-summary__body {
  padding: 22px;
}

#page-company .company-history-summary__body time {
  color: #2faa43;
  font-size: 22px;
  font-weight: 900;
}

#page-company .company-history-summary__body h3 {
  margin: 9px 0 10px;
  color: #0a2747;
  font-size: 19px;
}

#page-company .company-history-summary__body p {
  margin: 0;
  color: #5f6d79;
  line-height: 1.65;
}

/* Standalone YTL History page introduction. */
#page-company.ytl-history-page {
  background: #fff;
}

#page-company .ytl-history-page-hero {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3, 33, 62, .88), rgba(3, 33, 62, .54) 58%, rgba(3, 33, 62, .18)),
    var(--history-hero-bg, linear-gradient(135deg, #0a2747, #315f78)) center / cover no-repeat;
}

#page-company .ytl-history-page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

#page-company .ytl-history-page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
}

#page-company .ytl-history-page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  line-height: 1.75;
}

#page-company .ytl-history-page-content {
  padding: 88px 0;
  background: #f4f7f8;
}

#page-company.ytl-history-page .ytl-history {
  max-width: 1180px;
  margin: 0 auto;
}

#page-company .ytl-history__event-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

#page-company .ytl-history__event.has-media .ytl-history__event-card {
  overflow: hidden;
  padding: 0;
}

#page-company .ytl-history__event-media-wrap {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  background: #e8edef;
}

#page-company .ytl-history__event.has-media .ytl-history__event-content {
  padding: 20px 22px 22px;
}

#page-company .ytl-history__event.has-media .ytl-history__event-card:hover .ytl-history__event-media {
  transform: scale(1.025);
}

#page-company .ytl-history__event.is-closing {
  display: block;
  min-height: 0;
  margin-top: 30px;
}

#page-company .ytl-history__event.is-closing .ytl-history__event-card {
  display: grid;
  grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "content media";
  min-height: 440px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: linear-gradient(145deg, #082b4c, #0a355c);
  box-shadow: 0 24px 58px rgba(7, 29, 53, .2);
}

#page-company .ytl-history__event.is-closing .ytl-history__event-media-wrap {
  grid-area: media;
  min-height: 440px;
}

#page-company .ytl-history__event.is-closing .ytl-history__event-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 43, 76, .22), rgba(8, 43, 76, 0) 28%);
}

#page-company .ytl-history__event.is-closing .ytl-history__event-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 58px 54px;
}

#page-company .ytl-history__event.is-closing .ytl-history__year {
  align-self: flex-start;
  min-height: 22px;
  margin-bottom: 12px;
  border-radius: 7px;
  padding: 3px 9px;
  color: #218b32;
  background: #eaf8ec;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: normal;
}

#page-company .ytl-history__event.is-closing .ytl-history__event-title {
  max-width: 430px;
  margin-bottom: 24px;
  color: #fff !important;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: normal;
  text-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

#page-company .ytl-history__event.is-closing .ytl-history__event-text {
  max-width: 510px;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
}

#page-company .ytl-history__event.is-closing .ytl-history__event-marker,
#page-company .ytl-history__event.is-closing .ytl-history__event-card::after {
  display: none;
}

@media (max-width: 980px) {
  #page-company .company-history-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "media";
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-media-wrap {
    min-height: 320px;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-content {
    padding: 42px 40px 44px;
  }
}

@media (max-width: 680px) {
  #page-company .company-history-summary__grid {
    grid-template-columns: 1fr;
  }

  #page-company .ytl-history-page-hero {
    min-height: 500px;
  }

  #page-company .ytl-history-page-hero__inner {
    width: calc(100% - 32px);
  }

  #page-company .ytl-history-page-content {
    padding: 58px 16px;
  }

  #page-company .ytl-history__event-media-wrap {
    min-height: 178px;
  }

  #page-company .ytl-history__event.is-closing {
    margin: 28px 0 0 27px;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-card {
    min-height: 0;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-media-wrap {
    min-height: 220px;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-content {
    padding: 34px 24px 36px;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-title {
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1.14;
  }

  #page-company .ytl-history__event.is-closing .ytl-history__event-text {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* Gonnella-inspired illustrated timeline with compact, alternating cards. */
#page-company .ytl-history__events {
  gap: 32px;
}

#page-company .ytl-history__events::before {
  display: none;
}

#page-company .ytl-history__event:not(.is-closing) {
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  min-height: 0;
  align-items: start;
}

#page-company .ytl-history__event:not(.is-closing) > .ytl-history__year {
  grid-row: 1;
  align-self: start;
  min-height: 0;
  margin: 14px 0 0;
  padding: 0;
  color: #218b32;
  background: transparent;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.2;
}

#page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__year {
  grid-column: 3;
  justify-self: start;
}

#page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__year {
  grid-column: 1;
  justify-self: end;
}

#page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-marker {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 24px;
  height: 24px;
  margin-top: 11px;
  border: 5px solid #eef7f0;
  background: #218b32;
  box-shadow: 0 0 0 2px #b9dfc0;
}

#page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-card {
  grid-row: 1;
  width: min(100%, 424px);
  min-height: 0;
  overflow: visible;
  border: 1px solid #dce6e0;
  border-top: 3px solid #218b32;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(7, 29, 53, .08);
}

#page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card {
  grid-column: 1;
  justify-self: end;
}

#page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card {
  grid-column: 3;
  justify-self: start;
}

#page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-card::before {
  content: "";
  position: absolute;
  top: 15px;
  width: 18px;
  height: 18px;
  border-top: 1px solid #dce6e0;
  border-right: 1px solid #dce6e0;
  background: #fff;
}

#page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card::before {
  right: -10px;
  transform: rotate(45deg);
}

#page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card::before {
  left: -10px;
  transform: rotate(225deg);
}

#page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-card::after {
  display: none;
}

#page-company .ytl-history__event:not(.is-closing).has-media > .ytl-history__event-card {
  padding-top: 22px;
}

#page-company .ytl-history__event:not(.is-closing) .ytl-history__event-media-wrap {
  width: 340px;
  max-width: 100%;
  height: 228px;
  min-height: 228px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e0e7e3;
  border-radius: 9px;
  background: #f5f7f8;
}

#page-company .ytl-history__event:not(.is-closing) .ytl-history__event-media {
  width: 340px;
  max-width: 100%;
  height: 228px;
  object-fit: contain;
}

#page-company .ytl-history__event:not(.is-closing) .ytl-history__event-content,
#page-company .ytl-history__event:not(.is-closing).has-media .ytl-history__event-content {
  padding: 20px 4px 5px;
}

#page-company .ytl-history__event:not(.is-closing):not(.has-media) .ytl-history__event-content {
  padding-top: 4px;
}

#page-company .ytl-history__event:not(.is-closing) .ytl-history__event-title {
  margin-bottom: 9px;
  font-size: 20px;
  line-height: 1.3;
}

#page-company .ytl-history__event:not(.is-closing) .ytl-history__event-text {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  #page-company .ytl-history__event:not(.is-closing) {
    grid-template-columns: 58px 38px minmax(0, 1fr);
  }

  #page-company .ytl-history__journey::before {
    left: 125px;
    transform: none;
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__year,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__year {
    grid-column: 1;
    justify-self: end;
  }

  #page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-marker {
    grid-column: 2;
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card {
    grid-column: 3;
    justify-self: start;
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card::before,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card::before {
    left: -10px;
    right: auto;
    transform: rotate(225deg);
  }
}

@media (max-width: 760px) {
  #page-company .ytl-history__events {
    gap: 18px;
  }

  #page-company .ytl-history__journey::before {
    left: 31px;
  }

  #page-company .ytl-history__event:not(.is-closing) {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__year,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__year {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 10px 15px;
    font-size: 15px;
  }

  #page-company .ytl-history__event:not(.is-closing) > .ytl-history__event-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-width: 4px;
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }

  #page-company .ytl-history__event.is-left:not(.is-closing) > .ytl-history__event-card::before,
  #page-company .ytl-history__event.is-right:not(.is-closing) > .ytl-history__event-card::before {
    top: 13px;
    left: -9px;
    width: 16px;
    height: 16px;
  }

  #page-company .ytl-history__event:not(.is-closing) .ytl-history__event-media-wrap {
    width: 340px;
    height: auto;
    min-height: 0;
    aspect-ratio: 340 / 228;
  }

  #page-company .ytl-history__event:not(.is-closing) .ytl-history__event-media {
    width: 100%;
    height: 100%;
  }

  #page-company .ytl-history__event:not(.is-closing) .ytl-history__event-content,
  #page-company .ytl-history__event:not(.is-closing).has-media .ytl-history__event-content {
    padding: 18px 2px 3px;
  }

  #page-company .ytl-history__event:not(.is-closing) .ytl-history__event-title {
    font-size: 18px;
  }
}
