/* ==========================================================================
   Standard Law Academic — site stylesheet

   Basis: white ground, generous margins, hairline rules, light sans headings,
   one vivid action blue, a teal-blue for links, and orange kept to the mark,
   the active-tab rule and status dots. No decorative colour bars: boxes and
   text sit on neutral hairlines only.

   Logo: Baskerville monogram in deep navy with an orange period, matching the
   twelve journal sites; the journals page follows the family's results-page
   pattern (facet rail, count line, table of titles).
   ========================================================================== */

:root {
  --ink: #1f1f1f;
  --ink-soft: #333333;
  --body: #3a3a3a;
  --muted: #666666;
  --faint: #757575;
  --line: #d7d7d7;
  --line-soft: #e8e8e8;
  --band: #f5f5f5;
  --navy: #0b2b5c;
  --orange: #eb6500;
  --orange-ink: #b34a00;
  --blue: #2353ff;
  --blue-dark: #1240d8;
  --link: #0472b1;
  --link-dark: #03547f;
  --radius: 3px;
  --wrap: 1240px;
  --gut: 32px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --sans-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="zh-Hans"] body {
  font-family: var(--sans-zh);
  line-height: 1.8;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 24px;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-dark);
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #fde3d0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  background: #ffffff;
}

.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--gut) 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand__mark {
  width: auto;
  height: 42px;
  flex: none;
}

.brand__name {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--link);
}

.nav__link[aria-current="page"] {
  color: var(--link);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
}

.nav__lang {
  margin-left: 2px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav__lang:hover {
  color: var(--link);
}

.menu-btn {
  display: none;
  align-items: center;
  margin-left: auto;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  cursor: pointer;
}

.menu-btn__bars {
  display: block;
  width: 17px;
}

.menu-btn__bars span {
  display: block;
  height: 1.5px;
  margin: 3.5px 0;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Type, lede, eyebrow, actions
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lede {
  margin-top: 22px;
  max-width: 660px;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.6;
}

html[lang="zh-Hans"] .lede {
  max-width: 720px;
  line-height: 1.85;
}

.actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #ffffff;
}

.btn--ghost {
  background: #ffffff;
  border-color: #c9c9c9;
  color: var(--ink);
}

.btn--ghost:hover {
  background: #f7f7f7;
  border-color: #9c9c9c;
  color: var(--ink);
}

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--link);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.tlink:hover {
  color: var(--link-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tlink--sm {
  font-size: 13.5px;
  font-weight: 400;
}

.ext {
  display: inline-block;
  font-size: 0.85em;
  transform: translateY(-0.06em);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 56px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
}

.hero h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(2rem, 1.5rem + 2.1vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

html[lang="zh-Hans"] .hero h1 {
  max-width: 820px;
  margin-top: 20px;
  letter-spacing: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Fact box
   -------------------------------------------------------------------------- */

.factbox {
  margin-top: 34px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.factbox__title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.facts {
  font-size: 13.5px;
  line-height: 1.45;
}

.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
}

.facts > div + div {
  border-top: 1px solid var(--line-soft);
}

.facts dt {
  flex: none;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.factbox__link {
  display: inline-block;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 56px 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sec-head h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.sec-lede {
  max-width: 760px;
  margin-bottom: 36px;
  color: #4f4f4f;
  font-size: 16.5px;
}

.section-more {
  margin-top: 36px;
}

html[lang="zh-Hans"] .sec-head h2,
html[lang="zh-Hans"] .band h2 {
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Journal index
   -------------------------------------------------------------------------- */

.jgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 54px;
  border-top: 1px solid var(--line);
}

.jcard {
  min-width: 0;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line-soft);
}

.jkicker {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.jdot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent, #999999);
}

.jmono {
  color: #555555;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jfield {
  color: var(--muted);
  font-size: 13px;
}

.jfield::before {
  content: "\00B7";
  margin: 0 8px;
  color: #c2c2c2;
}

.jname {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.004em;
}

.jname a {
  color: var(--ink);
  text-decoration: none;
}

.jname a:hover {
  color: var(--link-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jalt {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
  white-space: nowrap;
}

html[lang="zh-Hans"] .jname {
  line-height: 1.55;
}

html[lang="zh-Hans"] .jalt {
  font-size: 14px;
}

.jremit {
  max-width: 430px;
  margin-top: 8px;
  color: #4d4d4d;
  font-size: 14.5px;
  line-height: 1.55;
}

.jstatus {
  margin-top: 12px;
  color: #6f6f6f;
  font-size: 12.5px;
  line-height: 1.55;
}

.jstatus span {
  white-space: nowrap;
}

.jstatus__lead {
  color: #3a3a3a;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Journal results: facet rail, count line, table
   -------------------------------------------------------------------------- */

.results {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}

.filters {
  position: sticky;
  top: 24px;
}

html:not(.js) .filters,
html:not(.js) .sort {
  display: none;
}

html:not(.js) .results {
  grid-template-columns: 1fr;
}

.filters__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.filters__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.linkbtn {
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.linkbtn:hover {
  color: var(--link-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.searchbox {
  margin-top: 18px;
}

.searchbox__input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.searchbox__input::placeholder {
  color: #7c7c7c;
}

.searchbox__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.facet {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.facet__title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.facet__list {
  margin-top: 8px;
}

.facet__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.facet__check {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
  accent-color: var(--blue);
}

.facet__label {
  flex: 1;
  min-width: 0;
}

.facet__count {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.results__main {
  min-width: 0;
}

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.results__count {
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

html[lang="zh-Hans"] .results__count {
  font-size: 21px;
}

.results__tools {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.sort__select {
  appearance: none;
  -webkit-appearance: none;
  width: 122px;
  padding: 3px 18px 4px 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0;
  border-bottom: 1px solid #9e9e9e;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.sort__select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.jtable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.jtable__col-name {
  width: 45%;
}

.jtable__col-field {
  width: 22%;
}

.jtable__col-abbr {
  width: 13%;
}

.jtable__col-status {
  width: 20%;
}

.jtable th {
  padding: 0 18px 12px 0;
  border-bottom: 1px solid #2b2b2b;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.jtable td {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.jtable th:last-child,
.jtable td:last-child {
  padding-right: 0;
}

.jrow:hover {
  background: #fafafa;
}

.jrow__type {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jrow__title {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.004em;
}

.jrow__title a {
  color: var(--ink);
  text-decoration: none;
}

.jrow__title a:hover {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jrow__alt {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 14px;
}

.jrow__remit {
  max-width: 44ch;
  margin-top: 7px;
  color: #5a5a5a;
  font-size: 13.5px;
  line-height: 1.55;
}

.jrow__field {
  color: #3f3f3f;
  font-size: 14.5px;
  line-height: 1.5;
}

.jrow__abbr {
  color: var(--accent, #555555);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.jrow__status {
  color: #3f3f3f;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.statusdot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 1px;
}

.results__empty {
  padding: 30px 0;
  color: var(--muted);
  font-size: 14.5px;
}

.results__empty p {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Tabs and filter bar
   -------------------------------------------------------------------------- */

.tabbar {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.tabbar--doc {
  margin-bottom: 44px;
}

.tabs {
  display: flex;
  gap: 32px;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-block;
  padding: 6px 0 14px;
  border-bottom: 2px solid transparent;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover {
  color: var(--link);
}

.tab[aria-current] {
  border-bottom-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Band
   -------------------------------------------------------------------------- */

.band {
  background: var(--band);
}

.band__inner {
  padding-top: 54px;
  padding-bottom: 58px;
}

.band h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.band__copy {
  max-width: 760px;
}

.band__copy p + p {
  margin-top: 12px;
}

.band__copy p {
  color: #454545;
}

.band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 24px;
}

.band__note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Three-column argument
   -------------------------------------------------------------------------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.trio > article {
  padding: 26px 34px 0 0;
}

.trio > article + article {
  padding-right: 0;
  padding-left: 34px;
  border-left: 1px solid var(--line-soft);
}

.trio h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.004em;
}

.trio p {
  margin-top: 10px;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Page heads
   -------------------------------------------------------------------------- */

.pagehead {
  padding: 52px 0 36px;
}

.pagehead h1 {
  max-width: 840px;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1.95rem, 1.55rem + 1.55vw, 2.45rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

html[lang="zh-Hans"] .pagehead h1 {
  margin-top: 18px;
  letter-spacing: 0;
  line-height: 1.45;
}

.docmeta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.docmeta span + span {
  margin-left: 10px;
}

.docmeta span + span::before {
  content: "\00B7";
  margin-right: 10px;
  color: #c2c2c2;
}

.pagehead .lede {
  margin-top: 18px;
  color: #4a4a4a;
  font-size: 17.5px;
}

/* --------------------------------------------------------------------------
   Prose and about layout
   -------------------------------------------------------------------------- */

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  align-items: start;
  padding-bottom: 72px;
}

.doc-main {
  min-width: 0;
  max-width: 752px;
}

.docrail {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.docrail .factbox {
  margin-top: 0;
}

.pagenav__title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagenav ul {
  border-left: 1px solid var(--line);
}

.pagenav a {
  display: block;
  padding: 9px 12px 9px 16px;
  color: #555555;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.pagenav a:hover {
  color: var(--link);
}

.pagenav a[aria-current] {
  background: #f2f6fb;
  color: var(--ink);
  font-weight: 500;
}

html[lang="zh-Hans"] .pagenav a {
  line-height: 1.6;
}

.prose {
  max-width: 752px;
}

.prose section + section {
  margin-top: 44px;
}

.prose h2 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 16px;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.68;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #a9c9de;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--link-dark);
  text-decoration-color: currentColor;
}

html[lang="zh-Hans"] .prose p {
  line-height: 1.95;
}

html[lang="zh-Hans"] .prose h2 {
  line-height: 1.5;
}

.statement {
  max-width: 640px;
  margin-top: 44px;
  padding-top: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.006em;
}

html[lang="zh-Hans"] .statement {
  font-size: 21px;
  line-height: 1.7;
  letter-spacing: 0;
}

.about-end {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Status key
   -------------------------------------------------------------------------- */

.keylist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 30px;
}

.key {
  padding-top: 14px;
  border-top: 1px solid #cfcfcf;
}

.key h3 {
  font-size: 14.5px;
  font-weight: 600;
}

.key p {
  margin-top: 6px;
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.steps {
  border-top: 0;
}

.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 36px;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line-soft);
}

.step__n {
  padding-top: 7px;
  color: var(--orange-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.step p {
  max-width: 750px;
  margin-top: 11px;
  color: #3f3f3f;
  font-size: 15.5px;
  line-height: 1.68;
}

.step p + p {
  margin-top: 10px;
}

html[lang="zh-Hans"] .step h2 {
  line-height: 1.6;
}

html[lang="zh-Hans"] .step p {
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.routes {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.route {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  gap: 40px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.route h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.route p {
  max-width: 620px;
  color: #3f3f3f;
  font-size: 15px;
  line-height: 1.65;
}

.chip {
  display: inline-block;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  color: #5f5f5f;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.dir {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.dir th {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.dir td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: baseline;
}

.dir th:last-child,
.dir td:last-child {
  padding-right: 0;
}

.dir a {
  color: var(--link);
  text-decoration: none;
}

.dir a:hover {
  color: var(--link-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dir__name {
  color: var(--ink);
  font-weight: 500;
}

.dir__url {
  color: #666666;
  font-family: var(--mono);
  font-size: 12.5px;
}

.dir__url:hover {
  color: var(--link);
}

.note {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 8px;
  padding-top: 56px;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 0.85fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  color: var(--navy);
}

.footer-brand .brand:hover {
  color: var(--navy);
}

.footer-brand .brand__mark {
  height: 34px;
}

.footer-brand .brand__name {
  font-size: 17px;
  font-weight: 600;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-brand .tlink {
  margin-top: 14px;
  font-size: 13.5px;
}

.footer-brand .footer-brand__site {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.footer-col__title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-links {
  font-size: 14px;
  line-height: 2;
}

.footer-links li {
  break-inside: avoid;
}

.footer-links a {
  color: var(--link);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links--split {
  columns: 2;
  column-gap: 30px;
}

.footer-legal {
  border-top: 1px solid var(--line);
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 38px;
}

.footer-legal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.footer-legal__brand .brand__mark {
  height: 24px;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
}

.footer-legal__links a {
  color: #4a4a4a;
  text-decoration: none;
}

.footer-legal__links a:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal__site {
  margin-left: auto;
  color: #6b6b6b;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.footer-legal__copy {
  flex-basis: 100%;
  max-width: 900px;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.nf {
  padding: 86px 0 110px;
}

.nf__code {
  color: var(--ink);
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.nf h1 {
  margin-top: 30px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.nf p {
  max-width: 520px;
  margin-top: 14px;
  color: #4a4a4a;
}

.nf .actions {
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
  }

  .doc-grid {
    gap: 56px;
  }

  .results {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
  }

  .jgrid {
    column-gap: 40px;
  }
}

@media (max-width: 1020px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .docrail {
    position: static;
    display: block;
  }

  .pagenav {
    display: none;
  }

  .docrail .factbox {
    max-width: 420px;
    margin-top: 34px;
  }
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .factbox {
    max-width: 420px;
  }

  .jgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .filters {
    position: static;
    padding-bottom: 4px;
  }

  .facet__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .searchbox {
    max-width: 420px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .trio {
    grid-template-columns: 1fr;
  }

  .trio > article {
    padding: 22px 0 0;
  }

  .trio > article + article {
    margin-top: 22px;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .route {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .keylist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .masthead__inner {
    flex-wrap: wrap;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    padding: 6px 0 10px;
    border-top: 1px solid var(--line);
  }

  html.js .nav {
    display: none;
  }

  html.js .nav.is-open {
    display: flex;
  }

  html:not(.js) .menu-btn {
    display: none;
  }

  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15.5px;
  }

  .nav__link[aria-current="page"] {
    font-weight: 600;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__lang {
    margin: 12px 0 0;
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --gut: 20px;
  }

  .hero {
    padding: 36px 0 46px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .lede {
    font-size: 16.5px;
  }

  .jgrid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .section {
    padding: 44px 0;
  }

  .sec-head h2,
  .band h2 {
    font-size: 22px;
  }

  .pagehead {
    padding: 36px 0 26px;
  }

  .keylist {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step__n {
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-legal__site {
    margin-left: 0;
  }

  .tabbar {
    gap: 18px;
  }

  .tabs {
    gap: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }

  .tab {
    font-size: 15.5px;
  }

  .jtable th:nth-child(3),
  .jtable td:nth-child(3) {
    display: none;
  }

  .jrow__remit {
    display: none;
  }

  .jrow__title {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .footer-links--split {
    columns: 1;
  }

  .actions {
    gap: 18px;
  }

  .actions .btn {
    width: 100%;
  }

  .dir th:nth-child(3),
  .dir td:nth-child(3) {
    display: none;
  }

  .jtable th:nth-child(2),
  .jtable td:nth-child(2) {
    display: none;
  }

  .jtable__col-name {
    width: 64%;
  }

  .jtable__col-status {
    width: 36%;
  }

  .jtable td {
    padding-right: 12px;
  }

  .jrow__status {
    white-space: nowrap;
  }

  .results__tools {
    gap: 12px 20px;
  }

  .statement {
    font-size: 19px;
  }
}

@media (max-width: 420px) {
  .masthead__inner {
    gap: 12px;
    padding-top: 20px;
  }

  .brand__mark {
    height: 36px;
  }

  .brand__name {
    font-size: 17px;
  }

  .facet__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
