/* ==========================================================================
   Ankaa Law P.C. — site styles
   Brand colors follow the firm's business card: charcoal, warm grey, orange.
   ========================================================================== */

:root {
  /* Brand */
  --charcoal: #2b2b2b;
  --charcoal-deep: #1f1f1f;
  --stone: #e4e1db;          /* business-card grey */
  --paper: #f5f3ef;          /* light section background */
  --white: #ffffff;
  --orange: #e0913f;         /* business-card accent */
  --orange-hover: #cc7d2c;
  --orange-text: #925219;    /* darker orange for text on light backgrounds (AA contrast) */

  /* Text */
  --ink: #232323;
  --ink-soft: #55524d;
  --line: #d9d5ce;
  --line-dark: rgba(255, 255, 255, .14);

  /* Type */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-logo: 'Montserrat', var(--font-sans);

  --max: 1200px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--orange); color: var(--charcoal); padding: 8px 16px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* Two-tone focus ring: visible on both light and dark backgrounds (WCAG 2.4.7, 1.4.11) */
:focus-visible { outline: 3px solid #1f1f1f; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--ink-soft); max-width: 660px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 15px/1.2 var(--font-sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--orange); color: var(--charcoal-deep); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange-text); font-weight: 600; font-size: 15px; text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--charcoal-deep); color: #cfcac2; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar-hours, .topbar-contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact { display: flex; gap: 28px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { color: var(--orange); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 32px; }

.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--charcoal); line-height: 1.1; }
.logo-name {
  position: relative; font: 700 26px/1 var(--font-logo); letter-spacing: -.01em; padding-left: 2px;
}
.logo-name::before {           /* the orange dot from the business card */
  content: ""; position: absolute; left: -6px; top: -5px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.logo-zh { font-size: 13px; letter-spacing: .32em; color: var(--ink-soft); margin-top: 6px; }
.logo-light { color: var(--white); }
.logo-light .logo-zh { color: #b9b4ab; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 30px; }
.site-nav ul a {
  position: relative; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--ink);
  padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .2s;
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 12px 20px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--charcoal); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { border-color: var(--orange); color: var(--orange-text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--charcoal); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(100deg, rgba(31, 31, 31, .97) 0%, rgba(31, 31, 31, .9) 45%, rgba(31, 31, 31, .7) 100%),
    var(--charcoal-deep) url(../img/hero-bg.jpg) center / cover no-repeat;
}
.hero::after {                 /* orange rule, echoing the card's stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--charcoal) 0 38%, var(--orange) 38% 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding-top: 110px; padding-bottom: 120px;
}
.hero .eyebrow { color: var(--orange); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.1; margin-bottom: 24px; }
.hero .lead { color: #d6d1c8; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-card {
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px);
  border: 1px solid var(--line-dark); border-top: 3px solid var(--orange);
  padding: 32px; border-radius: var(--radius);
}
.hero-card h2 { font-size: 22px; margin-bottom: 18px; }
.hero-card a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hero-phone { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.hero-mail { color: #d6d1c8; margin-bottom: 22px; }
.hero-card a:hover { color: var(--orange); }
.hero-card .icon { color: var(--orange); }
.hero-card ul { list-style: none; padding: 22px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 16px; }
.hero-card li { display: flex; gap: 12px; font-size: 15px; color: #d6d1c8; line-height: 1.5; }
.hero-card li strong { color: var(--white); font-weight: 600; }
.hero-card li .icon { margin-top: 3px; }

/* ---------- Highlights ---------- */
.highlights { background: var(--stone); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlights-grid > div { padding: 30px 28px; display: flex; flex-direction: column; gap: 4px; }
.highlights-grid > div + div { border-left: 1px solid #cbc6bd; }
.highlights strong { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.highlights span { color: var(--ink-soft); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-stone { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.section-head h2, .section-title { font-size: clamp(30px, 3.4vw, 42px); }
.section-title { margin-bottom: 36px; }

/* Practice cards */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practice-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); padding: 28px 26px; min-height: 132px;
  text-decoration: none; transition: background-color .2s;
}
.practice-card h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.practice-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.practice-card .card-link { margin-top: auto; }
a.practice-card { box-shadow: inset 0 3px 0 var(--orange); }
a.practice-card:hover { background: var(--paper); }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-text); font-size: 14px; font-weight: 600; }
.card-link .icon { transition: transform .2s; }
a:hover > .card-link .icon { transform: translateX(3px); }

/* Featured practice area: spans the full row */
.practice-card.is-featured { grid-column: 1 / -1; background: var(--charcoal); color: var(--white); padding: 36px 34px; }
.practice-card.is-featured h3 { font-family: var(--font-serif); font-size: 26px; }
.practice-card.is-featured p { color: #cfcac2; font-size: 16px; max-width: 760px; }
.practice-card.is-featured .card-link, .practice-card.is-featured h3 a:hover { color: var(--orange); }
a.practice-card.is-featured:hover { background: var(--charcoal-deep); }
.featured-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); background: var(--orange); padding: 3px 10px; }

/* Practice Areas page: each area lists its services */
.area-card { box-shadow: inset 0 3px 0 var(--orange); }
.area-card h2 a, .area-card .card-link { text-decoration: none; }
.area-card h2 a:hover { color: var(--orange-text); }
.sub-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: 15px; }
.sub-list li { position: relative; padding-left: 16px; }
.sub-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--orange); }
.sub-list a { text-decoration: none; }
.sub-list a:hover { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.is-featured .sub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; max-width: 760px; }
.is-featured .sub-list a:hover { color: var(--orange); }

/* Services within a practice area page */
.service-section { margin-top: 64px; }
.service-section h2 { font-size: 28px; margin-bottom: 24px; }
.service-grid { grid-template-columns: repeat(2, 1fr); }

/* Who we represent */
.represent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; align-items: start; }
.represent-intro { position: sticky; top: 130px; }
.represent-intro h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 20px; }
.represent-intro p:last-child { color: var(--ink-soft); }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font: 600 20px/1.3 var(--font-serif);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--orange-text); }
.accordion summary .icon { color: var(--orange-text); width: 22px; height: 22px; transition: transform .25s; }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: 0 4px 28px; }
.accordion-body h3 {
  font: 600 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-text); margin-bottom: 10px;
}
.accordion-body p { font-size: 16px; color: var(--ink-soft); }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--charcoal);
  padding: 28px; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.article-card:hover { border-top-color: var(--orange); box-shadow: var(--shadow); }
.article-card h3 { font-size: 22px; }
.article-card p { color: var(--ink-soft); font-size: 15.5px; }
.article-card .card-link { margin-top: auto; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.tag {
  background: var(--stone); color: var(--charcoal); padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tag-lang { background: var(--charcoal); color: var(--white); }
.notice { padding: 12px 16px; background: var(--paper); border-left: 3px solid var(--orange); font-size: 15px; color: var(--ink-soft); }
.notfound-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.empty-state { text-align: center; padding: 40px 0; }
.empty-state h2 { font-size: 30px; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); }
.empty-state a { color: var(--orange-text); }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--white); border-top: 6px solid var(--orange); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { color: #cfcac2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.cta-actions .icon { color: var(--orange); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 54px); margin-bottom: 18px; max-width: 900px; }
.page-hero .lead a { color: var(--orange-text); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--orange-text); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.sidebar { display: grid; gap: 24px; position: sticky; top: 120px; }
.sidebar-card { border: 1px solid var(--line); padding: 28px; background: var(--white); }
.sidebar-card h2 { font-size: 20px; margin-bottom: 14px; }
.sidebar-contact { background: var(--charcoal); color: var(--white); border: 0; border-top: 3px solid var(--orange); }
.sidebar-contact p { color: #cfcac2; font-size: 15px; margin-bottom: 20px; }
.sidebar-phone { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; text-decoration: none; font-weight: 600; }
.sidebar-phone .icon { color: var(--orange); }
.sidebar-phone:hover { color: var(--orange); }
.sidebar-list { list-style: none; padding: 0; font-size: 15px; }
.sidebar-list li { border-top: 1px solid var(--line); }
.sidebar-list a, .sidebar-list span { display: block; padding: 9px 0; }
.sidebar-list span { color: var(--ink-soft); }
.sidebar-list a { text-decoration: none; font-weight: 500; }
.sidebar-list a:hover, .sidebar-list a[aria-current="page"] { color: var(--orange-text); }
.sidebar-list a[aria-current="page"] { font-weight: 600; }
.sidebar-list a.is-open { font-weight: 600; }
.sidebar-sublist { list-style: none; padding: 0 0 8px 14px; border-left: 2px solid var(--orange); margin-bottom: 10px; font-size: 14px; }
.sidebar-sublist li { border: 0; }
.sidebar-sublist a { padding: 5px 0; }

/* Long-form text */
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose a { color: var(--orange-text); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .6em; }
.prose ul li::marker { color: var(--orange); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--orange); font-family: var(--font-serif); font-size: 21px; }
.prose img { margin: 1.6em 0; border-radius: var(--radius); }
.prose strong { color: var(--charcoal-deep); }
.article-byline { display: flex; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.article-disclaimer {
  margin-top: 2.4em !important; padding: 18px 22px; background: var(--paper);
  border-left: 3px solid var(--stone); font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
}
.prose .text-link { margin-top: 2em; }
.prose .text-link .icon { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { border: 1px solid var(--line); border-left: 3px solid var(--orange); padding: 22px 24px; }
.info-card h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.info-card h2 .icon { color: var(--orange-text); }
.info-card p { color: var(--ink-soft); }
.info-card a { color: var(--ink); text-decoration: none; }
.info-card a:hover { color: var(--orange-text); }
.info-note { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text) !important; margin-top: 6px; }

.contact-form { background: var(--paper); padding: 40px; border-top: 3px solid var(--charcoal); display: grid; gap: 20px; }
.contact-form h2 { font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #858078; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 16px var(--font-sans);
}
.field input:focus, .field textarea:focus { border-color: var(--charcoal); }
.field textarea { resize: vertical; }
.form-note { font-size: 13.5px; color: var(--ink-soft); }
.contact-form .btn { justify-self: start; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; font-weight: 600; color: #2e6b3a; }
.form-status.error { color: #a12d2d; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-deep); color: #cfcac2; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr; gap: 48px; padding-top: 72px; padding-bottom: 48px; }
.footer-tagline { margin: 18px 0 22px; max-width: 320px; }
.footer-heading { font: 600 13px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-links a, .footer-contact li { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-contact .icon { color: var(--orange); }
.footer-office { font-style: normal; line-height: 1.6; margin-bottom: 16px; }
.footer-office strong { color: var(--white); font-weight: 600; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 28px; padding-bottom: 36px; font-size: 13px; color: #97928a; display: grid; gap: 10px; }

/* Attorney profile */
.attorney-intro { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; }
.attorney-photo { margin: 0; border-bottom: 4px solid var(--orange); box-shadow: var(--shadow); background: var(--charcoal); }
.attorney-photo img { width: 100%; height: auto; aspect-ratio: 1079 / 1141; object-fit: cover; }
.attorney-heading h1 { font-size: clamp(36px, 4.4vw, 54px); }
.attorney-title { font-size: 18px; color: var(--ink-soft); margin-top: 6px; }
.award-pill {
  display: inline-flex; align-items: center; gap: 14px; margin: 24px 0 22px; padding: 12px 20px 12px 14px;
  background: var(--charcoal); color: var(--white); text-decoration: none; border-left: 4px solid var(--orange);
  transition: background-color .2s;
}
.award-pill:hover { background: var(--charcoal-deep); }
.award-star { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: var(--charcoal); font-size: 20px; }
.award-pill strong { display: block; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.award-pill small { display: block; font-size: 13px; color: #cfcac2; }
.attorney-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 26px; }
.attorney-actions .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.award-card { border-top: 3px solid var(--orange); }
.award-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.award-card .eyebrow { margin-bottom: 8px; }
.award-badge { display: flex; justify-content: center; margin-bottom: 16px; min-height: 150px; }
.award-card .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--orange-text); text-decoration: none; }
.highlights-grid a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.highlights-grid a:hover strong { color: var(--orange-text); }

/* Article author box and related links */
.prose .author-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; margin-top: 3em; padding: 28px; background: var(--paper); border-top: 3px solid var(--orange); font-size: 16px; line-height: 1.65; }
.author-box-firm { grid-template-columns: 1fr; }
.author-name span { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-left: 8px; }
.author-box img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 50%; margin: 0; }
.author-box p { margin: 0; }
.author-box p + p { margin-top: 6px; }
.author-name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.prose .author-name a { color: var(--ink); text-decoration: none; }
.author-award { font-size: 14px; font-weight: 600; color: var(--orange-text); }
.author-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 16px; }
.prose .author-actions .btn { color: var(--charcoal); text-decoration: none; }
.prose .author-actions .text-link { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; text-decoration: none; }
.prose .author-actions .text-link .icon { transform: none; }
.related-practices { margin-top: 2em; }
.prose .related-practices h2 { font-size: 20px; margin: 0 0 12px; }
.related-practices ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.prose .related-practices li { margin: 0; }
.related-practices a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); font-size: 15px; text-decoration: none; }
.related-practices a:hover { border-color: var(--orange); }
.article-byline a { color: inherit; }

/* Article firm line and series navigation */
.article-firm { margin-top: 10px; font-size: 13px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.article-firm a { color: inherit; }
.series-tag { font-size: 14px; font-weight: 600; color: var(--orange-text); margin-bottom: 10px; }
.series-tag a { color: inherit; text-decoration: none; }
.series-tag a:hover { text-decoration: underline; }
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3em; }
.prose .series-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.45; font-weight: 600; }
.prose .series-nav a:hover { border-color: var(--orange); }
.series-nav small { display: block; font-size: 13px; font-weight: 600; color: var(--orange-text); margin-bottom: 4px; }
.series-next { text-align: right; grid-column: 2; }
.prose .series-all { margin-top: 14px; }
.prose .series-all .text-link { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.prose .series-all .text-link .icon { transform: none; }
.series-block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; padding: 40px; margin-bottom: 56px; background: var(--paper); border-top: 3px solid var(--orange); }
.series-intro h2 { font-size: 28px; margin: 8px 0 14px; }
.series-intro h2 a { text-decoration: none; }
.series-intro p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.series-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.series-list li { break-inside: avoid; border-top: 1px solid var(--line); }
.series-list a { display: block; padding: 9px 0; text-decoration: none; font-size: 15px; line-height: 1.45; }
.series-list a:hover { color: var(--orange-text); }
.series-list span { display: block; font-size: 12px; font-weight: 600; color: var(--orange-text); letter-spacing: .03em; }

/* Footer bottom row: copyright, accessibility statement, language */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-meta { display: flex; gap: 10px; }
.footer-meta a { color: #cfcac2; }
.footer-meta a:hover { color: var(--white); }

/* FAQ on practice pages */
.faq { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 20px; }

/* Accessibility helpers */
.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; }
.practice-card h2 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.practice-card.is-featured h2 { font-family: var(--font-serif); font-size: 26px; }
.form-required { font-size: 14px; color: var(--ink-soft); }

/* Tables in articles: readable, and scroll inside their box on small screens */
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 24px; }
  .site-nav ul { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .topbar-hours { display: none; }
  .topbar-inner { justify-content: center; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 24px 24px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--orange-text); }
  .nav-cta { margin-top: 18px; }
  .site-nav .lang-switch { align-self: flex-start; margin-top: 18px; }

  .hero-inner, .represent, .with-sidebar, .contact-grid, .attorney-intro { grid-template-columns: 1fr; }
  .attorney-intro { gap: 36px; }
  .attorney-photo { max-width: 340px; }
  .hero-inner { padding-top: 72px; padding-bottom: 80px; gap: 44px; }
  .represent { gap: 36px; }
  .represent-intro, .sidebar { position: static; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlights-grid > div + div { border-left: 0; border-top: 1px solid #cbc6bd; }
  .article-grid, .practice-grid { grid-template-columns: 1fr 1fr; }
  .series-block { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .practice-grid > .is-featured ~ :last-child:nth-child(even) { grid-column: 1 / -1; } /* no empty cell after an odd card */
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .topbar-contact { gap: 18px; font-size: 13px; }
  .header-inner { min-height: 72px; }
  .logo-name { font-size: 22px; }
  .logo-zh { font-size: 11.5px; }
  .practice-grid, .article-grid, .form-row, .accordion-body, .is-featured .sub-list { grid-template-columns: 1fr; }
  .practice-card.is-featured { padding: 28px 24px; }
  .accordion-body { gap: 18px; }
  .accordion summary { font-size: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-actions, .cta-actions .btn { width: 100%; }
  .page-hero { padding: 52px 0 44px; }
  .contact-form { padding: 28px 22px; }
  .prose { font-size: 17px; }
  .prose .author-box { grid-template-columns: 1fr; }
  .series-list { columns: 1; }
  .series-nav { grid-template-columns: 1fr; }
  .series-next { grid-column: auto; text-align: left; }
  .prose h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Chinese typography ---------- */
/* Latin serif fonts have no Chinese glyphs, so Chinese pages use a CJK sans stack. */
:lang(zh) {
  --font-serif: 'Source Serif 4', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .02em; line-height: 1.35; }
:lang(zh) .prose, :lang(zh) .lead { line-height: 1.9; }
:lang(zh) .eyebrow, :lang(zh) .footer-heading, :lang(zh) .accordion-body h3 { letter-spacing: .12em; }
.lang-switch:lang(zh) { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }

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