/* Visual fidelity layer based on the parent association website reference. */
:root {
  --red: #b4060d;
  --red-dark: #920007;
  --red-soft: #c80c13;
  --cream: #f8f1e5;
  --ink: #343434;
  --muted: #707070;
  --line: #dedede;
  --canvas: #f4f4f4;
  --shell: min(1470px, calc(100% - 48px));
}

html,
body {
  background: #fff;
}

body {
  color: #3d3d3d;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
}

.masthead {
  height: 202px;
  background-color: var(--cream);
  background-position: center;
  background-size: cover;
  border: 0;
}

.masthead-inner {
  gap: 46px;
}

.identity {
  flex: 1 1 auto;
  gap: 20px;
}

.identity img {
  width: 172px;
  height: 100px;
  filter: none;
  object-fit: contain;
}

.identity strong {
  color: #111;
  font-family: "STKaiti", "KaiTi", "FangSong", serif;
  font-size: clamp(29px, 2.25vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .055em;
  white-space: nowrap;
}

.identity small {
  margin-top: 8px;
  color: #282828;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}

.identity em {
  margin-top: 3px;
  color: #921017;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .1em;
}

.site-search {
  width: min(500px, 37%);
  display: grid;
  grid-template-columns: 1fr 82px;
  box-shadow: none;
}

.site-search input,
.site-search button {
  height: 61px;
  border-radius: 0;
  font-size: 16px;
}

.site-search input {
  min-width: 0;
  padding: 0 20px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #b53b40;
  border-right: 0;
}

.site-search button {
  width: 82px;
  padding: 0;
  color: var(--red);
  background: rgba(255, 255, 255, .92);
  border: 1px solid #b53b40;
  border-left: 0;
  box-shadow: none;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.site-search button:hover {
  color: #fff;
  background: var(--red-dark);
  box-shadow: none;
  transform: none;
}

.desktop-nav {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 0 rgba(0, 0, 0, .035);
}

.desktop-nav ul {
  height: 78px;
}

.desktop-nav a {
  position: static;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .025em;
}

.desktop-nav .nav-standalone {
  display: none;
}

.desktop-nav a::after {
  display: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--red-dark);
}

.home-page .page-lead {
  display: none;
}

.portal {
  padding: 30px 0 58px;
  background: var(--canvas);
}

.portal-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 30px;
}

.sidebar,
.content-list,
.official-side-nav,
.official-article,
.member-article,
.membership-card {
  border-radius: 0;
  box-shadow: none;
}

.side-title,
.official-side-nav > strong,
.member-toc > strong {
  color: #fff;
  background: linear-gradient(105deg, var(--red-soft) 0 83%, #fff 83%);
}

.side-title {
  min-height: 66px;
  border-top: 5px solid var(--red);
  font-size: 22px;
}

.sidebar nav {
  padding: 22px 14px 26px;
}

.sidebar nav a {
  min-height: 54px;
  font-size: 16px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--red);
  background: #fff;
}

.topic-title {
  min-height: 60px;
  background: var(--red);
  border: 0;
}

.breadcrumb {
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid #d9d9d9;
  font-size: 16px;
}

.home-page .list-heading {
  display: none;
}

.news-list {
  padding: 21px 30px 34px;
}

.news-list a {
  min-height: 70px;
}

.news-title {
  color: #444;
  font-size: 17px;
}

.news-title b {
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 13px;
}

.news-list time {
  color: #555;
  font-size: 14px;
}

.bullet {
  background: #d6d6d6;
}

.about,
.service-panels,
.membership-hero {
  background: #fff;
}

.focus {
  background: #333;
}

.service-grid article,
.direction-grid > div,
.topic-matrix > div,
.service-directory > div {
  background: #f7f7f7;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.service-grid article:hover,
.direction-grid > div:hover,
.topic-matrix > div:hover,
.service-directory > div:hover {
  background: #fff5f5;
  box-shadow: inset 4px 0 0 var(--red);
  transform: none;
}

.lead-grid aside,
.notice-band,
.service-callout,
.fee-table thead {
  background: var(--red);
}

.lead-grid aside a,
.notice-band a,
.service-grid strong a,
.member-actions a,
.subpage-tools a,
.section-quick-links a,
.document-actions a,
.service-callout a,
.search-suggestions a,
.not-found-actions a {
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.official-page-hero {
  display: none;
}

.official-page-content {
  padding: 30px 0 68px;
  background: var(--canvas);
}

.official-content-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 30px;
}

.official-side-nav {
  position: static;
  background: transparent;
  border: 0;
}

.official-side-nav > strong {
  min-height: 66px;
  padding: 0 26px;
  border-top: 5px solid var(--red);
  font-size: 22px;
}

.official-side-nav nav {
  padding: 22px 14px 26px;
  background: #fff;
}

.official-side-nav nav a {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid #eee;
  border-top: 0;
  font-size: 16px;
}

.official-side-nav nav a:first-child {
  border-top: 1px solid #eee;
}

.official-side-nav nav a:hover,
.official-side-nav nav a[aria-current="page"] {
  color: var(--red);
  background: #fffafa;
  box-shadow: none;
}

.official-contact-card {
  margin-top: 22px;
  padding: 25px 26px;
  color: #fff;
  background: var(--red);
}

.official-contact-card span,
.official-contact-card p {
  color: rgba(255, 255, 255, .8);
}

.official-article {
  min-width: 0;
  padding: 0 30px 48px;
  background: #fff;
  border: 0;
}

.reference-breadcrumb {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #555;
  border-bottom: 1px solid #d9d9d9;
  font-size: 16px;
}

.reference-breadcrumb span {
  color: #555;
}

.reference-breadcrumb a:hover {
  color: var(--red);
}

.reference-breadcrumb b {
  color: #777;
  font-weight: 400;
}

.reference-breadcrumb strong {
  color: #444;
  font-weight: 400;
}

.reference-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 38px;
  align-items: center;
  padding: 27px 0 29px;
  border-bottom: 1px solid #e3e3e3;
}

.reference-section-intro h1 {
  margin: 3px 0 10px;
  color: #222;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.reference-section-intro > div > p {
  max-width: 800px;
  margin: 0;
  color: #686868;
  font-size: 16px;
  line-height: 1.8;
}

.reference-section-intro > aside {
  padding: 18px 20px;
  background: #f7f7f7;
  border-left: 4px solid var(--red);
}

.reference-section-intro > aside span,
.reference-section-intro > aside strong {
  display: block;
}

.reference-section-intro > aside span {
  color: #888;
  font-size: 12px;
}

.reference-section-intro > aside strong {
  margin-top: 3px;
  color: var(--red);
  font-size: 16px;
}

.reference-section-intro > aside p {
  margin: 6px 0 0;
  color: #777;
  font-size: 13px;
  line-height: 1.65;
}

.official-eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  letter-spacing: .16em;
}

.article-heading {
  margin-top: 28px;
  padding-bottom: 19px;
}

.article-heading h2 {
  color: #333;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 27px;
}

.article-heading h2::after {
  display: none;
}

.article-lead {
  margin-top: 22px;
  color: #555;
  font-size: 17px;
  line-height: 1.9;
}

.article-section > h2 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

.official-list-item,
.search-result-item {
  min-height: 112px;
}

.list-category {
  border-radius: 0;
}

.membership-hero {
  padding: 30px 0 34px;
  border-bottom: 1px solid #e1e1e1;
}

.membership-hero h1 {
  color: #222;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 3vw, 44px);
}

.membership-document {
  padding-top: 30px;
  background: var(--canvas);
}

.membership-document-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 30px;
}

.member-toc,
.member-article {
  box-shadow: none;
}

.member-toc {
  border-radius: 0;
}

.member-toc > strong {
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  border-top: 5px solid var(--red);
  font-size: 21px;
}

.site-footer {
  background: #292929;
  border-top: 7px solid var(--red);
}

.footer-grid {
  min-height: 210px;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 36px, 980px);
  }

  .masthead {
    height: 165px;
  }

  .identity img {
    width: 132px;
    height: 77px;
  }

  .identity strong {
    font-size: 27px;
    white-space: normal;
  }

  .site-search {
    width: 34%;
  }

  .desktop-nav ul {
    height: auto;
  }

  .desktop-nav a {
    min-height: 56px;
    font-size: 16px;
  }

  .portal-grid,
  .official-content-grid,
  .membership-document-grid {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .reference-section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .masthead {
    height: auto;
  }

  .masthead-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0;
  }

  .identity strong {
    font-size: 22px;
  }

  .identity small {
    font-size: 9px;
  }

  .site-search {
    width: 100%;
  }

  .site-search input,
  .site-search button {
    height: 50px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    background: var(--red);
  }

  .portal-grid,
  .official-content-grid,
  .membership-document-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .official-side-nav {
    display: none;
  }

  .official-article {
    padding: 0 22px 38px;
  }

  .reference-breadcrumb {
    min-height: 60px;
    font-size: 14px;
  }

  .reference-section-intro {
    padding: 22px 0;
  }

  .reference-section-intro h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .identity {
    gap: 10px;
    align-items: center;
  }

  .identity > span {
    min-width: 0;
    flex: 1;
  }

  .identity img {
    width: 80px;
    height: 47px;
  }

  .identity strong {
    font-size: 15px;
    line-height: 1.22;
    letter-spacing: 0;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .identity small {
    display: none;
  }

  .identity em {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .site-search {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .site-search button {
    width: 68px;
    font-size: 14px;
  }

  .official-article {
    padding-inline: 16px;
  }

  .reference-section-intro h1 {
    font-size: 24px;
  }
}

/* Parent-site wide desktop geometry: 1824px content, 1470px red navigation. */
@media (min-width: 1281px) {
  :root {
    --shell: min(1824px, calc(100% - 48px));
  }

  .masthead .shell {
    width: min(1624px, calc(100% - 48px));
    margin-right: auto;
    margin-left: max(24px, calc((100vw - 1824px) / 2));
    padding-left: 98px;
  }

  .identity img {
    width: 150px;
    height: 88px;
  }

  .desktop-nav {
    background: #fff;
    box-shadow: 0 12px 0 rgba(0, 0, 0, .035);
  }

  .desktop-nav {
    position: relative;
  }

  .desktop-nav .nav-standalone {
    position: absolute;
    top: 0;
    left: calc(max(24px, calc((100vw - 1824px) / 2)) + 1652px);
    width: 152px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--red);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .025em;
  }

  .desktop-nav .nav-standalone:hover {
    background: var(--red-dark);
  }
  .desktop-nav .shell {
    width: min(1470px, calc(100% - 48px));
    margin-right: auto;
    margin-left: max(24px, calc((100vw - 1824px) / 2));
    background: var(--red);
  }

  .portal-grid,
  .official-content-grid,
  .membership-document-grid {
    grid-template-columns: 390px minmax(0, 1fr);
  }
}