:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #5c6475;
  --paper: #fffdf9;
  --blue: #173b66;
  --coral: #e76f61;
  --teal: #17887b;
  --line: #e8e2d9;
  --wash: #f5f7fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(231, 111, 97, 0.15), transparent 26rem),
    linear-gradient(180deg, #f4f8fc 0, var(--paper) 25rem);
  /* Prefer an explicit CJK face so WebKit does not retain a Latin-only
     system-font fallback when its language/font cache is incomplete. */
  font: 16px/1.75 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--coral); }

.site-header, main, .site-footer {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.92rem; }
nav a { text-decoration: none; }

.hero { padding: 78px 0 46px; }
.hero h1 { max-width: 760px; margin: 0 0 18px; font-size: clamp(2.25rem, 7vw, 4.9rem); line-height: 1.04; letter-spacing: -0.045em; }
.hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.12rem; }

.eyebrow, .meta {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document, .card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(23, 34, 59, 0.08);
}

.document { padding: clamp(24px, 5vw, 54px); margin: 28px 0 64px; }
.document h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; }
.document h2 { margin-top: 2.4em; padding-top: 0.4em; font-size: 1.38rem; line-height: 1.35; }
.document h3 { margin-top: 1.7em; font-size: 1.06rem; }
.document p, .document li { color: #30394c; }
.document strong { color: var(--ink); }
.document table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.document th, .document td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: var(--wash); }
.document .notice { padding: 16px 18px; background: #fff5ef; border-left: 4px solid var(--coral); border-radius: 12px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 70px; }
.card { display: block; padding: 24px; color: var(--ink); text-decoration: none; }
.card span { display: block; color: var(--muted); margin-top: 8px; font-size: 0.94rem; }

.site-footer { padding: 26px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.site-footer p { margin: 4px 0; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 46px; }
  .grid { grid-template-columns: 1fr; }
  .document { border-radius: 18px; }
  .document table, .document thead, .document tbody, .document tr, .document th, .document td { display: block; }
  .document th { border-bottom: 0; }
  .document td { border-top: 0; margin-bottom: 8px; }
}

/* Keep the public filing page close to the original native Settings card. */
body.filing-page {
  min-height: 100svh;
  color: #1f122b;
  background: linear-gradient(145deg, #f7f0e8, #f1eaf2 58%, #f6e9e9);
  font: 16px/1.6 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

.filing-page a { color: #b86478; }
.filing-header, .filing-main, .filing-footer { width: min(640px, calc(100% - 32px)); margin-inline: auto; }
.filing-header { display: flex; align-items: center; justify-content: center; position: relative; min-height: 76px; font-size: 1.2rem; font-weight: 700; }
.filing-header .filing-home { position: absolute; left: 0; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.filing-main { padding: 12px 0 20px; }
.filing-card { padding: 24px; border: 1px solid #eadfe7; border-radius: 22px; background: rgba(255, 251, 249, 0.94); box-shadow: 0 12px 30px rgba(31, 18, 43, 0.07); }
.filing-card h1 { margin: 0 0 22px; color: #1f122b; font-size: 1.24rem; line-height: 1.3; }
.filing-card h1 span { display: inline-block; width: 30px; color: #60406b; font-size: 1.5rem; vertical-align: -0.06em; }
.filing-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee5e9; }
.filing-label { flex-shrink: 0; color: #827485; font-size: 0.93rem; }
.filing-value, .filing-pending { text-align: right; font-size: 0.93rem; font-weight: 650; overflow-wrap: anywhere; }
.filing-value { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.filing-pending { color: #8b7185; }
.filing-entity, .filing-help { color: #827485; font-size: 0.88rem; }
.filing-entity { margin: 18px 0 0; }
.filing-help { margin: 18px 0 0; line-height: 1.7; }
.filing-footer { display: flex; justify-content: center; gap: 24px; padding: 16px 0 32px; font-size: 0.9rem; }

@media (max-width: 420px) {
  .filing-card { padding: 20px 18px; }
  .filing-row { flex-wrap: wrap; gap: 2px 10px; }
  .filing-value, .filing-pending { flex-basis: 100%; text-align: left; }
}
