/* 通用頁首與導覽路徑：空白範例頁及未來前台頁面可共用。 */
/* base.css 的 body 背景會覆蓋 html 的固定背景圖；範例頁只顯示 html 背景。 */
body[p="blank"] {
  background: transparent;
}

.pageHeader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(1120px, 100%);
  gap: 10px;
  margin: 0 auto 20px;
  text-align: left;
}

.SettingMain > .pageHeader {
  width: 100%;
}

.pageHeader h1 {
  align-self: center;
  margin: 0;
  color: #655b4d;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.pageHeader__companyName {
  align-self: center;
  margin: 0;
  color: #5f5547;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.pageHeader h2 {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 50px;
  margin: 13px 0 0;
  color: #aa8d55;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.pageHeader h2::before,
.pageHeader h2::after {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: #cdb98e4a;
  content: "";
}

.pageBreadcrumbs {
  display: flex;
  align-self: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 15px 0 10px;
  padding: 13px 18px;
  color: #6d7078;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: left;
  background: #fff;
  border-radius: 8px;
}

.pageBreadcrumbs a {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pageBreadcrumbs a:hover,
.pageBreadcrumbs a:focus-visible {
  color: #aa8d55;
  text-decoration: underline;
  outline: 0;
}

.pageBreadcrumbs__home {
  flex: 0 0 auto;
  color: #777;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.pageBreadcrumbs > span:not(.pageBreadcrumbs__home) {
  flex: 0 0 auto;
  color: #b8bbc4;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.pageBreadcrumbs strong {
  color: #5d554c;
  font-weight: 600;
}

#main-content {
  min-height: 400px;
}

.pageSectionHeader {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 48px));
  margin: 20px auto 0;
  color: #aa9359;
}

.pageSectionHeader::before,
.pageSectionHeader::after {
  flex: 1;
  height: 1px;
  content: "";
  background: #e4d8ca;
}

.pageSectionHeader h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.pageSectionHeader .material-symbols-outlined {
  font-size: 25px;
}

@media (max-width: 640px) {
  .pageHeader {
    gap: 6px;
    margin: 0 auto 20px;
  }

  .pageHeader h1 {
    font-size: 25px;
  }

  .pageHeader__companyName {
    font-size: 19px;
  }

  .pageHeader h2 {
    gap: 24px;
    font-size: 20px;
  }

  .pageHeader h2::before,
  .pageHeader h2::after {
    min-width: 12px;
  }

  .pageBreadcrumbs {
    gap: 7px;
    row-gap: 6px;
    margin: 12px 0 10px;
    padding: 11px 13px;
    font-size: 13px;
  }

  .pageBreadcrumbs > * {
    flex: 0 0 auto;
  }

  .pageBreadcrumbs a {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .pageBreadcrumbs strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .pageSectionHeader {
    width: min(100% - 28px, 1120px);
    gap: 12px;
    margin-top: 12px;
  }

  .pageSectionHeader h2 {
    font-size: 21px;
  }
}
