.albup-lawyer-profile {
  background: #fff;
}

.profile-page {
  --profile-ink: #182431;
  --profile-muted: #536272;
  --profile-rule: #e7ebef;
  --profile-blue: #0079c2;
  width: min(960px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0 104px;
  --profile-font: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font: 400 16px/1.65 var(--profile-font);
  color: var(--profile-ink);
  letter-spacing: -.019em;
}

.profile-page * { box-sizing: border-box; }
/* The legacy theme assigns its own family to headings and controls. */
.profile-page, .profile-page :where(*):not(#map *) { font-family: var(--profile-font) !important; }
.profile-page :is(h1, h2, h3, p, ul, dl, dd) { margin: 0; }
.profile-page a { color: inherit; text-decoration: none; }
.profile-page :is(a, button):focus-visible { outline: 2px solid var(--profile-blue); outline-offset: 3px; }
.profile-page [hidden] { display: none !important; }

.profile-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 7px;
  color: var(--profile-muted) !important;
  font-size: 14px;
}

.profile-back span { font-size: 23px; line-height: 1; }

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6.3fr);
  grid-template-areas: "photo identity" "photo details" "photo actions";
  grid-template-rows: 1fr auto 1fr;
  column-gap: clamp(24px, 4vw, 56px);
}

.profile-photo {
  grid-area: photo;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 30px;
  background: #f1f3f5;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-identity {
  grid-area: identity;
  align-self: end;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-identity h1 {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.042em;
}

.profile-identity h1 span {
  font-size: .49em;
  font-weight: 500;
  letter-spacing: -.027em;
  color: var(--profile-muted);
}

.profile-identity .profile-firm {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 500;
  color: #414f5d;
}

.profile-status-desktop { margin-bottom: 9px; }
.profile-firm-region {
  display: inline-block;
  margin-left: 5px;
  padding-left: 8px;
  border-left: 1px solid #cfd8e0;
  color: var(--profile-muted);
  font-weight: 400;
  line-height: 1.2;
}

.profile-details { grid-area: details; min-width: 0; }
.profile-details .profile-meta { display: none; }
.profile-region { font-size: 14px; color: var(--profile-muted); }

.profile-fast {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #e7f2fd;
  color: #125da1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-fast svg { width: 12px; height: 12px; }

.profile-details .profile-motto {
  margin-top: 18px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -.028em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.profile-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.profile-details .profile-areas { margin-top: 14px; }
.profile-areas li {
  padding: 4px 9px;
  border-radius: 7px;
  color: #414f5b;
  background: #f0f2f4;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.profile-actions { display: flex; gap: 8px; }
.profile-actions--hero { grid-area: actions; align-self: start; margin-top: 26px; }
.profile-actions > :is(a, button, .profile-contact-placeholder) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 8px 13px;
  background: #f0f2f4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--profile-ink);
  cursor: pointer;
  white-space: nowrap;
}

.profile-actions :is(.btn-kakao-sm, .btn-call-sm):hover { background: #e7edf2; }
.profile-actions--hero > :is(a, button, .profile-contact-placeholder) { min-height: 54px; }
.profile-actions .profile-apply {
  flex: 1;
  background: var(--profile-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.profile-actions .profile-apply:hover { background: #006daa; }
.profile-actions svg { width: 17px; height: 17px; flex: none; }
.profile-kakao-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fee500;
  color: #351d14;
}
.profile-kakao-icon svg { width: 15px; height: 15px; }
.profile-actions .btn-call-sm svg { color: #2362ce; }
.profile-actions .profile-contact-placeholder {
  order: 1;
  visibility: hidden;
  letter-spacing: normal;
  pointer-events: none;
}
.profile-contact-placeholder .profile-phone-icon { width: 17px; height: 17px; flex: none; }

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(22px, 4.5vw, 64px);
  margin-top: clamp(32px, 5vw, 62px);
}
.profile-sidebar { grid-column: 2; grid-row: 1; align-self: start; }
.profile-body { grid-column: 1; grid-row: 1; min-width: 0; }
.profile-sticky-contact {
  margin-bottom: 15px;
  border: 1px solid #dce4eb;
  border-radius: 20px;
  padding: 22px;
  background: #fff;
}
.profile-sticky-contact h2 { font-size: 18px; font-weight: 600; line-height: 1.45; }
.profile-actions--panel { margin-top: 14px; flex-wrap: wrap; }
.profile-actions--panel .profile-apply { flex: 1 0 100%; min-height: 50px; }
.profile-actions--panel > :is(button, .profile-contact-placeholder) { flex: 1; }
.profile-actions--panel:not(:has(> button)) .profile-contact-placeholder { display: none; }

.profile-section { padding: 0 0 36px; }
.profile-section + .profile-section, .profile-office { border-top: 1px solid var(--profile-rule); padding-top: 34px; }
.profile-section .sect-title { margin: 0 0 15px; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.035em; }
.profile-section .desc { white-space: pre-line; color: #334050; line-height: 1.85; font-weight: 400; overflow-wrap: anywhere; }
.profile-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.profile-page .profile-more { color: #465b72; font-size: 14px; white-space: nowrap; padding: 6px 0; }
.profile-more--only { display: inline-block; margin: 8px 3px 0; }
.profile-column-list { display: grid; gap: 12px; }
.profile-column {
  display: block;
  padding: 18px 20px 15px;
  border-radius: 16px;
  background: #f7f8f9;
}
.profile-column:hover { background: #f1f4f7; }
.profile-column-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--profile-muted);
  font-size: 13px;
}
.profile-column-label, .profile-column-category {
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.45;
}
.profile-column-category { color: #43515f; background: #fff; border: 1px solid #dde3e9; }
.profile-column-label { color: #075fae; background: #e8f3ff; font-weight: 650; }
.profile-column :is(h2, h3) {
  margin-top: 7px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.profile-column .profile-column-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 8px;
  overflow: hidden;
  color: #465668;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.profile-column-read {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 9px;
  color: #0066a6;
  font-size: 13px;
  font-weight: 620;
}
.profile-column-read span { font-size: 17px; line-height: 1; }
.profile-column:hover .profile-column-read { text-decoration: underline; text-underline-offset: 3px; }
.profile-column--mobile, .profile-columns--single { display: none; }
.profile-page :is(.profile-more, .profile-back):hover { color: #0066a6; }

.tl-group {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: baseline;
}
.tl-group + .tl-group {
  border-top: 1px solid #e1e7ec;
  margin-top: 15px;
  padding-top: 15px;
}
.tl-group .g-title { font-size: 14px; font-weight: 650; color: #263444; }
.tl-items { display: grid; gap: 8px; min-width: 0; }
.tl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.tl-year:empty { display: none; }
.tl-year { color: var(--profile-muted); font-size: 14px; font-weight: 540; font-variant-numeric: tabular-nums; }
.tl-desc { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }

.profile-office { margin-top: 4px; }
.office-grid { display: grid; gap: 6px; }
.office-grid > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 8px; }
.office-grid dt { color: var(--profile-muted); font-size: 14px; }
.office-grid dd { overflow-wrap: anywhere; }
.office-grid a.profile-office-website {
  color: #0066a6;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-map {
  display: grid;
  place-items: center;
  height: 300px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--profile-rule);
  border-radius: 14px;
  background: #f4f6f8;
  color: var(--profile-muted);
  font-size: 14px;
}
.profile-map--loaded { display: block; }
.profile-map--unavailable { height: 100px; }
.profile-office-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-office-links a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce4eb;
  border-radius: 9px;
  min-height: 44px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 580;
}
.profile-office-links a:hover { background: #f4f8fc; }
.profile-page-end { border-top: 1px solid var(--profile-rule); padding-top: 12px; }

@media (min-width: 992px) and (min-height: 440px) {
  .profile-sidebar { position: sticky; top: 22px; }
}

@media (min-width: 768px) {
  .profile-no-portrait { grid-template-columns: minmax(145px, 190px) minmax(0, 1fr); }
}

@media (max-width: 991px) {
  .profile-sticky-contact { display: none; }
  .profile-actions--hero { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  html body .pc_wrap.albup-lawyer-profile { display: block !important; padding-top: 72px !important; }
  .albup-profile-mobile-head { position: fixed; inset: 0 0 auto; z-index: 100; }
  .albup-lawyer-profile .pc-only-head { display: none !important; }
  .profile-page { width: min(470px, calc(100% - 40px)); padding: 14px 0 144px; }
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "identity" "details" "actions";
    grid-template-rows: auto;
  }
  .profile-photo { position: relative; border-radius: 23px; }
  .hero-card:not(.profile-no-portrait) .profile-identity {
    grid-area: photo;
    align-self: end;
    position: relative;
    z-index: 1;
    isolation: isolate;
    padding: 14px 19px 19px;
    color: #fff;
    text-shadow: 0 1px 3px #0009;
  }
  .hero-card:not(.profile-no-portrait) .profile-identity::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -4px 0 0;
    border-radius: 0 0 23px 23px;
    background:
      radial-gradient(ellipse 86% 100% at 20% 100%, #0009, #0004 64%, transparent),
      linear-gradient(to bottom, transparent, #0001 28%, #0004 58%, #0009);
    opacity: .72;
    pointer-events: none;
  }
  .profile-identity h1 { font-size: clamp(28px, 7.7vw, 36px); }
  .hero-card:not(.profile-no-portrait) .profile-identity :is(h1 span, .profile-firm) { color: #fff; }
  .profile-identity .profile-firm { margin-top: 5px; font-size: 15px; font-weight: 500; }
  .profile-no-portrait .profile-photo { width: min(52%, 156px); border-radius: 15px; }
  .profile-no-portrait .profile-identity { margin-top: 13px; }
  .profile-status-desktop, .profile-firm-region { display: none; }
  .profile-details .profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .profile-details .profile-motto { margin-top: 13px; font-size: 19px; }
  .profile-details .profile-areas { margin-top: 14px; }
  .profile-actions--hero { margin-top: 20px; }
  .profile-actions--hero .profile-apply { flex: 1 0 100%; min-height: 52px; }
  .profile-actions--hero > :is(button, .profile-contact-placeholder) { flex: 1; min-height: 46px; }
  .profile-actions--hero:not(:has(> button)) .profile-contact-placeholder { display: none; }
  .profile-content { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
  .profile-sidebar { display: none; }
  .profile-column--mobile, .profile-columns--single { display: block; }
  .profile-column { padding: 16px 17px 14px; }
  .profile-column :is(h2,h3) { font-size: 16px; }
  .profile-section { padding-bottom: 26px; }
  .profile-section + .profile-section, .profile-office { padding-top: 25px; }
  .profile-section .sect-title { font-size: 20px; }
  .tl-group { grid-template-columns: 1fr; gap: 7px; }
  .tl-group + .tl-group { margin-top: 13px; padding-top: 12px; }
  .tl-item { grid-template-columns: 52px minmax(0, 1fr); }
  .profile-map { height: 218px; }
  .profile-map--unavailable { height: 96px; }
}
