/* Shared by the public articles, including Help and the guides. */
:root {
  --night: #141518;
  --panel: #1E2026;
  --panel-hi: #2A2D35;
  --line: #2E3139;
  --gold: #F6D27A;
  --gold-2: #E5A83B;
  --ice: #F3F2EF;
  --mist: #A3A6AE;
  --ok: #3FBF7F;
  --bad: #FF6B6B;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --night: #F5F3EE;
    --panel: #FFFFFF;
    --panel-hi: #F0EDE6;
    --line: #E2DED4;
    --gold: #B8862A;
    --gold-2: #C9962E;
    --ice: #17181C;
    --mist: #6B6E76;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 520px 380px at 50% 150px, #E5A83B26, transparent 70%),
    radial-gradient(circle, color-mix(in srgb, var(--ice) 7%, transparent) .75px, transparent 1px) 50% 0 / 16px 16px,
    var(--night);
  color: var(--ice);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
a {
  color: color-mix(in srgb, var(--gold) 72%, var(--ice));
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: 2px; }

.site-header, .site-footer {
  width: min(calc(100% - 32px), 1120px);
  margin-inline: auto;
}
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ice);
  font-weight: 700;
  text-decoration: none;
}
.site-brand small { color: var(--mist); font-size: .75rem; font-weight: 500; }
.site-orb {
  position: relative;
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF7DD 8%, #F6D27A 22%, #E5A83B 40%, #1B1406 72%);
  box-shadow: 0 0 0 1px #F6D27A55, 0 0 14px #E5A83B55;
  animation: orb-glow 4s ease-in-out infinite;
}
.site-orb::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid transparent;
  border-top-color: #F6D27A;
  border-right-color: #F6D27A80;
  border-radius: inherit;
  transform: rotate(-18deg);
}
@keyframes orb-glow { 50% { filter: brightness(1.2); } }
.site-button, .lang button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.site-button, .lang button[aria-pressed="true"] {
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #1A1307;
  box-shadow: 0 6px 22px #E5A83B35;
}
.site-button:hover, .site-button:active, .lang button:hover, .lang button:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #E5A83B55;
}
.site-button:active, .lang button:active { transform: translateY(-1px) scale(.98); }
.site-button.outline, .lang button[aria-pressed="false"] {
  background: var(--panel);
  color: var(--ice);
  border-color: var(--line);
}
.site-button.outline:hover, .lang button[aria-pressed="false"]:hover { border-color: var(--gold); }

.site-article { width: min(calc(100% - 36px), 720px); margin-inline: auto; padding-block: 34px 48px; }
.site-article h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.8vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.title-accent {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
  .title-accent {
    background-image: linear-gradient(100deg, color-mix(in srgb, var(--gold) 80%, var(--ice)), color-mix(in srgb, var(--gold-2) 80%, var(--ice)));
  }
}
.site-article h2 {
  margin: 0 0 12px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--gold-2);
  font-size: clamp(1.18rem, 3.6vw, 1.42rem);
  line-height: 1.35;
}
.site-article p, .site-article ul, .site-article ol { margin-block: 0 14px; }
.site-article ul, .site-article ol { padding-inline-start: 1.5em; }
.site-article li + li { margin-block-start: 8px; }
.site-article li::marker { color: color-mix(in srgb, var(--gold) 72%, var(--ice)); font-weight: 700; }
.article-section { margin-block-start: 30px; }
.site-article .article-meta { color: var(--mist); font-size: .875rem; margin-block-end: 10px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: .875rem;
}
.site-footer p { margin: 0; align-self: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ice); }

.faq details {
  margin-block-start: 10px;
  padding-inline: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--gold) 36%, var(--line)); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding-block: 10px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-end: 2px;
  border: solid var(--gold-2);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }

@keyframes site-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.load-rise { animation: site-rise .55s ease both; }
.load-rise:nth-child(2) { animation-delay: .07s; }
.load-rise:nth-child(3) { animation-delay: .14s; }
.load-rise:nth-child(n+4) { animation-delay: .21s; }

.lang { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.lang button { cursor: pointer; }
.help-intro { margin-block-end: 24px; }
.help-motion .scroll-rise { opacity: 0; transform: translateY(12px); }
.help-motion .scroll-rise.is-visible,
.help-motion .scroll-rise:focus-within { animation: site-rise .55s ease both; }

@media (min-width: 720px) {
  .site-article { padding-block: 52px 64px; }
  .site-header, .site-footer { width: min(calc(100% - 64px), 1120px); }
}
