/* Profile Feature Hub: styles are scoped to /profil only. */

body.site-profile .profile-hero {
  background: #eef6f9;
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

body.site-profile .profile-hero__inner,
body.site-profile .profile-about__inner,
body.site-profile .profile-feature-map__inner,
body.site-profile .profile-institution__inner,
body.site-profile .profile-governance__inner,
body.site-profile .profile-accreditation__inner,
body.site-profile .profile-programs__inner,
body.site-profile .profile-lecturers__inner,
body.site-profile .profile-directory__inner {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: 1080px;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}

body.site-profile .profile-hero__inner {
  max-width: 44rem;
}

body.site-profile .profile-hero__eyebrow,
body.site-profile .profile-about__label,
body.site-profile .profile-section-header__label,
body.site-profile .profile-documents__label {
  color: #004d68;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

body.site-profile .profile-hero__eyebrow,
body.site-profile .profile-about__label,
body.site-profile .profile-section-header__label,
body.site-profile .profile-documents__label {
  border-top: 3px solid #087ca2;
  padding-top: 0.9rem;
  width: fit-content;
}

body.site-profile .profile-hero__title {
  color: #07162f;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.9rem 0 0;
  text-wrap: balance;
}

body.site-profile .profile-hero__text,
body.site-profile .profile-about__text,
body.site-profile .profile-section-header__text,
body.site-profile .profile-feature-card__text,
body.site-profile .profile-organization__viewer-text {
  color: #40525e;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.75;
}

body.site-profile .profile-hero__text {
  margin: 1rem 0 0;
}

body.site-profile .profile-hero__location {
  color: #087ca2;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.25rem 0 0;
}

body.site-profile .profile-about,
body.site-profile .profile-institution,
body.site-profile .profile-accreditation,
body.site-profile .profile-directory {
  background: #ffffff;
  padding-block: clamp(4rem, 6vw, 5rem);
}

body.site-profile .profile-about__title,
body.site-profile .profile-section-header__title {
  color: #07162f;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1rem 0 0;
  text-wrap: balance;
}

body.site-profile .profile-about__text,
body.site-profile .profile-section-header__text,
body.site-profile .profile-feature-card__text,
body.site-profile .profile-organization__viewer-text {
  margin: 0.9rem 0 0;
}

body.site-profile .profile-about__text,
body.site-profile .profile-section-header__text {
  max-width: 48rem;
}

body.site-profile .profile-section-header {
  max-width: 48rem;
}

body.site-profile .profile-feature-map,
body.site-profile .profile-programs {
  background: #f1f7fa;
  border-block: 1px solid #e1eef3;
  padding-block: clamp(4rem, 6vw, 5rem);
}

/* Bagan direktori dosen memakai pola visual peta informasi yang sudah ada
   (canvas + root + branches), tetapi berlatar putih agar tidak menempel pada
   pita Program Studi di atasnya. */
body.site-profile .profile-lecturers {
  background: #ffffff;
  padding-block: clamp(4rem, 6vw, 5rem);
}

body.site-profile .profile-feature-map__canvas {
  background: #ffffff;
  border: 1px solid #dbe9ee;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(7, 22, 47, 0.04);
  margin-top: clamp(2rem, 3vw, 2.5rem);
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

body.site-profile .profile-feature-map__root {
  background: #07162f;
  border-radius: 12px;
  color: #ffffff;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.4;
  margin-inline: auto;
  max-width: 32rem;
  padding: 1rem 1.25rem;
  text-align: center;
}

body.site-profile .profile-feature-map__branches {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0;
  position: relative;
}

body.site-profile .profile-feature-map__branches::before {
  background: #9fcedb;
  content: "";
  height: 1px;
  left: 16.6%;
  position: absolute;
  right: 16.6%;
  top: 0;
}

body.site-profile .profile-feature-map__branch {
  background: #f7fbfc;
  border: 1px solid #dbe9ee;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  padding: 1rem;
  position: relative;
}

body.site-profile .profile-feature-map__branch::before {
  background: #9fcedb;
  content: "";
  height: 1.2rem;
  left: 50%;
  position: absolute;
  top: -1.2rem;
  width: 1px;
}

body.site-profile .profile-feature-map__branch::marker,
body.site-profile .profile-programs__grid > li::marker,
body.site-profile .profile-directory-card__items > li::marker {
  content: none;
}

body.site-profile .profile-feature-map__branch-title,
body.site-profile .profile-directory-card__title {
  color: #07162f;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

body.site-profile .profile-feature-status {
  align-self: flex-start;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  max-width: 100%;
  padding: 0.36rem 0.65rem;
  text-transform: uppercase;
}

body.site-profile .profile-feature-status--available {
  background: #e4f2f7;
  color: #004d68;
}

body.site-profile .profile-feature-status--pending {
  background: #f7f1e8;
  color: #76531b;
}

body.site-profile .profile-feature-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 3vw, 2.5rem);
}

body.site-profile .profile-feature-card,
body.site-profile .profile-feature-panel,
body.site-profile .profile-organization__viewer {
  background: #ffffff;
  border: 1px solid #dbe9ee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(7, 22, 47, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

body.site-profile .profile-feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

body.site-profile .profile-feature-card--available {
  border-top: 3px solid #087ca2;
}

body.site-profile .profile-feature-card--pending,
body.site-profile .profile-feature-panel--pending {
  background: #fffcf7;
  border-color: #eadbc3;
}

body.site-profile .profile-feature-card__title,
body.site-profile .profile-feature-panel__title,
body.site-profile .profile-organization__viewer-title,
body.site-profile .profile-documents__title {
  color: #07162f;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
}

body.site-profile .profile-feature-card__text {
  font-size: 0.96rem;
}

body.site-profile .profile-governance {
  background: #eef6f9;
  border-block: 1px solid #e1eef3;
  padding-block: clamp(4rem, 6vw, 5rem);
}

body.site-profile .profile-feature-grid--governance {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.site-profile .profile-inline-link {
  align-items: center;
  align-self: flex-start;
  color: #087ca2;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 0.45rem;
  line-height: 1.5;
  margin-top: 1.25rem;
  text-decoration: none;
}

body.site-profile .profile-inline-link:hover {
  color: #004d68;
  text-decoration: underline;
}

body.site-profile .profile-inline-link:focus-visible,
body.site-profile .profile-directory-card--link:focus-visible,
body.site-profile .profile-directory-card__summary:focus-visible {
  outline: 3px solid #087ca2;
  outline-offset: 4px;
}

body.site-profile .profile-organization__viewer {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

body.site-profile .profile-organization__viewer-text {
  font-size: 0.96rem;
}

body.site-profile .profile-organization__viewer .site-figure {
  margin-top: 1.5rem;
}

body.site-profile .profile-organization__viewer .site-figure__link {
  background: #ffffff;
}

body.site-profile .profile-accreditation .site-facts {
  margin-top: clamp(2rem, 3vw, 2.5rem);
}

body.site-profile .profile-feature-panel {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

body.site-profile .profile-documents {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

body.site-profile .profile-documents__header {
  max-width: 44rem;
}

body.site-profile .profile-programs__grid {
  --profile-programs-gap: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  gap: var(--profile-programs-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: clamp(2rem, 3vw, 2.5rem) 0 0;
  padding: 0;
}

body.site-profile .profile-program-card {
  background: #ffffff;
  border: 1px solid #dbe9ee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(7, 22, 47, 0.04);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: clamp(1.5rem, 2.2vw, 1.9rem);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.site-profile .profile-program-card:hover,
body.site-profile .profile-program-card:focus-within {
  border-color: #9fcedb;
  box-shadow: 0 10px 24px rgba(7, 22, 47, 0.08);
  transform: translateY(-3px);
}

body.site-profile .profile-program-card__title {
  color: #07162f;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 1rem 0 0;
}

body.site-profile .profile-program-card__cta {
  align-items: center;
  align-self: flex-start;
  border-radius: 0.5rem;
  color: #087ca2;
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-top: 1.5rem;
  min-height: 2.6rem;
  text-decoration: none;
  transition: color 180ms ease;
}

body.site-profile .profile-program-card__cta:hover,
body.site-profile .profile-program-card:hover .profile-program-card__cta {
  color: #004d68;
}

body.site-profile .profile-program-card__cta-arrow {
  transition: transform 180ms ease;
}

body.site-profile .profile-program-card:hover .profile-program-card__cta-arrow,
body.site-profile .profile-program-card__cta:focus-visible .profile-program-card__cta-arrow {
  transform: translateX(4px);
}

body.site-profile .profile-program-card__cta:focus-visible {
  outline: 3px solid #087ca2;
  outline-offset: 4px;
}

body.site-profile .profile-directory__grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 3vw, 2.5rem);
}

body.site-profile .profile-directory-card {
  background: #f7fbfc;
  border: 1px solid #dbe9ee;
  border-radius: 16px;
  box-sizing: border-box;
  min-width: 0;
  padding: 1.2rem;
}

body.site-profile .profile-directory-card__summary {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0 1.6rem 0 0;
  position: relative;
}

body.site-profile .profile-directory-card__summary::-webkit-details-marker {
  display: none;
}

body.site-profile .profile-directory-card__summary::after {
  color: #087ca2;
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 0;
}

body.site-profile .profile-directory-card[open] .profile-directory-card__summary::after {
  content: "−";
}

body.site-profile .profile-directory-card__items {
  border-top: 1px solid #dbe9ee;
  color: #40525e;
  display: grid;
  font-size: 0.93rem;
  gap: 0.75rem;
  line-height: 1.45;
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
}

body.site-profile .profile-directory-card__items > li {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
  margin: 0;
}

body.site-profile .profile-directory-card__items .profile-feature-status {
  font-size: 0.66rem;
}

body.site-profile .profile-directory-card--static,
body.site-profile .profile-directory-card--link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.site-profile .profile-directory-card--static {
  background: #fffcf7;
  border-color: #eadbc3;
}

body.site-profile .profile-directory-card--link {
  background: #ffffff;
  border-top: 3px solid #087ca2;
  color: inherit;
  text-decoration: none;
}

body.site-profile .profile-directory-card--link:hover {
  border-color: #9fcedb;
  box-shadow: 0 8px 20px rgba(7, 22, 47, 0.07);
}

body.site-profile .profile-directory-card__link-text {
  color: #087ca2;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: auto;
}

body.site-profile .profile-directory-card--link:hover .profile-directory-card__link-text {
  color: #004d68;
  text-decoration: underline;
}

body.site-profile .profile-cta {
  background: #07162f;
  padding-block: clamp(4rem, 6vw, 5rem);
  position: relative;
}

body.site-profile .profile-cta::before {
  background: #087ca2;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 64px;
}

body.site-profile .profile-cta__inner {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: 40rem;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  width: 100%;
}

body.site-profile .profile-cta__label {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

body.site-profile .profile-cta__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.9rem 0 0;
  text-wrap: balance;
}

body.site-profile .profile-cta__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  margin: 1rem 0 0;
}

body.site-profile .profile-cta__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

body.site-profile .profile-cta__button {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.015em;
  line-height: 1.25;
  min-height: 3.1rem;
  padding: 0.8rem 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

body.site-profile .profile-cta__button--primary {
  background: #ffffff;
  color: #07162f;
}

body.site-profile .profile-cta__button--primary:hover {
  background: #087ca2;
  color: #ffffff;
}

body.site-profile .profile-cta__button--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

body.site-profile .profile-cta__button--secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #07162f;
}

body.site-profile .profile-cta__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

body.site-profile .profile-cta__meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 0.6rem;
  justify-content: center;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

body.site-profile .profile-cta__meta-item {
  margin: 0;
  padding: 0;
}

body.site-profile .profile-cta__meta-item:not(:last-child)::after {
  content: "\2022";
  margin-inline-start: 0.6rem;
}

@media only screen and (max-width: 1239px) {
  body.site-profile .profile-hero,
  body.site-profile .profile-about,
  body.site-profile .profile-feature-map,
  body.site-profile .profile-institution,
  body.site-profile .profile-governance,
  body.site-profile .profile-accreditation,
  body.site-profile .profile-programs,
  body.site-profile .profile-directory,
  body.site-profile .profile-cta {
    padding-block: clamp(3.25rem, 7vw, 4rem);
  }

  body.site-profile .profile-hero__inner,
  body.site-profile .profile-about__inner,
  body.site-profile .profile-feature-map__inner,
  body.site-profile .profile-institution__inner,
  body.site-profile .profile-governance__inner,
  body.site-profile .profile-accreditation__inner,
  body.site-profile .profile-programs__inner,
  body.site-profile .profile-directory__inner,
  body.site-profile .profile-cta__inner {
    padding-inline: clamp(1.5rem, 6vw, 3.5rem);
  }

  body.site-profile .profile-feature-map__branches,
  body.site-profile .profile-feature-grid,
  body.site-profile .profile-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-profile .profile-feature-map__branches::before {
    left: 25%;
    right: 25%;
  }

  body.site-profile .profile-programs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.site-profile .profile-programs__grid > .profile-program-card:nth-child(3) {
    grid-column: 1 / -1;
    margin-inline: auto;
    max-width: calc(50% - (var(--profile-programs-gap) / 2));
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  body.site-profile .profile-hero,
  body.site-profile .profile-about,
  body.site-profile .profile-feature-map,
  body.site-profile .profile-institution,
  body.site-profile .profile-governance,
  body.site-profile .profile-accreditation,
  body.site-profile .profile-programs,
  body.site-profile .profile-directory,
  body.site-profile .profile-cta {
    padding-block: clamp(2.5rem, 9vw, 3.25rem);
  }

  body.site-profile .profile-hero__inner,
  body.site-profile .profile-about__inner,
  body.site-profile .profile-feature-map__inner,
  body.site-profile .profile-institution__inner,
  body.site-profile .profile-governance__inner,
  body.site-profile .profile-accreditation__inner,
  body.site-profile .profile-programs__inner,
  body.site-profile .profile-directory__inner,
  body.site-profile .profile-cta__inner {
    padding-inline: 1.35rem;
  }

  body.site-profile .profile-feature-map__canvas,
  body.site-profile .profile-feature-card,
  body.site-profile .profile-feature-panel,
  body.site-profile .profile-organization__viewer,
  body.site-profile .profile-directory-card {
    border-radius: 14px;
  }

  body.site-profile .profile-feature-map__branches,
  body.site-profile .profile-feature-grid,
  body.site-profile .profile-feature-grid--governance,
  body.site-profile .profile-programs__grid,
  body.site-profile .profile-directory__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.site-profile .profile-feature-map__branches {
    padding-top: 0;
  }

  body.site-profile .profile-feature-map__branches::before,
  body.site-profile .profile-feature-map__branch::before {
    display: none;
  }

  body.site-profile .profile-programs__grid > .profile-program-card:nth-child(3) {
    grid-column: auto;
    margin-inline: 0;
    max-width: none;
  }

  body.site-profile .profile-directory-card__items > li {
    align-items: flex-start;
    flex-direction: column;
  }

  body.site-profile .profile-cta__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-profile .profile-program-card,
  body.site-profile .profile-program-card__cta,
  body.site-profile .profile-program-card__cta-arrow,
  body.site-profile .profile-directory-card--link,
  body.site-profile .profile-cta__button {
    transition: none;
  }

  body.site-profile .profile-program-card:hover,
  body.site-profile .profile-program-card:focus-within {
    transform: none;
  }

  body.site-profile .profile-program-card:hover .profile-program-card__cta-arrow,
  body.site-profile .profile-program-card__cta:focus-visible .profile-program-card__cta-arrow {
    transform: none;
  }
}
