/* NewGLaw — one stylesheet, no framework, no web fonts.
   Same paper, ink and 新生代红 as NewGvisa; a slower, larger, statement-led rhythm. Light only. */

:root {
  --red: #d52b1e;
  --ink: #1b1a19;
  --ink-2: #57534d;
  --ink-3: #716c64;
  --rule: #e6e3df;
  --paper: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gut: clamp(16px, 4.5vw, 56px);
  --gap: clamp(24px, 4vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere; line-break: strict;
}
a { color: inherit; text-decoration: none; transition: color .15s, background-color .15s; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
i { font-style: normal; }
small { font-size: inherit; }
time, .pr-n, .steps span { font-variant-numeric: tabular-nums; }
h1, h2, h3, .pr-t, .art-t, .ar-t { text-wrap: balance; }
/* 中文标题只在空格与标点处换行；过长时再回落为任意断行 */
h1, .art-t, .ar-t, .pr-t { word-break: keep-all; overflow-wrap: anywhere; }
.prose p, .lede, .oneline, .join-l, .pp-f { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 9; }
.skip:focus { left: 8px; }
.arrow::after { content: "\2192"; margin-left: .35em; color: var(--red); }

/* ── top bar: 新生代 family (bar.newglaw.com) ─────────────── */
.top { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; flex: none; }
.logo img { display: block; width: 73px; height: 32px; }
.sites { position: relative; flex: none; margin-left: -12px; }
.sites summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--red); color: var(--red);
  font-size: 14px; font-weight: 750; line-height: 1.2; white-space: nowrap;
}
.sites summary::-webkit-details-marker { display: none; }
.sites summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.sites[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.sites ul { position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); padding: 6px 0; }
.sites a { display: block; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.sites a small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.sites a[aria-current] { color: var(--red); }
.sites a:hover { background: #f6f4f1; }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; margin-right: auto; }
.nav a, .nav-search { color: var(--ink); padding: 4px 0; }
.nav a[aria-current], .nav-search[aria-current] { color: var(--red); font-weight: 700; }
.nav a:hover, .nav-search:hover { color: var(--red); }
.nav-search { font-size: 15px; font-weight: 700; }

/* ── hero: one statement ────────────────────────────────── */
.hero { padding-top: clamp(56px, 10vw, 152px); padding-bottom: clamp(56px, 8vw, 120px); }
.hero-t {
  font-size: clamp(29px, 5.6vw, 78px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em;
  max-width: 16em;
}
.hero-t span { display: block; }
.hero-t em { font-style: normal; color: var(--red); white-space: nowrap; }
.hero-b { margin-top: clamp(32px, 5vw, 64px); margin-left: calc(50% + var(--gap) / 2); max-width: 30em; color: var(--ink-2); font-size: 17px; }
.hero-a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 12px 24px; font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.btn:hover { background: var(--red); color: #fff; }
.hero-a .arrow { color: var(--ink); font-weight: 600; font-size: 15px; }

/* ── blocks with a ruled label ──────────────────────────── */
.blk { padding-top: clamp(40px, 6vw, 80px); }
.label { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(16px, 2vw, 24px); }
.label h2 { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--red); white-space: nowrap; }
.label::after { content: ""; order: 2; flex: 1; height: 1px; background: var(--ink); transform: translateY(-4px); }
.label-more { order: 3; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.label-more::after { content: "\2192"; margin-left: .35em; color: var(--red); }
.note { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; max-width: 40em; }
.oneline { font-size: 19px; font-weight: 500; max-width: 34em; }

/* practice rows */
.practice li + li a { border-top: 1px solid var(--rule); }
.practice a {
  display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap);
  padding: clamp(20px, 2.6vw, 32px) 0; align-items: baseline;
}
.pr-n { font-size: 14px; font-weight: 600; color: var(--red); }
.pr-t { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; line-height: 1.3; letter-spacing: -.01em; }
.pr-t small, .ph-t small, .exams small {
  display: block; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}
.pr-s { font-size: 16px; color: var(--ink-2); max-width: 30em; }
.practice a:hover .pr-t { color: var(--red); }
.practice a:hover { color: var(--ink); }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px var(--gap); padding-top: 12px; }
.people a { display: block; }
.people a:hover { color: var(--ink); }
.pp-n { display: block; font-size: clamp(40px, 4.4vw, 56px); font-weight: 650; letter-spacing: .08em; line-height: 1.15; }
.people a:hover .pp-n { color: var(--red); }
.pp-r { display: block; font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.pp-r i, .person-r i { margin: 0 .5em; }
.pp-f { display: block; font-size: 16px; color: var(--ink-2); margin-top: 8px; max-width: 26em; }

/* article rows */
.articles li { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; column-gap: var(--gap); padding: 18px 0; align-items: baseline; }
.articles li + li { border-top: 1px solid var(--rule); }
.articles time { font-size: 14px; color: var(--ink-3); }
.ar-t { font-size: 19px; font-weight: 550; line-height: 1.5; }
.ar-m { font-size: 14px; color: var(--ink-3); white-space: nowrap; }

/* join band: a different audience, a heavier rule */
.join-band { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: end; }
.join-band::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
.join-t { font-size: clamp(44px, 7vw, 96px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.join-t a:hover { color: var(--red); }
.join-l { font-size: 18px; color: var(--ink-2); margin-bottom: 16px; }
.join-band .arrow { font-weight: 600; }

/* contact */
.contact > div { display: grid; grid-template-columns: 4em 1fr; align-items: baseline; padding: 6px 0; }
.contact dt { font-size: 14px; color: var(--ink-3); }
.contact dd { font-size: 20px; font-weight: 600; }
.contact-xl > div { padding: clamp(10px, 1.6vw, 18px) 0; }
.contact-xl > div + div { border-top: 1px solid var(--rule); }
.contact-xl dd { font-size: clamp(26px, 4.2vw, 52px); letter-spacing: -.015em; line-height: 1.3; }
.contact-xl dt { font-size: 15px; }
.ct-note { display: block; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); line-height: 1.5; }

/* ── page headers ───────────────────────────────────────── */
.ph { padding-top: clamp(48px, 8vw, 120px); }
.ph-t { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ph-t small { font-size: 13px; margin-top: 18px; letter-spacing: .18em; }
.lede { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.75; color: var(--ink-2); max-width: 32em; margin-top: clamp(20px, 2.4vw, 32px); }
.crumbs { font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 24px; }
.crumbs i { margin: 0 .5em; }
.err { color: var(--red); font-weight: 700; letter-spacing: .12em; margin-bottom: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.jump a { color: var(--red); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px var(--gap); padding-top: 8px; }
.col-h { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 8px; }
.dash li { position: relative; padding: 6px 0 6px 1.6em; font-size: 16.5px; line-height: 1.7; max-width: 40em; }
.dash li::before { content: "\2014"; position: absolute; left: 0; color: var(--ink-3); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px var(--gap); padding-top: 8px; }
.steps li { font-size: 17px; line-height: 1.6; font-weight: 500; }
.steps span { display: block; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.exams li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--gap); padding: 24px 0; }
.exams li + li { border-top: 1px solid var(--rule); }
.exams h3 { font-size: clamp(22px, 2.2vw, 26px); font-weight: 650; line-height: 1.35; }
.exams p { color: var(--ink-2); max-width: 32em; }
.refs { counter-reset: r; font-size: 15px; }
.refs li { counter-increment: r; display: grid; grid-template-columns: 1.8em 1fr; padding: 4px 0; }
.refs li::before { content: counter(r); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.refs a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap); padding-top: 8px; }
.points h3 { font-size: 22px; font-weight: 650; margin-bottom: 8px; }
.points p { color: var(--ink-2); max-width: 26em; }

/* lawyer profile */
.person-n { font-size: clamp(64px, 11vw, 148px); font-weight: 700; letter-spacing: .06em; line-height: 1; }
.person-r { font-size: 15px; color: var(--ink-3); margin-top: 20px; }
.person { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: calc(var(--gap) * 1.5); }
.person-main { font-size: 18px; line-height: 1.9; max-width: 34em; }
.person-main p + p { margin-top: 1em; }
.person-side > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.person-side > div:first-child { border-top: 1px solid var(--ink); }
.person-side dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
.person-side li { padding: 2px 0; }
.person-side a { color: var(--ink); }
.person-side a:hover, .verify { color: var(--red); }
.verify { font-size: 13px; margin-left: .6em; white-space: nowrap; }
.verify::after { content: "\2197"; margin-left: 1px; }

/* ── article ───────────────────────────────────────────── */
.art { padding-top: clamp(48px, 8vw, 112px); }
.art-h, .art-body { max-width: 42em; margin: 0 auto; }
.art-t { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; line-height: 1.22; letter-spacing: -.02em; }
.art-m { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--ink-3); margin-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.art-m a { color: var(--ink); font-weight: 600; }
.art-body { padding-top: 36px; }
.age { font-size: 15px; color: var(--ink-2); padding-left: 1em; box-shadow: inset 2px 0 var(--red); margin-bottom: 32px; }
.prose { font-size: 18px; line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; line-height: 1.45; margin-top: 2em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.prose em { font-style: italic; }
.refs-sec { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.refs-sec h2, .author-k { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 8px; }
.author { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.author-n { font-size: 28px; font-weight: 650; letter-spacing: .06em; margin-right: 12px; }
.author span { color: var(--ink-3); font-size: 14px; }
.author-f { color: var(--ink-2); font-size: 15px; margin-top: 4px; }

.points-3 { grid-template-columns: repeat(3, 1fr); }
.exams li { grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; }
.exams .pr-n { font-size: 14px; }
.exam-site { margin-top: 8px; font-size: 14px; font-weight: 600; }
.client-note { margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.client-note a { color: var(--ink-2); }
.client-note a:hover { color: var(--red); }

/* ── footer ─────────────────────────────────────────────── */
.foot { margin-top: clamp(72px, 10vw, 144px); border-top: 1px solid var(--ink); }
.foot-in { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px var(--gap); padding-top: 36px; padding-bottom: 56px; font-size: 15px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 64px; height: 28px; flex: none; }
.foot-contact > div { display: grid; grid-template-columns: 3em 1fr; }
.foot-contact dt { color: var(--ink-3); }
.foot-links { color: var(--ink-2); display: grid; gap: 4px; }
.foot-icp { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--rule); }

/* ── narrow screens ─────────────────────────────────────── */
@media (max-width: 900px) {
  .top-in { gap: 18px; }
  .nav { gap: 18px; }
  .hero-b { margin-left: 0; }
  .person { grid-template-columns: 1fr; row-gap: 40px; }
}

@media (max-width: 720px) {
  .top-in { flex-wrap: wrap; height: auto; gap: 0 14px; padding-top: 12px; }
  .nav { order: 3; width: 100%; margin: 6px calc(-1 * var(--gut)) 0; padding: 6px var(--gut) 10px; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-search { margin-left: auto; }
  .practice a { grid-template-columns: 36px minmax(0, 1fr); row-gap: 8px; }
  .pr-s { grid-column: 2; }
  .articles li { grid-template-columns: 1fr; row-gap: 2px; }
  .ar-m { white-space: normal; }
  .join-band { grid-template-columns: 1fr; row-gap: 20px; }
  .exams li, .points, .points-3 { grid-template-columns: 1fr; }
  .exams li { grid-template-columns: 36px minmax(0, 1fr); }
  .exams li > div { grid-column: 2; }
  .exams li { row-gap: 8px; }
  .contact-xl > div { grid-template-columns: 1fr; }
  .contact-xl dd { font-size: 28px; }
  .foot-in { grid-template-columns: 1fr; }
  .prose { font-size: 17px; line-height: 1.9; }
  .label::after { transform: translateY(-3px); }
}

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