/* ==========================================================================
   Tata Kelola Perusahaan + TJSL pages — styles for tata_kelola.html and
   tjsl.html (same hero + article layout, so they share the .tk-* classes).
   Depends on css/base.css, css/navbar.css, css/footer.css being loaded first.
   ========================================================================== */

/* ---------- hero ---------- */
.tk-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  padding: 140px 48px 64px;
  overflow: hidden;
  color: #fff;
}

.tk-hero-media {
  position: absolute;
  inset: 0;
}

.tk-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 19, 38, 0.85) 0%, rgba(11, 19, 38, 0.35) 45%, rgba(11, 19, 38, 0.3) 100%);
}

.tk-hero-content {
  position: relative;
}

.tk-hero-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--color-accent-cyan-light);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.tk-hero-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- article ---------- */
.tk-content {
  padding-block: 80px;
}

.tk-article {
  /* headings and bold text use Public Sans Bold (see fonts/stylesheet.css) */
  --tk-font-bold: 'Public Sans Bold', var(--font-body);

  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.75;
}

.tk-article h2,
.tk-article h3,
.tk-article strong {
  font-family: var(--tk-font-bold);
}

.tk-article h2 {
  margin: 48px 0 18px;
  font-size: 2rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tk-article h3 {
  margin: 30px 0 18px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tk-article > h2:first-child,
.tk-article > h3:first-child {
  margin-top: 0;
}

.tk-article p + p {
  margin-top: 12px;
}

/* lists: bullet / number + bold title, description underneath
   (a bare <strong> as the first thing in the <li> is the title) */
.tk-principles {
  padding-left: 30px;
}

ul.tk-principles {
  list-style: disc;
}

ol.tk-principles {
  list-style: decimal;
}

.tk-principles li {
  /* keeps description lines to a readable measure */
  max-width: 60.5rem;
}

.tk-principles li + li {
  margin-top: 19px;
}

.tk-principles li::marker {
  font-family: var(--tk-font-bold);
  font-weight: 700;
}

ol.tk-principles li::marker {
  font-size: 1.25rem;
  line-height: 1.4;
}

.tk-principles strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.25rem;
  line-height: 1.4;
}

/* commitment list: the whole sentence is the title, no description */
.tk-principles--statements li {
  max-width: none;
}

.tk-principles--statements li + li {
  margin-top: 20px;
}

.tk-principles--statements strong {
  margin-bottom: 0;
}

/* ---------- governance structure (org chart) ----------
   Shareholders on top, two cards (supervision / management) underneath,
   joined by a 1px connector. The tree keeps its shape at every width: the two
   lower cards share the row (two equal columns), the gap shrinks on small
   screens, and the horizontal bar always runs from the centre of the left
   column to the centre of the right one. */
.tk-org {
  --org-card-width: 288px;
  --org-gap: clamp(16px, 8vw, 80px);
  --org-line: var(--color-ink);
  --org-stem: 45px;

  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(var(--org-card-width) * 2 + 80px);
  margin: 32px auto 76px;
}

.tk-org-card {
  position: relative;
  width: 100%;
  max-width: var(--org-card-width);
  border: 1px solid var(--org-line);
  background: #fff;
  color: var(--color-ink);
  text-align: center;
}

.tk-org > .tk-org-card {
  width: calc((100% - var(--org-gap)) / 2);
}

.tk-org-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 70px;
  padding: 0 16px;
  background: var(--color-ink);
  color: #fff;
}

.tk-org-head strong {
  font-size: clamp(0.8125rem, 3.4vw, 1rem);
  line-height: 1.4;
}

.tk-org-head span {
  font-size: clamp(0.75rem, 3.2vw, 0.875rem);
  line-height: 1.5;
}

.tk-org-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 75px;
  padding: 14px 16px 12px;
  font-size: clamp(0.6875rem, 3.2vw, 0.875rem);
  line-height: 1.5;
}

.tk-org-body p + p {
  margin-top: 0;
}

.tk-org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: var(--org-gap);
  width: 100%;
  padding-top: calc(var(--org-stem) * 2 + 1px);
}

/* stem down from the shareholders card */
.tk-org-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: calc(var(--org-stem) + 1px);
  border-left: 1px solid var(--org-line);
}

/* bar + the two drops to the cards below */
.tk-org-branches::after {
  content: '';
  position: absolute;
  top: var(--org-stem);
  left: calc((100% - var(--org-gap)) / 4);
  right: calc((100% - var(--org-gap)) / 4);
  height: calc(var(--org-stem) + 1px);
  border: 1px solid var(--org-line);
  border-bottom: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .tk-hero {
    min-height: 460px;
    padding: 120px 24px 40px;
  }

  .tk-content {
    padding-block: 48px 64px;
  }

  .tk-article h2 {
    font-size: 1.625rem;
  }

  .tk-article h3 {
    font-size: 1.25rem;
  }

  .tk-principles strong {
    font-size: 1.125rem;
  }

  ol.tk-principles li::marker {
    font-size: 1.125rem;
  }

  /* org chart: tighter cards so the two lower ones fit side by side */
  .tk-org {
    --org-stem: 32px;
  }

  .tk-org-head {
    height: 64px;
    padding: 0 8px;
  }

  .tk-org-body {
    min-height: 68px;
    padding: 10px 8px;
  }
}
