/* Public reading hierarchy. Display type is reserved for the brand story. */
@font-face {
  font-family: "June Story";
  src: url("../assets/fonts/noto-serif-sc-headlines.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --story-type: "June Story", "Songti SC", "STSong", "SimSun", serif;
  --reading-type: June, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ed-about #opening .ed-hero-content h1, .ed-about #company .ed-company-split h2 {
  font-family: var(--story-type);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.32;
}
.ed-about #company .ed-company-split h2 { font-size: clamp(32px, 3vw, 52px); }
@media (max-width: 1000px) {
  .brand-cover .brand-cover-copy h1, .brand-cover .brand-cover-copy h1 span {
    font-family: var(--story-type);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.32;
  }
  .brand-cover #welcome {
    background: #f7f5ee;
  }
  .brand-cover #welcome .brand-cover-copy h1 {
    color: #25251f;
    text-shadow: none;
  }
  .brand-cover #welcome .brand-cover-description {
    margin: 16px 0 0;
    color: #4b4b43;
    text-wrap: balance;
  }
  .brand-cover #welcome .brand-cover-en {
    color: #55564f;
    font: 500 14px/1.5 var(--reading-type);
    margin: 14px 0 0;
    overflow-wrap: anywhere;
  }
  .brand-cover #welcome .brand-cover-en:empty,
  .brand-cover #welcome .brand-cover-en:has(> .cover-default-name) { display: none; }
  .brand-cover #welcome .company-film-link {
    background: #282a25;
    color: #fff;
    border-color: #282a25;
    box-shadow: none;
  }
  .brand-cover #welcome .company-film-link:focus-visible { outline-color: #282a25; }
  .brand-cover #welcome .cover-scroll { color: #4d5048; }
  .brand-cover #welcome .cover-scroll::before { background: #b3b5ae; }
}
.ed-quality #testing { display: block; }
.ed-quality #testing::before,.ed-quality #testing::after { content: none; }
.ed-quality #testing > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 7%;
  align-items: center;
}
.ed-quality #testing > div > :is(h2,p) { margin: 0; }
@media (max-width: 760px) {
  .ed-quality #testing > div { grid-template-columns: 1fr; gap: 12px; }
}
.ed-about #company .ed-company-split > div > p:not(.ed-kicker,.ed-lead) {
  max-width: 36em;
  font-size: clamp(16px, 1.06vw, 18px);
  line-height: 1.9;
  text-align: start;
}
.inner-editorial main :is(.ed-section,.ed-closing,.ed-journal-heading) > div > h2,
.inner-editorial .ed-journal-heading h1 {
  font-family: var(--reading-type);
  font-weight: 570;
  letter-spacing: 0;
  text-wrap: balance;
}
.ed-manufacturing #opening h1 { font-size: clamp(34px, 4.1vw, 74px); line-height: 1.26; font-weight: 560; text-wrap: balance; }
.ed-manufacturing #opening .ed-hero-content { align-self: end; }
.inner-editorial .ed-chapters a { font-size: 15px; }
.inner-editorial .ed-closing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  padding-block: clamp(28px, 4vw, 56px);
  color: #262724;
  background: #f7f7f4;
}
.inner-editorial .ed-closing h2 { margin: 0; font-size: clamp(21px, 2vw, 32px); font-weight: 550; }
.inner-editorial .ed-closing .ed-closing-actions { margin: 0; }
.ed-brands #brand-partners .ed-partner-links a { min-height: 52px; font-size: clamp(18px, 1.5vw, 24px); }
.ed-news #opening.ed-journal-heading { gap: 12px 3vw; padding-block: clamp(32px, 5vw, 76px); }
.ed-news #opening h1 { margin: 0; line-height: 1.22; font-size: clamp(38px,4.5vw,72px); }
.ed-news #opening p { margin: 0; font-size: 16px; }

/* Inspection records and contact details share the same readable paper surface. */
:is(.ed-quality,.ed-contact) #opening.ed-hero {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  align-items: stretch;
  isolation: isolate;
  padding: 0;
  height: auto;
  max-height: none;
  min-height: clamp(350px,32vw,555px);
  color: #212522;
  background: #f5f4ef;
}
:is(.ed-quality,.ed-contact) #opening.ed-hero::after { content: none; }
:is(.ed-quality,.ed-contact) #opening .ed-hero-photo {
  position: relative;
  inset: auto;
  grid-area: 1 / 2;
  min-width: 0;
  width: 100%;
  margin: 0;
  height: auto;
  z-index: 0;
}
:is(.ed-quality,.ed-contact) #opening .ed-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:is(.ed-quality,.ed-contact) #opening .ed-hero-content {
  grid-area: 1 / 1;
  align-self: center;
  min-width: 0;
  padding: clamp(36px,5vw,85px) clamp(20px,4vw,72px) clamp(36px,5vw,85px) var(--ed-gutter);
}
:is(.ed-quality,.ed-contact) #opening h1 {
  color: #212522;
  font: 570 clamp(38px,3.45vw,62px)/1.25 var(--reading-type);
  letter-spacing: .015em;
  text-wrap: balance;
  margin: 0 0 16px;
}
:is(.ed-quality,.ed-contact) #opening .ed-hero-sub {
  opacity: 1;
  max-width: 23em;
  color: #474a46;
  font-size: clamp(16px,1.1vw,18px);
  line-height: 1.8;
}
.ed-quality #opening .quality-process { display: inline-block; white-space: nowrap; }
.ed-quality .quality-evidence-link, .certificate-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  min-height: 44px;
  font: 530 15px/1.4 var(--reading-type);
  color: #242823;
  background: transparent;
}
.ed-quality .quality-evidence-link {
  border-bottom: 1px solid currentColor;
  margin-top: 18px;
  text-decoration: none;
}
.ed-contact #opening.ed-hero {
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  min-height: clamp(320px,27vw,460px);
  background: #f8f8f5;
}
.ed-contact #opening .contact-hero-action { flex-wrap: wrap; gap: 2px 16px; color: #454943; margin-top: 16px; }
.ed-contact #opening .contact-hero-action a {
  padding: 0;
  font-size: clamp(24px,2vw,34px);
  border-radius: 0;
  color: #222622;
  background: transparent;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.ed-contact #opening .contact-hero-action a:focus-visible,
.quality-evidence-link:focus-visible,.certificate-zoom:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.certificate-zoom {
  margin: 12px 0 8px;
  padding: 0 14px;
  border: 1px solid #a5aaa4;
  border-radius: 3px;
  cursor: pointer;
}
.certificate-zoom[hidden] { display: none; }
.certificate-dialog .certificate-original {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
.certificate-dialog .certificate-original.is-enlarged {
  max-height: 58vh;
  max-height: 58svh;
}
.certificate-dialog .certificate-original.is-enlarged img {
  display: block;
  width: max(120%, 860px);
  max-width: none;
  height: auto;
}
@media (max-width: 760px) {
  :is(.ed-quality,.ed-contact) #opening.ed-hero { grid-template-columns: 1fr; min-height: 0; }
  :is(.ed-quality,.ed-contact) #opening .ed-hero-content { grid-area: 1 / 1; padding: 32px var(--ed-gutter) 24px; }
  :is(.ed-quality,.ed-contact) #opening h1 { margin-bottom: 10px; font-size: clamp(30px,7.7vw,46px); }
  :is(.ed-quality,.ed-contact) #opening .ed-hero-photo { grid-area: 2 / 1; height: clamp(130px, 43vw, 260px); }
  .ed-contact #opening .ed-hero-photo { height: clamp(115px,33vw,220px); }
  .ed-contact #opening .contact-hero-action, .ed-quality .quality-evidence-link { margin-top: 7px; }
  .ed-manufacturing #opening .ed-hero-content { padding-bottom: 20px; }
  .inner-editorial .ed-closing { align-items: start; flex-direction: column; }
  .inner-editorial .ed-chapters a { font-size: 14px; }
  .ed-about #company .ed-company-split > div > p.ed-lead { font-size: 17px; line-height: 1.82; }
}

@media (max-width: 1000px) {
  .ed-about {
    --reading-type: "PingFang SC", "Microsoft YaHei", June, sans-serif;
  }
  .ed-about .ed-chapters a, .ed-about .ed-story-copy :is(h2,p,a) {
    font-family: var(--reading-type);
  }
  body.ref-site header #navigation {
    font-family: "PingFang SC", "Microsoft YaHei", June, sans-serif;
  }
  body.ref-site header button.menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #282923;
    background: transparent;
    box-shadow: none;
  }
  .menu-lines,.menu-lines::before,.menu-lines::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
  }
  .menu-lines { position: relative; }
  .menu-lines::before,.menu-lines::after { content: ""; position: absolute; top: 0; left: 0; }
  .menu-lines::before { transform: translateY(-7px); }
  .menu-lines::after { transform: translateY(7px); }
  .menu[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); }
  .menu[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }
  body.ref-site header .menu:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
}
@media (max-width: 760px) {
  :root { --header: 60px; --chapter-height: 44px; }
  body.brand-cover { --cover-header: var(--header); }
  body.ref-site header { height: var(--header); padding-inline: 18px 10px; }
  body.ref-site header .logo, body.ref-site header .logo img { width: 101px; height: 55px; }
  body.ref-site header #navigation { top: 100%; max-height: calc(100svh - var(--header)); }
  html:has(body.ref-site) { scroll-padding-top: var(--header); }
  html:has(body.inner-editorial .ed-chapters) { scroll-padding-top: calc(var(--header) + var(--chapter-height) + 1px); }
  .inner-editorial .ed-chapters {
    top: var(--header);
    min-height: var(--chapter-height);
    gap: 22px;
    padding-inline: 18px;
    background: #fff;
  }
  .inner-editorial .ed-chapters a { min-height: var(--chapter-height); }
  .ed-about .ed-chapters a[aria-current] { color: #242620; }
  .ed-about #opening .ed-hero-content { order: 0; padding: 20px; }
  .ed-about #opening .ed-hero-photo { order: -1; height: auto; aspect-ratio: 1.95; }
  .ed-about #opening .ed-hero-photo img { height: 100%; }
  .ed-about #company { padding-block: 30px; }
  .ed-about #story {
    display: block;
    min-height: 0;
    padding: 0;
    background: #fff;
    color: #232620;
  }
  .ed-about #story::after { content: none; }
  .ed-about #story .ed-scene-photo {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
  }
  .ed-about #story .ed-scene-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
  .ed-about #story .ed-story-copy { width: 100%; max-width: 42rem; margin: 0 auto; padding: 21px 20px 24px; }
  .ed-about #story h2 { margin: 0 0 12px; font: 560 clamp(25px,6.6vw,32px)/1.35 var(--reading-type); color: #232620; letter-spacing: .01em; }
  .ed-about #story .ed-story-copy p { color: #40423c; margin: 0 0 8px; font-size: 16px; line-height: 1.8; }
  .ed-about #story .ed-link { min-height: 44px; margin: 5px 0 0; padding-block: 8px; color: #30342c; border-color: #aaa9a0; font-size: 14px; }
  .ed-about #culture { padding-top: 34px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .ed-about #story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 0;
    padding: 0;
    background: #fff;
    color: #232620;
  }
  .ed-about #story::after { content: none; }
  .ed-about #story .ed-scene-photo {
    position: relative; inset: auto; z-index: auto;
    align-self: stretch; width: 100%; margin: 0;
  }
  .ed-about #story .ed-scene-photo img { width: 100%; height: 100%; object-fit: cover; }
  .ed-about #story .ed-story-copy { width: 100%; padding: 32px 26px; }
  .ed-about #story h2 { color: #232620; font-size: 27px; line-height: 1.35; margin-bottom: 14px; }
  .ed-about #story .ed-story-copy p { color: #40423c; font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
  .ed-about #story .ed-link { min-height: 44px; color: #30342c; border-color: #aaa9a0; margin-top: 4px; }
}
