/* =========================================================
   法力无边法律知识库 · Design System
   宣纸白 / 墨色 / 朱砂红。克制、清晰、可核对。
   ========================================================= */

:root {
  --ink: #1c1214;
  --ink-soft: #3a2b2e;
  --ink-mute: #6e5c60;
  --muted: #8d7b7f;
  --line: #e9dfdc;
  --line-strong: #d8c9c5;
  --paper: #ffffff;
  --wash: #f8f3ef;
  --ice: #f7e9e5;
  --ice-deep: #efd9d2;
  --blue: #a61b29;
  --blue-deep: #7a1220;
  --blue-bright: #c53030;
  --near-black: #17090c;
  --footer: #120608;
  --white-06: rgba(255, 255, 255, 0.06);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-64: rgba(255, 255, 255, 0.64);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  --gold: #b98a2f;
  --shadow-sm: 0 2px 8px rgba(28, 10, 12, 0.04);
  --shadow-md: 0 18px 50px rgba(28, 10, 12, 0.09);
  --shadow-lg: 0 32px 80px rgba(23, 6, 8, 0.14);
  --radius: 3px;
  --header-h: 76px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--paper);
  background: var(--blue);
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--blue);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 4px;
  height: 14px;
  background: currentColor;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--light {
  color: #f0b9b3;
}

.eyebrow--light::before {
  background: currentColor;
}

.lede {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--blue {
  background: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}

.btn--blue:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--light:hover {
  background: var(--ice);
  border-color: var(--ice);
}

.btn--ghost-light {
  border-color: var(--white-20);
  color: var(--paper);
}

.btn--ghost-light:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s ease;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--blue-deep);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Top notice + header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 33px;
  gap: 20px;
}

.topbar p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar p::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d95f52;
}

.topbar a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(23, 9, 12, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}

.site-header.is-scrolled .header-inner {
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--paper);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.brand:hover .brand-mark {
  background: var(--blue-deep);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-text small {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-item {
  align-self: stretch;
  display: flex;
  align-items: center;
  position: static;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 20px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.mega-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 34px;
  margin-left: -8px;
  color: var(--ink-mute);
  transition: color 0.2s ease;
}

.mega-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.nav-item:hover .mega-toggle svg,
.nav-item:focus-within .mega-toggle svg,
.nav-item.is-open .mega-toggle svg {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: min(1160px, calc(100vw - 48px));
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top-color: var(--paper);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 20;
}

.mega-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0 18%, transparent 18% 100%);
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel,
.nav-item.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.06fr 1.28fr 0.9fr;
  gap: 36px;
}

.mega-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-hot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.mega-hot a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.mega-hot span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 3px;
}

.mega-hot strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.mega-hot small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.mega-hot a:hover strong {
  color: var(--blue);
}

.mega-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--blue);
  white-space: nowrap;
}

.mega-all svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.mega-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.mega-cats a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.mega-cats em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--blue);
}

.mega-cats small {
  margin-left: auto;
  font-size: 13px;
  color: var(--line-strong);
}

.mega-cats a:hover {
  color: var(--blue);
}

.mega-latest {
  padding: 22px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.mega-latest-list li + li {
  border-top: 1px solid var(--line);
}

.mega-latest-list a {
  display: block;
  padding: 11px 0;
}

.mega-latest-list span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.mega-latest-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.mega-latest-list a:hover strong {
  color: var(--blue);
}

.mega-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--blue);
}

.mega-tool-link svg {
  width: 15px;
  height: 15px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--wash);
}

.search-trigger svg {
  width: 15px;
  height: 15px;
}

.search-trigger kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 0;
  background:
    radial-gradient(ellipse at 78% 30%, rgba(247, 233, 229, 0.7), transparent 55%),
    var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(166, 27, 41, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(166, 27, 41, 0.035) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(36px, 4vw, 64px);
  padding-bottom: clamp(56px, 7vw, 84px);
}

.hero-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 660px;
}

.hero h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.hero-line {
  display: block;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--blue);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 0.22em;
  background: var(--ice);
  z-index: -1;
}

.hero .lede {
  max-width: 540px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.95;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  max-width: 532px;
  height: 58px;
  margin-top: 34px;
  padding: 0 16px 0 20px;
  border: 1px solid var(--ink);
  background: var(--paper);
  text-align: left;
  color: var(--ink-mute);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.hero-search:hover {
  background: var(--wash);
  box-shadow: 4px 4px 0 var(--ice);
}

.hero-search svg {
  width: 19px;
  height: 19px;
  color: var(--blue);
  flex-shrink: 0;
}

.hero-search span {
  flex: 1;
  font-size: 14px;
}

.hero-search kbd {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: var(--wash);
}

.scenario-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.scenario-row > span {
  margin-right: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.scenario-row a {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.scenario-row a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--ice);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding-right: 16px;
}

.hero-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.hero-stats dt small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
}

.hero-stats dd {
  margin-top: 7px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  align-self: center;
  padding-left: 24px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 26px;
  right: -20px;
  width: 72%;
  height: 78%;
  border: 1px solid var(--blue);
  opacity: 0.28;
  z-index: 0;
}

.dossier {
  position: relative;
  z-index: 1;
  height: clamp(380px, 36vw, 470px);
  overflow: hidden;
  background: var(--near-black);
  box-shadow: var(--shadow-lg);
}

.dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 58%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.dossier:hover::before {
  transform: scale(1.06);
}

.dossier::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 9, 12, 0.08) 10%, rgba(23, 9, 12, 0.5) 58%, rgba(18, 6, 8, 0.9) 100%);
}

.dossier-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 28px 30px;
  color: var(--paper);
}

.dossier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dossier-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

.dossier-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #d95f52;
}

.dossier-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.dossier-body {
  max-width: 400px;
}

.dossier-cat {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.dossier-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.dossier-title:hover {
  color: #f6dcd6;
}

.dossier-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.dossier-meta svg {
  width: 14px;
  height: 14px;
}

.dossier-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.dossier-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.dossier-cta:hover svg {
  transform: translateX(4px);
}

.hero-index {
  position: relative;
  z-index: 2;
  width: calc(100% - 44px);
  margin: -46px 0 0 24px;
  padding: 18px 22px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-head span {
  color: var(--blue);
}

.index-list li + li {
  border-top: 1px solid var(--line);
}

.index-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
}

.index-list time {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.index-list strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.index-list a:hover strong {
  color: var(--blue);
}

.index-list svg {
  width: 12px;
  height: 12px;
  color: var(--line-strong);
}

/* ---------- Category strip ---------- */
.category-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.category-strip a {
  position: relative;
  padding: 20px 16px 21px;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.category-strip a:first-child {
  border-left: 1px solid var(--line);
}

.category-strip a:hover {
  background: var(--wash);
}

.category-strip .cat-no {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.category-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.category-strip small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

.category-strip a::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}

.category-strip a:hover::after {
  width: calc(100% - 32px);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(48px, 6vw, 78px) 0;
}

.section--compact {
  padding: clamp(36px, 4.5vw, 56px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.section-head-copy {
  max-width: 720px;
}

.section-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.section-head p {
  max-width: 620px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.section-head .text-link {
  flex-shrink: 0;
  padding-bottom: 2px;
}

.section-head--light h2 {
  color: var(--paper);
}

.section-head--light p {
  color: var(--white-64);
}

.section-head--light .text-link {
  color: #eebcb4;
  border-color: var(--white-20);
}

/* ---------- Latest / sidebar layout ---------- */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(40px, 5vw, 68px);
  align-items: start;
}

.sidebar.is-sticky {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.widget + .widget {
  margin-top: 38px;
}

.widget {
  padding-top: 14px;
  border-top: 2px solid var(--blue);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.widget-head h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.widget-head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.rank-list li + li {
  border-top: 1px dashed var(--line-strong);
}

.rank-list a {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}

.rank-list .rank {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
}

.rank-list li:nth-child(-n+3) .rank {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

.rank-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.rank-list small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.rank-list a:hover strong {
  color: var(--blue);
}

.widget--tools {
  padding: 20px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.widget--tools .widget-head {
  margin-bottom: 10px;
}

.mini-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.mini-tool-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--blue);
}

.mini-tool-icon svg {
  width: 16px;
  height: 16px;
}

.mini-tool strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.mini-tool small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.mini-tool svg.arrow {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.mini-tool:hover svg.arrow {
  transform: translateX(3px);
  color: var(--blue);
}

.widget--note {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  background: var(--paper);
}

.widget--note p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.widget--note .text-link {
  margin-top: 12px;
  font-size: 13px;
}

/* ---------- Featured + article rows ---------- */
.featured-article {
  position: relative;
  padding: 26px 28px 28px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
  background: var(--ice);
  box-shadow: var(--shadow-sm);
}

.article-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--ice);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cat-tag--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
}

.article-topline time,
.article-topline span.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.featured-article h3 {
  max-width: 640px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

.featured-article h3 a {
  transition: color 0.2s ease;
}

.featured-article h3 a:hover {
  color: var(--blue);
}

.featured-article .dek {
  max-width: 620px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.featured-article .article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.article-list {
  margin-top: 8px;
}

.article-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.article-row:first-child {
  border-top: 1px dashed var(--line-strong);
}

.article-date {
  flex-shrink: 0;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.article-row-main {
  flex: 1;
  min-width: 0;
}

.article-row .row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-row h3 {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.article-row h3 a {
  transition: color 0.2s ease;
}

.article-row h3 a:hover {
  color: var(--blue);
}

.article-row p {
  margin-top: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Dark tools ---------- */
.tools-dark {
  position: relative;
  overflow: hidden;
  background: var(--near-black);
  color: var(--paper);
}

.tools-dark::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(197, 48, 48, 0.28), transparent 66%);
  pointer-events: none;
}

.tools-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 95, 82, 0.5), transparent);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-12);
  border: 1px solid var(--white-12);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 24px 24px 22px;
  background: var(--near-black);
  transition: background 0.3s ease;
}

.tool-card:hover {
  background: #200d11;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.tool-card .tool-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #d95f52;
}

.tool-card .tool-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--white-12);
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.tool-card .tool-ico svg {
  width: 16px;
  height: 16px;
}

.tool-card:hover .tool-ico {
  border-color: rgba(217, 95, 82, 0.6);
  color: #f3c9c2;
}

.tool-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.tool-card h3 a {
  transition: color 0.2s ease;
}

.tool-card h3 a:hover {
  color: #f3c9c2;
}

.tool-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--white-64);
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

.tool-card-foot svg {
  width: 14px;
  height: 14px;
  color: #d95f52;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-foot svg {
  transform: translateX(3px);
}

.tool-card--cta {
  background: var(--blue);
  justify-content: space-between;
}

.tool-card--cta:hover {
  background: #8c1622;
}

.tool-card--cta h3 {
  font-size: 25px;
  line-height: 1.35;
}

.tool-card--cta p {
  color: rgba(255, 255, 255, 0.72);
}

.tool-card--cta .tool-card-foot {
  color: rgba(255, 255, 255, 0.7);
}

.tool-card--guide {
  background: #200d11;
}

.guide-lines {
  margin-top: 16px;
}

.guide-lines li {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--white-12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.guide-lines span {
  font-family: var(--mono);
  font-size: 12px;
  color: #d95f52;
  padding-top: 3px;
}

/* ---------- Standards / values ---------- */
.standards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.standard {
  padding: 34px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standard .std-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.standard h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
}

.standard p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.standard .std-meta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- How to use ---------- */
.howto {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.howto-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.howto-intro h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.howto-intro p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.howto-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.howto-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.howto-step span {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--blue);
  line-height: 1.1;
}

.howto-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.howto-step p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.faq-intro h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.faq-intro p {
  margin-top: 16px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.faq-intro .text-link {
  margin-top: 22px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 52px 20px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 11px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1px 11px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-answer {
  padding: 0 44px 22px 0;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-mute);
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue-deep);
  color: var(--paper);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(217, 95, 82, 0.22), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255, 255, 255, 0.04) 119px 120px);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(56px, 7vw, 88px) 0;
}

.cta-copy {
  max-width: 680px;
}

.cta-copy h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.cta-copy p {
  max-width: 560px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-width: 200px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(217, 95, 82, 0.24);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 64px;
  padding: clamp(52px, 6vw, 76px) 0 48px;
}

.footer-brand .brand-text strong {
  color: var(--paper);
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand .brand-mark {
  background: var(--blue);
}

.footer-brand p {
  max-width: 360px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.46);
}

.footer-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-stamp::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d95f52;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #f3c9c2;
}

.footer-col .footer-all {
  margin-top: 8px;
  color: #f3c9c2;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links-label {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer-links-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #f3c9c2;
}

.footer-disclaimer {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclaimer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-disclaimer p {
  max-width: 980px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.36);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 26px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 6, 8, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open .menu-backdrop {
  opacity: 1;
}

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 390px);
  background: var(--paper);
  transform: translateX(102%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open .menu-panel {
  transform: translateX(0);
}

.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.menu-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.menu-close svg {
  width: 18px;
  height: 18px;
}

.menu-panel-body {
  padding: 8px 24px 24px;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.menu-link span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.menu-group {
  padding: 18px 0 8px;
  border-bottom: 1px solid var(--line);
}

.menu-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.menu-group-title span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.menu-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 12px;
}

.menu-cats a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.menu-cats em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--blue);
}

.menu-panel-foot {
  margin-top: auto;
  padding: 24px;
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.menu-panel-foot .btn {
  width: 100%;
}

.menu-panel-foot p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Search modal ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

.search-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 6, 8, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.search-modal.is-open .search-backdrop {
  opacity: 1;
}

.search-dialog {
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 10vh auto 0;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s ease;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
}

.search-modal.is-open .search-dialog {
  transform: translateY(0);
  opacity: 1;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.search-bar > svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
}

.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-bar input::placeholder {
  color: #9a8a8e;
}

.search-bar kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.search-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--ink-mute);
}

.search-close svg {
  width: 16px;
  height: 16px;
}

.search-body {
  padding: 18px 22px 24px;
  overflow-y: auto;
}

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

.search-group + .search-group {
  margin-top: 18px;
}

.search-group-title {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 10px;
  margin-inline: -10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.search-result:hover,
.search-result.is-active {
  background: var(--wash);
}

.search-result-type {
  flex-shrink: 0;
  width: 38px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.search-result strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.search-result small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.search-result svg {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--line-strong);
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--wash);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 5vw, 66px) 0 clamp(44px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 88% 10%, rgba(247, 233, 229, 0.9), transparent 48%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(166, 27, 41, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb svg {
  width: 10px;
  height: 10px;
  color: var(--line-strong);
}

.page-hero h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.page-hero .lede {
  max-width: 720px;
  margin-top: 18px;
}

.page-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

/* ---------- Knowledge hub ---------- */
.hub-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: clamp(50px, 6vw, 74px);
  background: var(--line);
  border: 1px solid var(--line);
}

.hub-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 158px;
  padding: 24px 22px;
  background: var(--paper);
  transition: background 0.3s ease;
}

.hub-cat:hover {
  background: var(--wash);
}

.hub-cat .hub-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.hub-cat h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.hub-cat p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.hub-cat .hub-count {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-cat .hub-count svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.hub-cat:hover .hub-count svg {
  transform: translateX(3px);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--blue);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--paper);
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search svg {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

.filter-search input {
  width: 210px;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.2s ease;
}

.filter-search input:focus {
  border-color: var(--blue);
}

.filter-count {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.empty-state strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.empty-state p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

/* ---------- Category page ---------- */
.category-hero {
  position: relative;
  overflow: hidden;
}

.category-hero .cat-watermark {
  position: absolute;
  right: 2vw;
  bottom: -24px;
  font-family: var(--serif);
  font-size: clamp(160px, 24vw, 320px);
  line-height: 0.8;
  color: rgba(166, 27, 41, 0.055);
  pointer-events: none;
  user-select: none;
}

.category-hero .container {
  position: relative;
  z-index: 1;
}

.category-intro {
  max-width: 860px;
}

.category-intro p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
}

.category-intro p + p {
  margin-top: 16px;
}

.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
}

.block-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.block-head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.category-block {
  margin-top: clamp(46px, 6vw, 70px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.category-block:first-child {
  margin-top: 0;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.scope-item {
  min-height: 132px;
  padding: 22px;
  background: var(--paper);
  transition: background 0.25s ease;
}

.scope-item:hover {
  background: var(--wash);
}

.scope-item span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.scope-item h3 {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.scope-item p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.law-list {
  border-top: 1px solid var(--line);
}

.law-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.law-item span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 4px;
}

.law-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.law-item p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.process-list {
  position: relative;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-strong);
  margin-left: 8px;
}

.process-step {
  position: relative;
  padding: 0 0 28px 30px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1.5px solid var(--blue);
  border-radius: 50%;
}

.process-step span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.process-step h3 {
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.process-step p {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.pitfall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pitfall {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  background: var(--wash);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.pitfall::before {
  content: "×";
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--blue);
  line-height: 1.4;
}

.tool-recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-rec {
  display: flex;
  flex-direction: column;
  min-height: 146px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tool-rec:hover {
  border-color: var(--blue);
  background: var(--wash);
}

.tool-rec .tool-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.tool-rec .tool-rec-top svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.tool-rec .tool-rec-top span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tool-rec h3 {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tool-rec p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.tool-rec .tool-rec-arrow {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-rec .tool-rec-arrow svg {
  width: 12px;
  height: 12px;
}

.side-nav {
  border-top: 1px solid var(--ink);
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-mute);
  transition: color 0.2s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--blue);
}

.side-nav span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--line-strong);
}

.cat-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.cat-switch a {
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 7px;
}

.cat-switch em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--blue);
}

.cat-switch a:hover {
  color: var(--blue);
}

/* ---------- Article ---------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.08s linear;
}

.article-hero {
  padding-bottom: clamp(42px, 5vw, 58px);
}

.article-head {
  max-width: 900px;
}

.article-head h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article-head .dek {
  max-width: 780px;
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-mute);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.share-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.share-btn svg {
  width: 13px;
  height: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
}

.article-main {
  min-width: 0;
  max-width: 820px;
}

.answer-box {
  padding: 27px 30px 26px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.answer-box .answer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.answer-box .answer-label span {
  color: var(--muted);
}

.answer-box ul {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.answer-box li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.answer-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  background: var(--ice);
}

.prose {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.prose section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2 {
  position: relative;
  margin: 44px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.prose h2::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -22px;
  width: 8px;
  height: 8px;
  background: var(--blue);
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  margin: 16px 0;
  line-height: 1.9;
  text-align: justify;
}

.prose p + p {
  margin-top: 14px;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose a {
  color: var(--blue);
  border-bottom: 1px solid rgba(166, 27, 41, 0.28);
}

.prose ul,
.prose ol {
  margin: 16px 0;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  margin: 9px 0;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.76em;
  width: 9px;
  height: 1px;
  background: var(--blue);
}

.prose ol.step-list {
  counter-reset: step;
  margin: 20px 0;
  border-top: 1px solid var(--line);
}

.prose ol.step-list li {
  counter-increment: step;
  position: relative;
  padding: 13px 0 13px 42px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.prose ol.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.prose .callout {
  position: relative;
  margin: 24px 0;
  padding: 20px 24px 20px 26px;
  background: var(--ice);
  border-left: 2px solid var(--blue);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.prose .callout strong {
  color: var(--blue-deep);
}

.prose .table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.prose th {
  padding: 12px 16px;
  background: var(--wash);
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-mute);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:hover td {
  background: #fdfaf8;
}

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

.mobile-toc {
  display: none;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.mobile-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-toc summary::-webkit-details-marker {
  display: none;
}

.mobile-toc summary span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.mobile-toc ol {
  padding: 0 18px 14px;
  counter-reset: toc;
}

.mobile-toc li {
  counter-increment: toc;
  border-top: 1px solid var(--line);
}

.mobile-toc a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.mobile-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 3px;
}

.toc-widget {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.toc-list {
  margin-top: 14px;
  border-left: 1px solid var(--line);
}

.toc-list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-list a > span {
  margin-right: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--blue);
  border-left-color: var(--blue);
}

.article-aside {
  position: static;
}

.article-aside .widget + .widget {
  margin-top: 30px;
}

.article-aside .widget {
  padding-top: 16px;
}

.checklist-box {
  margin: 46px 0 0;
  padding: 28px 30px;
  background: var(--near-black);
  color: var(--paper);
}

.checklist-box .checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--white-12);
}

.checklist-box h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
}

.checklist-box .checklist-head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #d95f52;
}

.checklist-box ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-top: 8px;
}

.checklist-box li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--white-12);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.checklist-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(217, 95, 82, 0.7);
}

.checklist-box li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 19px;
  width: 4px;
  height: 2px;
  background: #d95f52;
}

.article-section {
  margin-top: 52px;
}

.article-section > h2 {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
}

.laws-box {
  margin-top: 52px;
  padding: 26px 30px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.laws-box > h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.laws-box .laws-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.laws-list {
  margin-top: 16px;
}

.laws-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.laws-list strong {
  color: var(--ink);
  font-weight: 600;
}

.laws-list span {
  color: var(--ink-mute);
}

.article-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.article-tool {
  display: flex;
  flex-direction: column;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.article-tool:hover {
  border-color: var(--blue);
  background: var(--wash);
}

.article-tool span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.article-tool h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.article-tool p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.article-tool .at-arrow {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--blue);
}

.article-tool svg {
  width: 11px;
  height: 11px;
}

.related-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.related-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.related-list .rel-cat {
  flex-shrink: 0;
  width: 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.related-list strong {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.related-list time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.related-list a:hover strong {
  color: var(--blue);
}

.article-disclaimer {
  margin-top: 46px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.article-disclaimer strong {
  color: var(--ink-mute);
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
}

.page-nav-link {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-nav-link:hover {
  border-color: var(--blue);
  background: var(--wash);
}

.page-nav-link span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.page-nav-link strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.page-nav-link--next {
  text-align: right;
  align-items: flex-end;
}

/* ---------- Tools hub ---------- */
.tool-group {
  margin-top: clamp(46px, 6vw, 70px);
}

.tool-group:first-of-type {
  margin-top: 0;
}

.tool-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
}

.tool-group-head h2 {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 600;
  color: var(--ink);
}

.tool-group-head p {
  font-size: 13px;
  color: var(--muted);
}

.tool-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-list-card {
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease);
}

.tool-list-card:hover {
  border-color: var(--blue);
  background: var(--wash);
  transform: translateY(-2px);
}

.tool-list-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--ice);
  color: var(--blue);
}

.tool-list-icon svg {
  width: 23px;
  height: 23px;
}

.tool-list-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.tool-list-card p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.tool-list-card .tlc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tool-list-card .tlc-meta span:first-child {
  color: var(--blue);
}

.tool-list-card > svg {
  width: 16px;
  height: 16px;
  margin-top: 18px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.tool-list-card:hover > svg {
  transform: translateX(3px);
  color: var(--blue);
}

/* ---------- Tool detail ---------- */
.tool-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--paper);
}

.tool-badge svg {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.tool-workspace {
  padding: clamp(38px, 5vw, 58px) 0 clamp(50px, 6vw, 72px);
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.calc-card {
  padding: clamp(24px, 3.4vw, 40px);
}

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.calc-head h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
}

.calc-head p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.calc-head .calc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--ice);
  color: var(--blue);
}

.calc-head .calc-icon svg {
  width: 22px;
  height: 22px;
}

.calc-form {
  margin-top: 22px;
}

.field-group + .field-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.field-group-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field > label small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-shell input,
.input-shell select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.input-shell select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737f78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.input-shell input:focus,
.input-shell select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(166, 27, 41, 0.08);
}

.input-shell input:disabled,
.input-shell select:disabled {
  background: var(--wash);
  color: var(--muted);
}

.input-unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.field-help {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  cursor: pointer;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.check-field span {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.check-field small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.calc-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calc-actions .btn {
  min-height: 46px;
}

.calc-reset {
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.calc-reset:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.calc-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.calc-privacy svg {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.result-panel {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--blue-deep);
  color: var(--paper);
}

.result-panel::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.result-panel::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -50px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.result-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-12);
}

.result-head span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.result-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d95f52;
}

.result-placeholder {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 50px 0;
  min-height: 320px;
}

.result-placeholder svg {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.result-placeholder strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.result-placeholder p {
  margin-top: 8px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
}

.result-primary {
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--white-12);
}

.result-primary .result-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.result-primary .result-value {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  word-break: break-all;
}

.result-primary .result-value small {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 5px;
}

.result-primary .result-sub {
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.46);
}

.result-table {
  margin-top: 10px;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--white-12);
  font-size: 14px;
}

.result-row span {
  color: rgba(255, 255, 255, 0.58);
}

.result-row strong {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.result-row--accent strong {
  color: #f3c9c2;
}

.result-notes {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
}

.result-notes li {
  position: relative;
  padding-left: 13px;
  margin-top: 5px;
}

.result-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 1px;
  background: rgba(217, 95, 82, 0.7);
}

.result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.copy-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.copy-result:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.copy-result svg {
  width: 13px;
  height: 13px;
}

.result-foot .result-date {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.tool-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(40px, 5vw, 68px);
  align-items: start;
}

.tool-section {
  margin-top: clamp(44px, 5vw, 62px);
}

.tool-section:first-child {
  margin-top: 0;
}

.tool-section > h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 30px);
  font-weight: 600;
  color: var(--ink);
}

.tool-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
}

.tool-steps {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.tool-step span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 4px;
}

.tool-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.rule-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rule-item {
  padding: 20px 22px;
  background: var(--wash);
  border: 1px solid var(--line);
}

.rule-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.rule-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.assumption-list {
  margin-top: 14px;
}

.assumption-list li {
  position: relative;
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-mute);
}

.assumption-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 1px;
  background: var(--blue);
}

/* ---------- Sitemap ---------- */
.map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
}

.map-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.map-head span {
  font-size: 13px;
  color: var(--ink-mute);
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.map-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.map-grid strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.map-grid small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

.map-grid a:hover strong {
  color: var(--blue);
}

.map-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 48px;
  padding-top: 10px;
}

.map-cat h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.map-cat h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.map-cat h3 a:hover {
  color: var(--blue);
}

.map-cat h3 span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
}

.map-list time {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.map-list strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.map-list a:hover strong {
  color: var(--blue);
}

@media (max-width: 980px) {
  .map-cats {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  .map-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-visual figcaption {
  position: absolute;
  left: -20px;
  bottom: -20px;
  max-width: 300px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

.about-copy h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.about-copy p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-mute);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-value {
  padding: 24px;
  background: var(--paper);
}

.about-value span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.about-value h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.about-value p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  padding-top: 3px;
}

.timeline-item p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.timeline-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.about-contact {
  margin-top: 22px;
  padding: 24px;
  background: var(--ice);
  border-left: 2px solid var(--blue);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.about-contact strong {
  color: var(--blue-deep);
}

.about-contact a {
  color: var(--blue);
  border-bottom: 1px solid rgba(166, 27, 41, 0.3);
}

.disclaimer-panel {
  padding: clamp(28px, 4vw, 44px);
  background: var(--wash);
  border: 1px solid var(--line);
}

.disclaimer-panel h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

.disclaimer-panel p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-mute);
}

/* ---------- 404 ---------- */
.error-page {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0;
  text-align: center;
}

.error-code {
  font-family: var(--serif);
  font-size: clamp(100px, 20vw, 220px);
  line-height: 0.8;
  color: var(--ice);
}

.error-page h1 {
  margin-top: -12px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--ink);
}

.error-page p {
  max-width: 460px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1300;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 981px) {
  .result-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .nav-link {
    padding: 0 11px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
  }

  .hero-stats div {
    padding-right: 10px;
  }

  .hero-stats div + div {
    padding-left: 12px;
  }

  .layout-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
  }

  .mega-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .mega-latest {
    display: none;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 40px;
  }

  .prose h2::before {
    left: -16px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
  }

  .primary-nav,
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .menu-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(28px, 5vw, 38px);
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
    padding-left: 18px;
    margin-inline: auto;
  }

  .dossier {
    height: 440px;
  }

  .category-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-strip a:nth-child(4) {
    border-right: 1px solid var(--line);
  }

  .category-strip a:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .category-strip a:nth-child(5) {
    border-left: 1px solid var(--line);
  }

  .layout-sidebar,
  .tool-content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .sidebar.is-sticky,
  .article-aside,
  .toc-widget {
    position: static;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 20px;
  }

  .widget + .widget {
    margin-top: 0;
  }

  .widget--note {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    display: none;
  }

  .article-main {
    max-width: none;
  }

  .mobile-toc {
    display: block;
  }

  .hub-categories {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tool-recs,
  .article-tools {
    grid-template-columns: 1fr 1fr;
  }

  .howto-grid,
  .faq-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: 2;
  }

  .about-visual img {
    height: 360px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .footer-brand p {
    max-width: 520px;
  }

  .mega-panel {
    display: none;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 420px;
  }

  .tool-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .topbar .container {
    justify-content: center;
    min-height: 30px;
  }

  .topbar p {
    font-size: 13px;
    text-align: center;
  }

  .topbar .container > div {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 12px;
  }

  .header-inner {
    gap: 12px;
  }

  .search-trigger,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.4;
  }

  .hero-line {
    white-space: normal;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero h1 em::after {
    bottom: 3px;
  }

  .hero .lede {
    font-size: 14.5px;
  }

  .hero-search {
    height: 52px;
    margin-top: 26px;
  }

  .hero-search kbd {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
    margin-top: 32px;
  }

  .hero-stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-stats div:nth-child(4) {
    padding-left: 12px;
    border-left: 1px solid var(--line);
  }

  .hero-stats dt {
    font-size: 26px;
  }

  .hero-visual {
    padding-left: 0;
  }

  .hero-visual::before {
    display: none;
  }

  .dossier {
    height: 400px;
  }

  .dossier-inner {
    padding: 22px 22px 26px;
  }

  .dossier-title {
    font-size: 24px;
  }

  .hero-index {
    width: calc(100% - 20px);
    margin-left: 10px;
    padding: 15px 18px 12px;
  }

  .category-strip a {
    padding: 16px 14px;
  }

  .category-strip strong {
    font-size: 16px;
  }

  .category-strip small {
    font-size: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  .featured-article {
    padding: 26px 22px;
  }

  .featured-article h3 {
    font-size: 24px;
  }

  .featured-article .article-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .article-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .article-row .row-arrow {
    display: none;
  }

  .article-date strong {
    font-size: 23px;
  }

  .article-row h3 {
    font-size: 17px;
  }

  .article-row p {
    -webkit-line-clamp: 2;
  }

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

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

  .tool-card {
    min-height: 160px;
  }

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

  .standard {
    padding: 26px 24px;
  }

  .faq-item summary {
    font-size: 15.5px;
  }

  .cta-copy h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-hero {
    padding: 34px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(24px, 6.4vw, 30px);
  }

  .breadcrumb {
    margin-bottom: 22px;
  }

  .hub-categories {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 44px;
  }

  .hub-cat {
    min-height: 142px;
    padding: 20px 18px;
  }

  .filter-bar {
    align-items: flex-start;
  }

  .filter-search,
  .filter-search input {
    width: 100%;
  }

  .scope-grid,
  .pitfall-grid {
    grid-template-columns: 1fr;
  }

  .tool-recs,
  .article-tools {
    grid-template-columns: 1fr;
  }

  .category-block {
    margin-top: 44px;
  }

  .article-head h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .article-head .dek {
    font-size: 14px;
  }

  .article-meta {
    gap: 10px 18px;
  }

  .share-btn {
    margin-left: 0;
  }

  .answer-box {
    padding: 22px 20px;
  }

  .answer-box li {
    font-size: 14px;
  }

  .prose {
    font-size: 15.5px;
    line-height: 1.95;
  }

  .prose h2 {
    font-size: 24px;
    margin-top: 44px;
  }

  .prose h2::before {
    display: none;
  }

  .checklist-box {
    padding: 22px 20px;
  }

  .checklist-box ul {
    grid-template-columns: 1fr;
  }

  .laws-box {
    padding: 22px 20px;
  }

  .laws-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .page-nav-link--next {
    text-align: left;
    align-items: flex-start;
  }

  .related-list .rel-cat {
    width: 38px;
  }

  .related-list time {
    display: none;
  }

  .tool-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tool-list-card {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .tool-list-icon {
    width: 44px;
    height: 44px;
  }

  .tool-list-card > svg {
    display: none;
  }

  .calc-card {
    padding: 22px 18px;
  }

  .result-panel {
    padding: 24px 20px;
    min-height: 380px;
  }

  .result-primary .result-value {
    font-size: 38px;
  }

  .article-tool {
    min-height: 118px;
  }

  .timeline-item {
    grid-template-columns: 84px 1fr;
    gap: 16px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-visual figcaption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 16px 18px;
    font-size: 16px;
  }

  .about-visual img {
    height: 300px;
  }

  .disclaimer-panel {
    padding: 24px 20px;
  }

  .search-dialog {
    margin-top: 6vh;
    max-height: 86vh;
  }

  .search-bar input {
    font-size: 18px;
  }

  .search-bar {
    padding: 15px 16px;
  }

  .search-body {
    padding: 14px 16px 18px;
  }

  .search-footer {
    padding: 10px 16px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .category-strip {
    grid-template-columns: 1fr 1fr;
  }

  .category-strip a:nth-child(odd) {
    border-left: 1px solid var(--line);
  }

  .category-strip a:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .category-strip a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hub-categories {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .menu-cats {
    grid-template-columns: 1fr;
  }

  .hero-stats dt {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .topbar,
  .article-aside,
  .reading-progress,
  .mobile-menu,
  .search-modal,
  .share-btn,
  .site-footer,
  .consult-band,
  .article-pagination {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .page-hero,
  .article-hero {
    background: #fff;
  }
}

/* ---------- Consult band ---------- */
.consult-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
  color: var(--paper);
  background:
    radial-gradient(880px 420px at 10% -12%, rgba(197, 48, 48, 0.38), transparent 62%),
    radial-gradient(720px 400px at 92% 112%, rgba(166, 27, 41, 0.55), transparent 66%),
    linear-gradient(158deg, #1d0a0e 0%, var(--blue-deep) 56%, #4a0d16 100%);
}

.consult-band::after {
  content: "办法";
  position: absolute;
  right: -30px;
  bottom: -70px;
  font-family: var(--serif);
  font-size: clamp(160px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.consult-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.consult-copy h2 {
  margin: 14px 0 14px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.consult-copy h2 em {
  font-style: normal;
  color: #f0b9b3;
}

.consult-copy > p {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--white-64);
}

.consult-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 30px;
}

.consult-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #f4d4cd;
}

.consult-points svg {
  width: 16px;
  height: 16px;
  color: #f0b9b3;
}

.consult-form {
  position: relative;
  padding: 34px 32px 26px;
  border-top: 3px solid var(--blue-bright);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink-soft);
  box-shadow: var(--shadow-lg);
}

.consult-field + .consult-field {
  margin-top: 18px;
}

.consult-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.consult-field input,
.consult-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--wash);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.consult-field textarea {
  min-height: 116px;
  resize: vertical;
}

.consult-field input:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.14);
}

.consult-field input.is-invalid,
.consult-field textarea.is-invalid {
  border-color: #c2410c;
  background: #fff7ed;
}

.consult-error {
  margin-top: 7px;
  font-size: 13px;
  color: #9a3412;
}

.consult-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
}

.consult-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.consult-privacy {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: var(--muted);
}

.consult-success {
  padding: 26px 6px 10px;
  text-align: center;
  outline: none;
}

.consult-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue);
}

.consult-success-mark svg {
  width: 26px;
  height: 26px;
}

.consult-success h3 {
  margin-bottom: 10px;
  font-size: 22px;
  color: var(--ink);
}

.consult-success p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.consult-again {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 2px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.consult-again svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.consult-again:hover svg {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .consult-band {
    padding: 72px 0;
  }

  .consult-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .consult-band {
    padding: 60px 0;
  }

  .consult-form {
    padding: 26px 20px 22px;
  }

  .consult-points {
    gap: 10px 18px;
  }
}

/* ---------- Lawyers ---------- */
.mono {
  font-family: var(--mono);
}

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

.lawyer-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lawyer-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.lawyer-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--blue-deep);
}

.lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s var(--ease);
}

.lawyer-card:hover .lawyer-photo img {
  transform: scale(1.03);
}

.lawyer-photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.lawyer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 26px;
}

.lawyer-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.lawyer-head h2 {
  font-size: 30px;
  color: var(--ink);
}

.lawyer-head span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lawyer-title {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.lawyer-quote {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.lawyer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lawyer-tags li {
  padding: 5px 12px;
  border-radius: 2px;
  background: var(--ice);
  color: var(--blue);
  font-size: 13px;
}

.lawyer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lawyer-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.lawyer-stats span {
  font-size: 13px;
  color: var(--muted);
}

.lawyer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.lawyer-card .lawyer-actions {
  margin-top: auto;
  padding-top: 24px;
}

.lawyer-service {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.lawyer-scope {
  margin-top: 40px;
}

.section--counsel {
  background:
    radial-gradient(880px 360px at 90% -8%, rgba(197, 48, 48, 0.09), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, var(--ice) 0%, var(--paper) 86%);
  border-block: 1px solid var(--line);
}

.counsel-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
}

.counsel-step {
  padding: 24px 26px 0;
  border-left: 1px solid var(--line-strong);
}

.counsel-step:first-child {
  border-left: 0;
  padding-left: 0;
}

.counsel-step span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.counsel-step h3 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.counsel-step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.counsel-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.lawyer-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.lawyer-hero-photo {
  position: relative;
  isolation: isolate;
  border-radius: 4px;
  background: var(--blue-deep);
  box-shadow: var(--shadow-md);
}

.lawyer-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(14px, 14px);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  pointer-events: none;
}

.lawyer-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
}

.lawyer-hero-copy h1 {
  margin-top: 14px;
}

.lawyer-hero-copy .lawyer-quote {
  max-width: 40ch;
  font-size: 19px;
}

.lawyer-hero-copy .page-hero-meta {
  margin-top: 22px;
}

.career-list {
  border-left: 2px solid var(--ice-deep);
  padding-left: 26px;
}

.career-item {
  position: relative;
  padding-bottom: 26px;
}

.career-item:last-child {
  padding-bottom: 0;
}

.career-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--blue);
}

.career-period {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.career-item h3 {
  margin-top: 6px;
  font-size: 18px;
  color: var(--ink);
}

.career-item p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.case-grid {
  display: grid;
  gap: 18px;
}

.case-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--wash);
}

.case-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--ice-deep);
  color: var(--blue-deep);
  font-size: 13px;
}

.case-card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.case-card > p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.case-outcome {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--blue);
}

.case-outcome svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.info-dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.info-dl div:last-child {
  border-bottom: 0;
}

.info-dl dt {
  font-size: 13px;
  color: var(--muted);
}

.info-dl dd {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.info-dl dd.mono {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.widget-note {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.widget-cta {
  width: 100%;
}

.lawyer-tools {
  margin-top: 26px;
}

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

  .lawyer-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lawyer-hero-photo {
    max-width: 420px;
  }

  .counsel-strip {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .counsel-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .lawyer-body {
    padding: 22px 20px 22px;
  }

  .lawyer-actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .lawyer-stats strong {
    font-size: 21px;
  }

  .counsel-strip {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .counsel-step {
    border-left: 0;
    padding: 0;
  }

  .counsel-step + .counsel-step {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

/* ---------- CN blog conventions ---------- */
form .btn {
  border-radius: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--wash);
  font-size: 13px;
  color: var(--ink-mute);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-cloud a:hover {
  border-color: var(--blue);
  background: var(--ice);
  color: var(--blue);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 14px;
  color: var(--ink-mute);
}

.article-tags a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

html {
  scrollbar-color: var(--line-strong) var(--wash);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--wash);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 2px solid var(--wash);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-bright);
}

.article-row .row-top .cat-tag {
  flex-shrink: 0;
}

.hero h1,
.section-head h2,
.page-hero h1,
.prose h2 {
  text-wrap: balance;
}

/* =========================================================
   Refinement layer · 朱砂红 / 宣纸白 / 宋体标题
   低圆角、细线分组、微立体按钮、克制阴影
   ========================================================= */

:root {
  --radius: 4px;
  --radius-btn: 3px;
  --radius-tag: 2px;
}

::selection {
  background: var(--ice-deep);
  color: var(--blue-deep);
}

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

time,
.hero-stats dt,
.lawyer-stats strong,
.article-date,
.result-value {
  font-variant-numeric: tabular-nums;
}

.serif {
  letter-spacing: 0.01em;
}

.hero h1,
.section-head h2,
.page-hero h1,
.article-head h1,
.consult-copy h2,
.lawyer-head h2,
.hero-feed-head h2 {
  letter-spacing: 0.015em;
}

/* ---------- Brand wordmark ---------- */
.brand-text {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.site-footer .brand-text strong {
  color: var(--paper);
}

.site-footer .brand-text small {
  border-color: var(--white-20);
  color: var(--white-64);
}

/* ---------- Nav: no underline ---------- */
.nav-link::after {
  display: none;
}

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

/* ---------- Buttons: subtle dimensionality ---------- */
.btn {
  border-radius: var(--radius-btn);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: linear-gradient(180deg, #342329 0%, var(--ink) 100%);
  border-color: #140b0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(23, 9, 12, 0.22), 0 6px 16px -8px rgba(23, 9, 12, 0.4);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #8c1622 0%, var(--blue-deep) 100%);
  border-color: #5f0e18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 4px rgba(23, 9, 12, 0.2), 0 10px 22px -10px rgba(122, 18, 32, 0.55);
}

.btn--blue {
  background: linear-gradient(180deg, #b82433 0%, #9a1826 100%);
  border-color: #8c1622;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(122, 18, 32, 0.3), 0 6px 16px -8px rgba(122, 18, 32, 0.5);
}

.btn--blue:hover {
  background: linear-gradient(180deg, #c22b3a 0%, #a61b29 100%);
  border-color: #8c1622;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 2px 4px rgba(122, 18, 32, 0.28), 0 10px 24px -10px rgba(122, 18, 32, 0.6);
}

.btn--outline {
  background: linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(28, 10, 12, 0.06);
}

.btn--outline:hover {
  background: var(--ice);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px -6px rgba(122, 18, 32, 0.3);
}

.btn--light {
  background: linear-gradient(180deg, #ffffff 0%, #f4e7e2 100%);
  border-color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px -8px rgba(0, 0, 0, 0.5);
}

.btn--light:hover {
  background: linear-gradient(180deg, #ffffff 0%, var(--ice) 100%);
  border-color: #ffffff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

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

.consult-band .btn:focus-visible,
.site-footer .btn:focus-visible {
  outline-color: #f0b9b3;
}

input,
textarea,
select {
  border-radius: var(--radius-btn);
}

/* ---------- Eyebrow / kickers ---------- */
.eyebrow {
  font-size: 15px;
  letter-spacing: 0.1em;
  gap: 10px;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
}

/* ---------- Hero ---------- */
.hero h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.32;
}

.hero h1 em::after {
  background: var(--ice-deep);
}

.hero-search {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}

.hero-search:hover {
  background: var(--paper);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(166, 27, 41, 0.08), var(--shadow-sm);
}

.hero-visual {
  padding-left: 0;
}

.hero-visual::before {
  display: none;
}

.hero-feed {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}

.hero-feed-head h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.hero-feed-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue);
}

.hero-feed-head a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.hero-feed-head a:hover svg {
  transform: translateX(3px);
}

.hero-feed-lead {
  padding: 20px 22px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--wash) 0%, var(--paper) 100%);
}

.hero-feed-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-feed-topline time {
  font-family: var(--mono);
  font-size: 12px;
}

.hero-feed-lead h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-feed-lead h3 a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.hero-feed-lead h3 a:hover {
  color: var(--blue);
}

.hero-feed-lead p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-feed-lead .text-link {
  margin-top: 12px;
  font-size: 13px;
}

.hero-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-feed-list li + li {
  border-top: 1px dashed var(--line);
}

.hero-feed-list a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  transition: background 0.2s ease;
}

.hero-feed-list a:hover {
  background: var(--wash);
}

.hero-feed-list time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.hero-feed-list strong {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.hero-feed-list a:hover strong {
  color: var(--blue);
}

.hero-feed-list svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-feed-list a:hover svg {
  opacity: 1;
}

.hero-feed-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: var(--wash);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 12px;
  color: var(--muted);
}

.hero-feed-foot svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ---------- Category strip with icons ---------- */
.category-strip .cat-ico {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  transition: color 0.25s ease;
}

.category-strip .cat-ico svg {
  width: 22px;
  height: 22px;
}

.category-strip a:hover .cat-ico {
  color: var(--blue-deep);
}

/* ---------- Chinese sub-labels ---------- */
.widget-head span,
.block-head span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.process-step span {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.timeline-item time {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.checklist-box .checklist-head span {
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: none;
}

.result-head > span:first-child {
  font-family: var(--sans);
  letter-spacing: 0.06em;
  text-transform: none;
}

/* ---------- Featured / rows / chips ---------- */
.featured-article {
  border-radius: var(--radius);
}

.filter-chip {
  border-radius: var(--radius-tag);
}

.filter-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.hub-cat .hub-no {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--blue);
}

/* ---------- Tools: light grid ---------- */
.section--tools {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.tools-grid-light {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  padding: 22px 20px 20px;
  background: var(--paper);
  transition: background 0.25s ease;
}

.tool-tile:hover {
  background: var(--ice);
}

.tool-tile-icon {
  color: var(--blue);
}

.tool-tile-icon svg {
  width: 26px;
  height: 26px;
}

.tool-tile-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tool-tile-copy small {
  display: -webkit-box;
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-tile-arrow {
  position: absolute;
  top: 24px;
  right: 16px;
  width: 15px;
  height: 15px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.tool-tile:hover .tool-tile-arrow {
  opacity: 1;
  transform: none;
}

.tools-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.tools-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--blue);
}

/* ---------- Lawyers: horizontal cards ---------- */
.lawyer-grid {
  gap: 28px;
}

.lawyer-card {
  flex-direction: row;
}

.lawyer-card:hover {
  transform: translateY(-2px);
}

.lawyer-photo {
  width: 200px;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: auto;
}

.lawyer-photo img {
  object-position: center 20%;
}

.lawyer-photo-tag {
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  font-size: 12px;
}

.lawyer-body {
  min-width: 0;
  padding: 22px 24px 20px;
}

.lawyer-head h2 {
  font-size: 24px;
}

.lawyer-city {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--wash);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.lawyer-title {
  margin-top: 4px;
  font-size: 13.5px;
}

.lawyer-quote {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lawyer-tags {
  margin-top: 12px;
  gap: 6px;
}

.lawyer-tags li {
  padding: 3px 9px;
  font-size: 12px;
}

.lawyer-stats {
  margin-top: 14px;
  padding-top: 12px;
  gap: 8px;
}

.lawyer-stats strong {
  font-size: 19px;
}

.lawyer-stats span {
  font-size: 12px;
}

.lawyer-card .lawyer-actions {
  padding-top: 14px;
  gap: 16px;
}

.lawyer-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.lawyer-grid--stack {
  grid-template-columns: 1fr;
}

.lawyer-grid--stack .lawyer-photo {
  width: 240px;
}

.counsel-step span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

/* ---------- Standards band ---------- */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.standard {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.standard:first-child {
  border-left: 0;
}

.standard .std-no {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.standard h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.standard p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.about-value span {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- FAQ section ---------- */
.section--faq {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

/* ---------- Refinement responsive ---------- */
@media (max-width: 1120px) {
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standard:nth-child(3) {
    border-left: 0;
  }

  .standard:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .lawyer-photo {
    width: 170px;
  }
}

@media (max-width: 980px) {
  .hero-visual {
    max-width: 640px;
  }

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

  .tool-tile {
    min-height: 132px;
  }

  .lawyer-grid--stack .lawyer-photo {
    width: 220px;
  }

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

  .counsel-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .counsel-step:nth-child(n + 3) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-strong);
  }
}

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

  .standard {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .standard:first-child {
    border-top: 0;
  }

  .hero-feed-head,
  .hero-feed-lead,
  .hero-feed-foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-feed-list a {
    grid-template-columns: 78px minmax(0, 1fr) 14px;
    padding: 11px 16px;
  }
}

@media (max-width: 640px) {
  .lawyer-card {
    flex-direction: column;
  }

  .lawyer-photo,
  .lawyer-grid--stack .lawyer-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .lawyer-photo img {
    object-position: center 25%;
  }

  .counsel-strip {
    grid-template-columns: 1fr;
  }

  .counsel-step {
    border-left: 0;
    padding-left: 0;
  }

  .counsel-step:nth-child(n + 2) {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 420px) {
  .tools-grid-light {
    grid-template-columns: 1fr;
  }

  .tool-tile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .tool-tile-copy small {
    -webkit-line-clamp: 1;
  }

  .tool-tile-arrow {
    position: static;
    margin-left: auto;
    opacity: 1;
    transform: none;
  }
}

/* 顾问律师页服务范围为四项，单独用四列避免空单元格 */
.lawyer-scope {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .lawyer-scope {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .lawyer-scope {
    grid-template-columns: 1fr;
  }
  .lawyer-scope .scope-item {
    min-height: 0;
  }
}

/* 律师详情主栏较窄，擅长领域四项用 2×2 */
.focus-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 知识库分页 ---------- */
.filter-bar {
  scroll-margin-top: 96px;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.pager-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-soft);
  font: 600 13px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pager-btn:hover:not(:disabled):not(.is-active) {
  background: var(--ice);
  border-color: var(--blue);
  color: var(--blue);
}
.pager-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pager-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.pager-step {
  padding: 0 14px;
}

/* 服务端分页：链接式筛选与页码对齐按钮外观 */
a.filter-chip {
  display: inline-block;
}
a.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.pager-btn.is-ellipsis {
  border-color: transparent;
  background: transparent;
  cursor: default;
  pointer-events: none;
}
