/*
 * 编录署名区（functions/chazheng-icons.php chazheng_sign_block）：版式照凭证页 V8「已核验」与 V9「企业署名」——
 * 一行排开、底部一条签名线贯穿：头像或 LOGO｜“编录署名”、姓名或机构名称与头衔同一行、主页词条入口｜签名线上的手写签名、名章或编录章，线下居中“说明 · 签署日期”。
 * 抽屉（.sgp-drawer）为原尺寸（头像 44、方章 66、签名 130×44）；凭证页、主体凭证页（.sgp-page）放大（头像 52、方章 72、签名 150×50）；法人编录章两处都是 176×88 原尺寸。
 * 纸质底色等外框样式仍在各页样式（record.css .gpv .sgp、gl-cred-drawer.css .gcd .sgp）。不用渐变与阴影。
 * 加载：凭证站单项与主体页（header-chazheng.php）、百科档案页与专项词条页（gla_cred_drawer_use）、用户中心署名设置页。
 */
/* 一行排开：头像｜编录人（签名线左段）｜签章（签名线右段），第二行只放签章说明 */
.sgp .compiler {
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  grid-template-rows: auto auto;
  align-items: end;
  justify-content: start;
}

.sgp .compiler__avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0 16px 0 0;
  border: 1px solid #d4dae3;
  background: #fff;
  object-fit: cover;
  object-position: center 25%;
}

.sgp .compiler__who {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0 32px 10px 0;
  border-bottom: 1px solid #9c927c;
}

.sgp .compiler__who .sgp-k {
  margin: 0;
}

.sgp .compiler__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--ink, #181f2a);
  font: 700 17px/1.3 "Noto Serif SC", "Songti SC", "STSong", serif;
  overflow-wrap: anywhere;
}

.sgp .compiler__name a {
  color: inherit;
  text-decoration: none;
}

.sgp .compiler__name a:hover {
  color: var(--brand, #24365f);
  text-decoration: underline;
}

.sgp .compiler__home {
  display: inline-block;
  justify-self: start;
  line-height: 0;
  transition: opacity .15s;
}

.sgp .compiler__home:hover {
  opacity: .82;
}

.sgp .compiler__home svg {
  display: block;
}

/* 签章：拆成签名线上的章与线下说明两格，与编录人同一底线 */
.sgp .compiler__sign {
  display: contents;
}

.sgp .compiler__mark {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 160px;
  padding: 0 18px 8px;
  border-bottom: 1px solid #9c927c;
}

.sgp .compiler__mark .sig {
  display: block;
  width: 130px;
  height: 44px;
  object-fit: contain;
}

.sgp .compiler__mark .name-seal {
  display: block;
  width: auto;
  height: 66px;
}

.sgp .compiler__mark .name-seal--wide {
  height: 46px;
}

.sgp .compiler__mark .org-seal {
  display: block;
  width: 176px;
  height: 88px;
}

.sgp .compiler__sign--org_seal .compiler__mark {
  padding-bottom: 6px;
}

.sgp .compiler__sign small {
  grid-column: 3;
  grid-row: 2;
  justify-self: center;
  margin-top: 6px;
  color: var(--muted, #68727f);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.sgp .compiler__sign time {
  font-variant-numeric: tabular-nums;
}

/* 非会员署名：办理方身份一行，不画签名线 */
.sgp .compiler--plain {
  display: block;
}

.sgp .compiler--plain .compiler__who {
  padding: 0;
  border-bottom: 0;
}

/* 已过期、已撤回：签名格灰化 */
.sgp-off .compiler__mark img,
.sgp-off .compiler__mark svg {
  filter: grayscale(1);
  opacity: .6;
}

/* 凭证页、主体凭证页：放大 */
.sgp-page .compiler__avatar {
  width: 52px;
  height: 52px;
  margin-right: 18px;
}

.sgp-page .compiler__name {
  font-size: 19px;
}

.sgp-page .compiler__who {
  padding-right: 36px;
}

.sgp-page .compiler__mark {
  min-width: 180px;
  padding: 0 20px 8px;
}

.sgp-page .compiler__mark .sig {
  width: 150px;
  height: 50px;
}

.sgp-page .compiler__mark .name-seal {
  height: 72px;
}

.sgp-page .compiler__mark .name-seal--wide {
  height: 50px;
}

.sgp-page .compiler__mark .name-seal--two {
  height: 72px;
}

/* 手机：头像与编录人一行，签章另起一行靠左，说明在其下 */
@media (max-width: 575.98px) {
  .sgp .compiler {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sgp .compiler__who {
    padding-right: 0;
  }

  .sgp .compiler__mark {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    min-width: 0;
    margin-top: 12px;
    padding-left: 0;
  }

  .sgp .compiler__sign small {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }
}
