/* LINGHE design reference. Shared by the reading site, service portal and signed-in views. */
:root {
  color-scheme: light dark;
  --lh-bg: #faf8f4;
  --lh-surface: #fffdf9;
  --lh-ink: #201e1b;
  --lh-muted: #645e57;
  --lh-line: #d9d3c9;
  --lh-field-line: #82796f;
  --lh-accent: #aa3d22;
  --lh-accent-hover: #862c17;
  --lh-accent-soft: #f6e9e0;
  --lh-on-accent: #fffaf5;
  --lh-mark: #c34a29;
  --lh-focus: #8e371c;
  --lh-error: #942f3b;
  --lh-space-1: .5rem;
  --lh-space-2: .75rem;
  --lh-space-3: 1rem;
  --lh-space-4: 1.5rem;
  --lh-space-5: 2rem;
  --lh-radius: .625rem;
  --lh-gutter: clamp(1rem, 5vw, 4rem);
  --lh-width: 70rem;
  --lh-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font: 100%/1.65 var(--lh-body-font);
  color: var(--lh-ink);
  background: var(--lh-bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --lh-bg: #201d1b;
    --lh-surface: #292522;
    --lh-ink: #f8f3e9;
    --lh-muted: #c1b7aa;
    --lh-line: #4a423a;
    --lh-field-line: #9c8e80;
    --lh-accent: #f49c7b;
    --lh-accent-hover: #ffc4aa;
    --lh-accent-soft: #3d2a23;
    --lh-on-accent: #251b17;
    --lh-mark: #ff9670;
    --lh-focus: #ffb795;
    --lh-error: #ffabb4;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.22; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.65rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.028em; }
h3 { font-size: 1.12rem; letter-spacing: -.012em; }
a { color: var(--lh-accent); text-underline-offset: .23em; }
a:hover { color: var(--lh-accent-hover); }
button, input, select, textarea { font: inherit; }
img { display: block; max-inline-size: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--lh-focus);
  outline-offset: 3px;
}
::selection { background: var(--lh-accent); color: var(--lh-on-accent); }
.lh-wrap { inline-size: min(calc(100% - 2 * var(--lh-gutter)), var(--lh-width)); margin-inline: auto; }
.lh-skip {
  position: absolute;
  inset: .5rem auto auto .5rem;
  z-index: 3;
  padding: .6rem 1rem;
  color: var(--lh-ink);
  background: var(--lh-surface);
  transform: translateY(-200%);
}
.lh-skip:focus { transform: none; }
.lh-header { border-block-end: 1px solid var(--lh-line); }
.lh-bar, .lh-footbar { display: flex; align-items: center; gap: 0 clamp(.85rem, 2vw, 1.4rem); }
.lh-bar { min-block-size: 4.4rem; flex-wrap: wrap; padding-block: .4rem; }
.lh-brand {
  display: inline-flex; align-items: baseline; min-block-size: 44px;
  padding-block: .45rem; color: var(--lh-ink); text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif; font-size: 1.45rem;
  font-weight: 800; line-height: 1.35; letter-spacing: -.065em;
}
.lh-dot { color: var(--lh-mark); }
.lh-brand:hover { color: var(--lh-ink); }
.lh-context { padding-inline-start: 1rem; border-inline-start: 1px solid var(--lh-line); color: var(--lh-muted); font-size: .9rem; }
.lh-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(.7rem, 2.5vw, 1.75rem); margin-inline-start: auto; }
.lh-nav a, .lh-breadcrumb a, .lh-footbar a {
  display: inline-flex; align-items: center; min-block-size: 44px;
  color: var(--lh-muted); font-size: .9rem; text-decoration: none;
}
.lh-nav a:hover, .lh-breadcrumb a:hover, .lh-footbar a:hover { color: var(--lh-accent); text-decoration: underline; }
.lh-nav a[aria-current="page"] { color: var(--lh-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lh-mark); text-decoration-thickness: 2px; text-underline-offset: .55em; }
.lh-intro { padding-block: clamp(2.3rem, 5vw, 4.25rem) clamp(1.6rem, 4vw, 3rem); }
.lh-intro h1 { margin-block: .3rem .7rem; }
.lh-kicker, .lh-meta, .lh-muted, .lh-lead { color: var(--lh-muted); }
.lh-kicker { display: flex; align-items: center; gap: .5rem; color: var(--lh-accent); font-size: .84rem; font-weight: 650; }
.lh-kicker::before { content: ""; inline-size: 1.35rem; block-size: 2px; background: currentColor; }
.lh-meta { font-size: .85rem; font-variant-numeric: tabular-nums; }
.lh-lead { max-inline-size: 48ch; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.75; }
.lh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-block-size: 44px; max-inline-size: 100%; padding: .48rem 1.1rem;
  border: 1px solid var(--lh-accent); border-radius: .45rem;
  color: var(--lh-on-accent); background: var(--lh-accent);
  font-weight: 650; line-height: 1.45; text-decoration: none; cursor: pointer;
}
.lh-button:hover { border-color: var(--lh-accent-hover); background: var(--lh-accent-hover); color: var(--lh-on-accent); }
.lh-button-secondary { color: var(--lh-ink); background: var(--lh-surface); border-color: var(--lh-field-line); }
.lh-button-secondary:hover { color: var(--lh-accent); background: var(--lh-accent-soft); border-color: var(--lh-accent); }
.lh-button:disabled { cursor: default; border-color: var(--lh-line); color: var(--lh-muted); background: var(--lh-surface); }
.lh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.25rem; }
.lh-panel { padding: clamp(1.1rem, 2.8vw, 2rem); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); background: var(--lh-surface); }
.lh-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-block-size: 44px; padding-block: 1rem; border-block-end: 1px solid var(--lh-line);
  color: var(--lh-ink); text-decoration: none;
}
a.lh-row:hover { color: var(--lh-accent); }
.lh-row strong, .lh-row small { display: block; }
.lh-row small { margin-block-start: .15rem; color: var(--lh-muted); font-size: .89rem; line-height: 1.6; }
.lh-arrow { flex: none; font-size: 1.18rem; line-height: 1; }
.lh-section { margin-block: clamp(1.85rem, 4vw, 3.4rem); }
.lh-section-title { margin-block-end: .9rem; }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 17rem),1fr)); gap: 1rem; }
.lh-form, .lh-field { display: grid; gap: .4rem; }
.lh-form { gap: 1rem; max-inline-size: 36rem; }
.lh-field { font-weight: 600; }
.lh-field input, .lh-field select, .lh-field textarea, input.lh-field, select.lh-field, textarea.lh-field {
  width: 100%; min-height: 44px; padding: .55rem .7rem; font-weight: 400;
  color: var(--lh-ink); background: var(--lh-surface); border: 1px solid var(--lh-field-line); border-radius: .35rem;
}
.lh-note, .lh-status { color: var(--lh-muted); font-size: .9rem; }
.lh-note { padding: .65rem 1rem; border-inline-start: 3px solid var(--lh-mark); background: var(--lh-accent-soft); }
.lh-breadcrumb { color: var(--lh-muted); font-size: .88rem; }
.lh-prose { max-inline-size: 70ch; line-height: 1.8; }
.lh-prose > * + * { margin-block-start: 1rem; }
.lh-prose h2 { margin-block-start: 1.8rem; }
.lh-footer { margin-block-start: clamp(2.2rem, 5vw, 4rem); border-block-start: 1px solid var(--lh-line); }
.lh-footbar { flex-wrap: wrap; padding-block: 1rem 1.5rem; }
.lh-footbar p { color: var(--lh-muted); font-size: .85rem; }
.lh-footlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; margin-inline-start: auto; }
.lh-home-hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  border-block-end: 1px solid var(--lh-line);
}
.lh-home-hero > div { min-inline-size: 0; }
.lh-home-hero h1 { max-inline-size: 14em; }
.lh-home-image { inline-size: 100%; block-size: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: var(--lh-radius); }
.lh-service-feature { background: var(--lh-accent-soft); padding: clamp(1.3rem, 3.4vw, 2.55rem); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); }
.lh-service-feature h2 { margin-block-end: .45rem; }
.lh-service-feature p { color: var(--lh-muted); }
.lh-service-feature .lh-link { margin-block-start: .75rem; }
.lh-link { display: inline-flex; align-items: center; gap: .55rem; min-block-size: 44px; font-weight: 650; }
.lh-editorial-list { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.1fr); column-gap: clamp(1rem, 5vw, 4rem); }
.lh-list { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--lh-line); }
.lh-list .lh-row { padding-block: 1.15rem; }
@media (max-width: 48rem) {
  .lh-home-hero, .lh-editorial-list { grid-template-columns: 1fr; }
  .lh-home-image { max-block-size: 18rem; }
}
@media (max-width: 38rem) {
  .lh-bar { row-gap: 0; padding-block: .45rem .25rem; }
  .lh-nav { flex-basis: 100%; margin-inline-start: 0; }
  .lh-footbar { align-items: flex-start; gap: .25rem .8rem; }
  .lh-footlinks { flex-basis: 100%; margin-inline-start: 0; }
}

/* Wiki reading layout. The shared theme is prepended during release. */
.wiki-layout {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) minmax(8rem, 10rem);
  grid-template-areas: "documents reading sections";
  align-content: start;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.8rem);
  padding-block-start: clamp(1.6rem, 4vw, 3.2rem);
}
.wiki-reading { grid-area: reading; min-inline-size: 0; }
.wiki-reading h1 { margin-block: .45rem 1rem; }
.wiki-reading h2, .wiki-reading h3 { scroll-margin-block-start: 2rem; }
.wiki-reading h2 { padding-block-start: 1.1rem; border-block-start: 1px solid var(--lh-line); }
.wiki-index { grid-area: documents; }
.wiki-sections { grid-area: sections; }
.wiki-index, .wiki-sections {
  position: sticky;
  inset-block-start: 1.5rem;
  border-block-start: 1px solid var(--lh-line);
  padding-block-start: .85rem;
  font-size: .89rem;
}
.wiki-index a, .wiki-sections a {
  display: block;
  padding: .5rem .55rem;
  color: var(--lh-muted);
  text-decoration: none;
  border-radius: .35rem;
}
.wiki-index a:hover, .wiki-sections a:hover { color: var(--lh-accent); text-decoration: underline; }
.wiki-index a[aria-current="page"] {
  color: var(--lh-accent);
  font-weight: 650;
  background: var(--lh-accent-soft);
}
.wiki-index .nav-group { margin: 1rem .55rem .25rem; font-weight: 650; }
.wiki-index .nav-group:first-child { margin-block-start: 0; }
.wiki-sections summary { cursor: pointer; font-weight: 650; }
.wiki-sections .toc ul { margin: .35rem 0 0; padding: 0; list-style: none; }
.wiki-sections .toc > ul > li > a { display: none; }
.wiki-sections .toc ul ul ul { padding-inline-start: .65rem; }
.wiki-source {
  border-block-start: 1px solid var(--lh-line);
  padding-block-start: .9rem;
  color: var(--lh-muted);
  font-size: .88rem;
}
.wiki-source p { margin-block-start: .35rem; }
.wiki-reading pre {
  overflow: auto;
  padding: .9rem;
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius);
  background: var(--lh-surface);
  font-size: .86rem;
}
.wiki-reading table { display: block; overflow: auto; border-collapse: collapse; font-size: .9rem; }
.wiki-reading td, .wiki-reading th { border: 1px solid var(--lh-line); padding: .55rem; text-align: start; }
.wiki-reading blockquote {
  margin-inline: 0;
  padding: .55rem .8rem;
  border-inline-start: 3px solid var(--lh-mark);
  color: var(--lh-muted);
  background: var(--lh-accent-soft);
}
.wiki-reading ol, .wiki-reading ul { padding-inline-start: 1.5rem; }
.wiki-reading li + li { margin-block-start: .35rem; }
.wiki-reading .headerlink { opacity: 0; margin-inline-start: .4rem; text-decoration: none; }
.wiki-reading :is(h1, h2, h3, h4):hover .headerlink, .wiki-reading .headerlink:focus { opacity: 1; }
.wiki-missing h1 { margin-block-end: 1.25rem; }
#plugin-list { padding: 0; list-style: none; }
#plugin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .55rem 0;
  border-block-end: 1px solid var(--lh-line);
}
#plugin-list code { color: var(--lh-muted); }
@media (max-width: 60rem) {
  .wiki-layout {
    grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr);
    grid-template-areas: "documents reading" "documents sections";
  }
  .wiki-sections { position: static; }
}
@media (max-width: 40rem) {
  .wiki-layout { display: flex; flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .wiki-index { position: static; }
  .wiki-index a { padding-block: .64rem; }
}
