/* Language links belong with the journal tools, and remain visible at every size. */
.language-switch{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font:600 .75rem/1 var(--sans);letter-spacing:.035em;color:#74776d}
.language-switch a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 2px;color:inherit;text-decoration:none}
.language-switch a[aria-current="true"]{color:var(--ink);border-bottom:1px solid var(--accent)}
.language-switch a:hover{color:var(--accent)}
.language-switch a[lang="zh-CN"]{font-family:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0}

/* Chinese editorial type needs more leading and none of the Latin tracking. */
html:lang(zh-CN){--zh-serif:"Noto Serif CJK SC","Songti SC","STSong","SimSun",serif;--zh-sans:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif}
html:lang(zh-CN) body{font-family:var(--zh-sans)}
html:lang(zh-CN) :is(.hero h1,.section-head h2,.collection h1,.card h3,.design-copy h2,.article h1,.article-body h2,.more-reads h2,.related,.search-top h2){font-family:var(--zh-serif);letter-spacing:0;line-height:1.25}
html:lang(zh-CN) :is(.eyebrow,.card-meta,.card-meta span,.source-list h3){letter-spacing:0;text-transform:none}
html:lang(zh-CN) .article-body p{font-family:var(--zh-sans);line-height:1.9}
html:lang(zh-CN) .hero h1{font-size:clamp(2.8rem,5vw,5rem)}
html:lang(zh-CN) .hero[data-feature="ascendant"] h1{font-size:clamp(2.65rem,4.4vw,4.65rem)}

/* The extra language control gets its own space before the menu becomes crowded. */
@media(max-width:1150px){
 .header-inner{flex-wrap:wrap;gap:0 16px;padding-top:12px;min-height:0}
 .header-inner nav{order:3;flex-basis:100%;width:100%;justify-content:space-between;padding:9px 0 6px}
 .head-tools{margin-left:auto}
}
/* Four subject desks sit together; contact and language are utilities. */
.masthead { border-bottom-color: #afb2a7; }
.header-inner nav { align-self: stretch; }
.header-inner nav a { display: inline-flex; align-items: center; position: relative; }
.header-inner nav a[aria-current]::after {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent);
}
.head-tools .contact-shortcut {
  display: inline-flex; min-height: 40px; align-items: center;
  color: var(--ink); font-size: .91rem; white-space: nowrap;
}
.contact-shortcut[aria-current], .contact-shortcut:hover { text-decoration: underline; text-underline-offset: .28em; }
.head-tools .studio-link { border: 0; border-left: 1px solid var(--rule); border-radius: 0; padding: .35rem 0 .35rem .85rem; }
.head-tools .studio-link:hover { background: transparent; text-decoration: underline; text-underline-offset: .28em; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem 2rem; padding-block: 2rem 2.5rem; }
.footer-title p { margin: .25rem 0 0; }
.footer nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(.9rem,2vw,1.8rem); }
.footer nav a { padding: .45rem 0; }
@media (max-width: 760px) {
  .footer { display: grid; grid-template-columns: 1fr; padding-block: 1.35rem 1.65rem; gap: .65rem; }
  .footer nav { gap: 0 1.2rem; }
  .footer nav a { display: inline-flex; min-height: 40px; align-items: center; }
}
/* Keep the four desks and both services in a native disclosure on narrow screens. */
.mobile-browse { display: none; }

@media (max-width: 600px) {
  .header-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 .25rem;
    min-height: 3.5rem;
    padding: .25rem 4.3%;
  }
  .header-inner .brand {
    flex: 1 1 auto;
    gap: .35rem;
    font-size: clamp(1.45rem,6.6vw,2.1rem);
    min-height: 2.75rem;
  }
  .header-inner > nav, .head-tools :is(.studio-link,.contact-shortcut),
  .header-inner .language-switch :is([aria-current],span) { display: none; }
  .header-inner .head-tools { margin-inline-start: auto; gap: 0; }
  .header-inner .language-switch { gap: 0; font-size: .94rem; color: var(--ink); }
  .header-inner .language-switch a:not([aria-current]), .header-inner .icon-button,
  .mobile-browse summary { min-width: 2.75rem; min-height: 2.75rem; }
  .mobile-browse { display: block; }
  .mobile-browse summary {
    display: grid;
    place-items: center;
    border-inline-start: 1px solid var(--rule);
    padding-inline: .5rem 0;
    cursor: pointer;
    list-style: none;
    font-size: .94rem;
    font-weight: 600;
  }
  .mobile-browse summary::-webkit-details-marker { display: none; }
  .mobile-browse summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
  .mobile-browse[open] summary { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
  .mobile-browse[open] nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: auto;
    gap: 0 1.25rem;
    padding: .5rem 4.3% .9rem;
    border-block: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: 0 .55rem .9rem -.75rem #433f34;
    max-height: 70dvh;
    overflow: auto;
  }
  .mobile-browse nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--rule);
    font: 500 1rem/1.35 var(--sans);
    overflow-wrap: anywhere;
  }
  .mobile-browse nav a:focus-visible { outline-offset: -2px; }
  .mobile-browse nav a[aria-current]::after { inset-inline-end: auto; width: 1.5rem; }
  html:lang(zh-CN) .hero[data-feature="ascendant"] h1 { font-size: clamp(2.6rem,9vw,4.1rem); }
}
